Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Prisijungimas ant headerio

Parašė poweriss· 2008 Rugs. 27 15:09:20
#1

Sveiki mano theme.php yra toks kodas.
<?

$body_text = "#B8E8F2";
$body_bg = "#2C2C2C";
$theme_width = "100%";
$theme_width_l = "207";
$theme_width_r = "207";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
        <tr>
        <td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt=''></td>
        <td  class='mbody' align='right'><table width='100%' cellpacing='0' cellpadding='0' border='0'><tr><td class='toplogo'><img src='".THEME."images/logo.jpg' alt=''></td></tr></table>
        <table width='100%' cellspacing='0' cellpadding='0' border='0'>
        <tr>
        <td class='menuss'>\n";
$separator = " </td><td class='sep'></td><td class='menuss'> ";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
   echo "\n";
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo " $separator \n"; } else { echo "\n"; }
   $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
      if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
   echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
   } else {
   echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
   }
$i++;
      }
   }
}
   echo ($i == 0 ? " " : "")."</td><td class='sep'></td><td width='30%' class='pustka'> </td>
   </td><td class='sep'></td>
        <td class='menus' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
        </tr>
        </table>\n";

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

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='footer' align='center'>".stripslashes($settings['footer'])."<br><br>Powered by: <b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> <br> <b>gt-cs</b> theme by: <b><a href='http://webmer.pl' target='_blank'>sonar</a></b></td>
   </tr>
        </table>
        </td>
        <td class='righter'><img width='45' src='".THEME."images/righter.gif' height='1' alt=''></td>
        </tr>
        </table>\n";

}

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

global $settings,$locale;


echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='tresc01'></td>
   <td colspan='3' class='tresc02'></td>
   <td class='tresc03'></td>
   </tr>
   <tr>
   <td class='tresc04'></td>
   <td colspan='3' class='tresc05'>$subject</td>
   <td class='tresc06'></td>
   </tr>
   <tr>
   <td class='tresc07'></td>
   <td colspan='3' class='tresc08'></td>
   <td class='tresc09'></td>
   </tr>
   <tr>
   <td class='tresc10'></td>
   <td colspan='3' class='tresc11'>$news<br><br>
        <img src='".THEME."images/bullet.gif'  width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
        <br><img src='".THEME."images/bullet.gif'  width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> &middot;\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] &middot; [ ".$info['news_reads']." ] ".$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>
   <td class='tresc12'></td>
   </tr>
   <tr>
   <td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
   <td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
   <td class='tresc15' width='100%'></td>
   <td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
   <td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
   </tr>
</table>\n";

}

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

global $locale;

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='tresc01'></td>
   <td colspan='3' class='tresc02'></td>
   <td class='tresc03'></td>
   </tr>
   <tr>
   <td class='tresc04'></td>
   <td colspan='3' class='tresc05'>$subject</td>
   <td class='tresc06'></td>
   </tr>
   <tr>
   <td class='tresc07'></td>
   <td colspan='3' class='tresc08'></td>
   <td class='tresc09'></td>
   </tr>
   <tr>
   <td class='tresc10'></td>
   <td colspan='3' class='tresc11'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
        <br>
        <br><img src='".THEME."images/bullet.gif'  width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
        ".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif'  width='10' height='10' alt='' > <a href='articlecomments.php?article_id=".$info['article_id']."'>".$locale['043']."</a> [ ".$info['article_comments']." ] &middot; [ ".$info['article_reads']." ] ".$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' ></a></td>
   <td class='tresc12'></td>
   </tr>
   <tr>
   <td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
   <td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
   <td class='tresc15' width='100%'></td>
   <td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
   <td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
   </tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='tresc01'></td>
   <td colspan='3' class='tresc02'></td>
   <td class='tresc03'></td>
   </tr>
   <tr>
   <td class='tresc04'></td>
   <td colspan='3' class='tresc05'>$title</td>
   <td class='tresc06'></td>
   </tr>
   <tr>
   <td class='tresc07'></td>
   <td colspan='3' class='tresc08'></td>
   <td class='tresc09'></td>
   </tr>
   <tr>
   <td class='tresc10'></td>
   <td colspan='3' class='tresc11'>\n";

}

function closetable() {

echo "</td>
   <td class='tresc12'></td>
   </tr>
   <tr>
   <td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
   <td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
   <td class='tresc15' width='100%'></td>
   <td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
   <td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
   </tr>
</table>\n";

}

function openside($title) {

global $p_data;

echo "<table width='207' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='bok01'></td>
   <td colspan='2' class='bok02'></td>
   <td class='bok03'></td>
   </tr>
   <tr>
   <td class='bok04'></td>
   <td colspan='2' class='bok05'>$title</td>
   <td class='bok06'></td>
   </tr>
   <tr>
   <td class='bok07'></td>
   <td colspan='2' class='bok08'></td>
   <td class='bok09'></td>
   </tr>
   <tr>
   <td class='bok10'></td>
   <td colspan='2' class='bok11'>\n";

}

function closeside() {

global $p_data;

if ($p_data['panel_side'] == 1) {

  echo "</td>
   <td class='bok12'></td>
   </tr>
   <tr>
   <td class='bok13'></td>
   <td class='bok14'></td>
   <td class='bok15'></td>
   <td class='bok16'></td>
   </tr>
</table>"; }
       
else {

  echo "</td>
   <td class='bok12'></td>
   </tr>
   <tr>
   <td class='bok13'></td>
   <td class='bok17'></td>
   <td class='bok14'></td>
   <td class='bok16'></td>
   </tr>
</table>\n";
}
tablebreak();

}

function opensidex($title,$open="on") {

global $p_data;

$box_img = ($open=="on" ? "off" : "on");
echo "<table width='207' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='bok01'></td>
   <td colspan='2' class='bok02'></td>
   <td class='bok03'></td>
   </tr>
   <tr>
   <td class='bok04'></td>
   <td colspan='2' class='bok05'>$title <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ? "style='display:none'" : "")."></td>
   <td class='bok06'></td>
   </tr>
   <tr>
   <td class='bok07'></td>
   <td colspan='2' class='bok08'></td>
   <td class='bok09'></td>
   </tr>
   <tr>
   <td class='bok10'></td>
   <td colspan='2' class='bok11'>\n";

}

function closesidex() {

global $p_data;

if ($p_data['panel_side'] == 1) {

  echo "</div>
        </td>
   <td class='bok12'></td>
   </tr>
   <tr>
   <td class='bok13'></td>
   <td class='bok14'></td>
   <td class='bok15'></td>
   <td class='bok16'></td>
   </tr>
</table>\n"; }
       
else {

  echo "</div>
        </td>
   <td class='bok12'></td>
   </tr>
   <tr>
   <td class='bok13'></td>
   <td class='bok17'></td>
   <td class='bok14'></td>
   <td class='bok16'></td>
   </tr>
</table>\n"; }
tablebreak();

}

function tablebreak() {

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



Gal galetumet pataisyt si koda kad prisijungimas butu ant headerio??

Redagavo bad_user· 2008 Rugs. 27 16:09:51