Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Bėda su headeriu...

Parašė Taskalas· 2008 Lie. 21 20:07:44
#1

Sveiki,turiu problema.Visaip bandau į headerį įdėti naujausius ir populiariausius siuntinius,bet arba neįsideda arba išsikraipo puslapis.
Bandžiau daryti panašiai,kaip duota straipsnyje,bet vistiek nesigauna.
Gal kas galite padėti?
Mano theme.php:
<?php


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

// theme settings
$body_text = "#000";
$body_bg = "#fff";
$theme_width = "80%";
$theme_width_l = "175"; // max 200px (limited by background image)
$theme_width_r = "175"; // max 200px (limited by background image)

function render_header($header_content) {

global $theme_width,$settings,$theme_width_r;

echo "<br><table align='center' border='0' cellspacing='0' cellpadding='0' width='$theme_width'>
  <tr>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-tleft.png'></td>
    <td height='8' class='zgoraj'></td>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-tright.png'></td>
  </tr>
  <tr>
    <td width='8' class='levo'></td>
    <td><table cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header' height='93'>
<table border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td rowspan='2'><img alt='' border='0' src='".THEME."images/ikona.png'></td>
 
  <tr>
    <td class='opis' height='20' valign='top'>".$settings['description']."</td>
  </tr>
</table>
</td>
<td height='93' class='najdi' width='$theme_width_r'>";
   
   // Search script end //
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'>".showsublinks("<img alt='' border='0' src='".THEME."images/delilnik.png'>","white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings,$locale,$theme_width_r;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer' width='20'><a href='#top'><img alt='' border='0' src='".THEME."images/gor.png'></a></td>
<td class='footer' width='$theme_width_r'>Powered by <a href='http://www.php-fusion.co.uk/'

target='_blank'>PHP-Fusion</a><br>Viena by <a href='http://www.itanium-power.com' target='_blank'>Itanium</a></td>
<td class='footer' align='center' width='60%'>".stripslashes($settings['footer'])."</td>
<td class='footer' width='$theme_width_r' align='right'>";
echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>
    <td width='8' class='desno'> </td>
  </tr>
  <tr>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-bleft.png'></td>
    <td height='8' class='spodaj'></td>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-bright.png'></td>
  </tr>
</table>
\n<br>";

}

function render_news($subject, $news, $info) {

global $locale;

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info).newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {

global $locale;
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo

openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"&middot;").closeform("A",$info['article_id']

);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

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

}

function closeside() {

echo "</td>
</tr>
</table>\n";

}

function opensidex($title,$state="off") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmainx' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>