Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Siuntiniai on header

Parašė Narysx· 2008 Lap. 28 17:11:47
#1

Va tas straipsnis, kaip uždėti siuntinius ant headerio:

https://webdnd.com/readarticle.p...cle_id=100

Bet pas mane kitoks theme.php, tad man nelabai kas gaunas. Štai theme.php:

<?php
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "600";
$theme_width_l = "160";
$theme_width_r = "160";

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

   echo "<table class='forumline' align='center' background='".THEME."images/mainbg.gif' width='$theme_width' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0' background='".THEME."images/mainbg.gif'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0' background='".THEME."images/mainbg.gif'>";
   echo "<tr><td class='header' width='100%'>";
   // Start banner code / Banerio kodas
   echo "<table width='822' cellspacing='0' cellpadding='0'>";
echo "<tr></tr>";
   echo "<tr><td height='87' width='822' background='".THEME."images/header.jpg' align='right' valign='middle'>
   <table width='822' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>&nbsp;</td>
    <td width='822' align='right'>";
   echo "</td>
   <td>
<a href='".BASEDIR."index.php'><img src='".THEME."pav/Pagrindinis2.gif' onmouseover=\"this.src='".THEME."pav/Pagrindinis1.gif'\" onmouseout=\"this.src='".THEME."pav/Pagrindinis2.gif'\"></a>
<a href='".BASEDIR."forum/index.php'><img src='".THEME."pav/Forumas2.gif' onmouseover=\"this.src='".THEME."pav/Forumas1.gif'\" onmouseout=\"this.src='".THEME."pav/Forumas2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/Foto2.gif' onmouseover=\"this.src='".THEME."pav/Foto1.gif'\" onmouseout=\"this.src='".THEME."pav/Foto2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/Muzika_vip2.gif' onmouseover=\"this.src='".THEME."pav/Muzika_vip1.gif'\" onmouseout=\"this.src='".THEME."pav/Muzika_vip2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/Muzika2.gif' onmouseover=\"this.src='".THEME."pav/Muzika1.gif'\" onmouseout=\"this.src='".THEME."pav/Muzika2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/VIP2.gif' onmouseover=\"this.src='".THEME."pav/VIP1.gif'\" onmouseout=\"this.src='".THEME."pav/VIP2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/Info2.gif' onmouseover=\"this.src='".THEME."pav/Info1.gif'\" onmouseout=\"this.src='".THEME."pav/Info2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/Parama2.gif' onmouseover=\"this.src='".THEME."pav/Parama1.gif'\" onmouseout=\"this.src='".THEME."pav/Parama2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/Kontaktai2.gif' onmouseover=\"this.src='".THEME."pav/Kontaktai1.gif'\" onmouseout=\"this.src='".THEME."pav/Kontaktai2.gif'\"></a>
<a href='".BASEDIR."top20.php'><img src='".THEME."pav/Reklama2.gif' onmouseover=\"this.src='".THEME."pav/Reklama1.gif'\" onmouseout=\"this.src='".THEME."pav/Reklama2.gif'\"></a>
<a href='".BASEDIR."galerija.php'><img src='".THEME."pav/Paieska2.gif' onmouseover=\"this.src='".THEME."pav/Paieska1.gif'\" onmouseout=\"this.src='".THEME."pav/Paieska2.gif'\"></td></a>
  </tr>
</table>
   </td>";
   echo "</tr></table></td></tr></table>\n";
echo "<img src='".THEME."images/apat_head.png'>";
echo "<table align='center' class='mainsite-border' align='left' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr><td>
<table align='center' width='100%' cellspacing='0' cellpadding='0' background='".THEME."images/mainbg.gif'>
<tr><td>

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


function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</tr></table>\n";
   echo "<table cellSpacing='0' cellPadding='2' height='16'width='822' border='0' background='".THEME."images/foot.jpg' >";
   echo "<td width='20%' height='16' class='white' align='left'>";
   echo "Varikliukas: <a href='http://www.php-fusion.co.uk'>PHP-Fusion</a>.";
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "".stripslashes($settings['footer'])."</td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "
<center>
<br>
<a target='_blank' href='http://www.hey.lt/details.php?id=rsn'><img width=88 height=31 border=0 src='http://www.hey.lt/count.php?id=rsn' alt='Hey.lt - Interneto reitingai, lankomumo statistika, lankytoj? skaitliukai'></a>
<br>
";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}

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

global $locale;
   echo "<center><table border='0' cellpadding='5' cellspacing='5' width='579' bgcolor='#efefef'><tr>";
   echo "<td width='579' bgcolor='#efefef'>";
   echo "<table border='1' cellpadding='5' cellspacing='5'  style='border:1px solid #D7DBDE; border-collapse: collapse; padding:5; padding-right:4; padding-top:1; padding-bottom:1' bordercolor='#D7DBDE' width='100%' id='AutoNumber1' height='100' bgcolor='#F3F9FA' bordercolorlight='#D7DBDE' bordercolordark='#D7DBDE'>";
   echo "<tr><td  width='579' height='100' valign='top'><font color='#464646'> <b>$subject</b><br>";
   echo"".showdate("shortdate", $info['news_date'])."</font><br><font color='#3F8F90'>$news</font><br><br>";
   echo "<table width='579' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "Para&#0353;&#0279;: <a href='profile.php?lookup=".$info['user_id']."'><font color='#34558a'><b>".$info['user_name']."</b></font></a></td>";
   echo "<td height='24' align='right' class='news-footer'>";
if ($info['news_ext'] == "y")   echo "<a href='news.php?readmore=".$info['news_id']."'>Skaityti daugiau...</a>";
   echo "</td></tr></table></tr><tr></tr></table></td></tr></table>";

}

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1' background='".THEME."images/mainbg.gif'><tr>";
   echo "<td height='23' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&amp;item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

function opentable($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='589' background='".THEME."images/mainbg.gif'>";
   echo "<tr><td width='589'><table class='panel-border' cellSpacing='1' cellPadding='0' width='589' border='0'>";
   echo "<tr><td width='589' height='33' class='table-cellpic' align='left'>$title</td></tr>";
   echo "<tr><td class='main-body' width='589' bgColor='#ffffff'>";
}

function closetable() {

   echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='195'>";
   echo "<tr><td width='195'><table class='panel-border' cellSpacing='0' cellPadding='0' width='195' border='0'>";
   echo "<tr><td width='195' height='50' class='panel-cellpic' align='center'>$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

   echo "</td></tr></table></td></tr></table>";
   tablebreak();
}
function opensidex($title,$open="on") {

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#ffffff'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

   echo "</div></td></tr></table></td></tr></table>";
   tablebreak();
}


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




Padarykit jei galit kas nors, kad rodytų sintinius kaip tam straipsnyje ant mano header.