Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: theme.php koduko iterpimas i headeri

Parašė Apocal· 2009 Spa. 25 22:10:07
#1

Kaip man i headeri iterpti koda, kuris tam tikroj pozicijoj atspausdintu teksta is txt failo, kievieno reflsho metu kita sakini.

<?php
////
// Made by Qrmiz 2008
////

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// temos nustatymai
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "631";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {
global $theme_width,$settings;
   /// HEADERIS START
   echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0' align='center'><tr>";
       echo "<td class='top'><img src='".THEME."images/ttranc.gif' alt=''></td></tr>";
   echo "<tr><td align='center' class='main-table'>";
       <img src='".THEME."images/header.jpg' style='border:1px solid #999999' alt=''>";
   echo "</td></tr></table>";
         
   /// HEADERIS END --- START MAIN TABLE
   echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' border='0' class='main-table'>";
   echo "<tr><td>";
   /// START SUBLINKS
   echo "<br><table width='614' border='0' cellpadding='0' cellspacing='0' class='sublinks' align='center'><tr><td height='41' align='center'><a href='".BASEDIR."news.php' class='sublinks'>Naujienos</a></td><td><img src='".THEME."images/dots.gif' alt=''></td>\n";
   echo "<td align='center'><a href='".BASEDIR."downloads.php' class='sublinks'>Siuntiniai</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."photogallery.php' class='sublinks'>Galerija</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".FORUM."index.php' class='sublinks'>Forumas</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."contact.php' class='sublinks'>Kontaktai</a></td></tr></table>";
   /// END SUBLINKS
   echo "<table width='100%' cellspacing='5' cellpadding='0' align='center'>\n<tr>\n";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;
   echo "</tr>\n</table></td></tr></table></td></tr></table>";
   echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0' align='center'><tr>";
   echo "<td class='bot'><img src='".THEME."images/ttranc.gif' alt=''></td></tr></table>";
}

function render_news($subject, $news, $info) {
global $locale, $news_info;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'><tr>";
   echo "<td width='40' align='center'><img src='".THEME."images/nicon.gif' border='0' alt=''></td><td width='100%' class='nsub'>".showdate("%Y %m %d", $news_info['news_date'])." $subject</td>";
   echo "</tr><tr>";
   echo "<td class='news-body' colspan='2'>$news";
   echo " ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>Plačiau...\n" : "")."</td>";
   echo "</tr></table>\n";
}

function opentable($title) {
   echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>";
   echo "<tr><td><img src='".THEME."images/bullet.gif' border='0' alt=''></td><td width='100%' class='panel-main2'>$title</td>";
   echo "</tr><tr>";
   echo "<td class='table-body' colspan='2'>\n";
}

function closetable() {
   echo "</td></tr></table>\n";
}


function openside($title) {
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='sidetbl'><tr>";
   echo "<td width='100%' class='panel-main'>$title</td></tr><tr>";
   echo "<td class='side-body'>\n";
}

function closeside() {
   echo "</td></tr></table>";
   tablebreak();
}


function tablebreak() {
   echo "<table width='100%' cellspacing='2' cellpadding='2'>";
   echo "<tr><td></td></tr></table>\n";
}
?>



Parašė Apocal· 2009 Spa. 26 09:10:37
#2

Parasykit koda jei galit nors, kad raides butu ant headerio ir butu galima reguluoti kurioj vietoj palikti

Parašė tm· 2009 Spa. 26 22:10:55
#3

Nžn gal nusišnekėsiu , bet su div padarai kad rasytu teksta ant img , toki koda gali rasti template kokiam :)

Parašė Apocal· 2009 Spa. 27 11:10:25
#4

As bandziau ir niekaip man nesigauna padaryti, ant headerio, aplink headerio, aplink kvadrata gaunasi, o ant pacio headerio niekaip... :(

Parašė Naktibalda· 2009 Spa. 27 12:10:21
#5

<td background='paveiksliuko adresas' align='center'><div style='padding-top:10px;'>tekstas</div></td>





ten kur paveikslėlio adresas tekstas bus ant paveikslėlio.

;)

Parašė Apocal· 2009 Spa. 27 19:10:02
#6

Na neveikia :), gal kas dar turi minciu ?

Parašė Naktibalda· 2009 Spa. 28 11:10:56
#7

Viskas turi veikti nieko daugiau neišgalvosi, mokėk pasidaryt. :D

Parašė Apocal· 2009 Spa. 28 12:10:08
#8

Tu matiai, kad ten dar kvadrato img yra, ir tu blogai scripta parases. ir ne*sk cia man proto. pats jei nemoi, nerasyk.