Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Theme header and banner

Parašė samsung123· 2008 Kov. 22 00:03:24
#2

Įdedu gabaliuką theme.php kur paryškinau ten headerio img kodas!:

/************************/
/* Theme Settings      */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {
global $theme_width,$settings;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
   // Start banner code
   echo "<table width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><img src='".THEME."images/header.jpg'></td>";
   echo "</tr></table></td></tr></table>\n";
   // End banner code
   echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
   echo "<td class='sub-header'>\n";

$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
   $i = 0;





Čia aš pats pridėjau šitą koda o šiap dar gali toki budą !


echo "<tr><td>$header_content</td>";





keisk į

echo "<tr><td><img src='".THEME."images/header.jpg'></td>";



Redagavo samsung123· 2008 Kov. 22 00:03:20