Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Prisijungimas Headeryje.

Parašė RuP3r· 2008 Kov. 17 08:03:29
#1

Gal kas galit cia man idet headeryje prisijungima nes as bandziau daryt pagal straipsni tai pas mane kodai kazkaip neatitinka idek bukit žmonės.
P.S Nerasykit kad pasidaryk ar is cs_theme nusiimk.
Theme.php

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

// theme settings
$body_text = "#585858";
$body_bg = "#2e2e2e";
$theme_width = "800";
$theme_width_l = "160";
$theme_width_r = "160";

function render_header($header_content) {

global $theme_width;

echo "<table align='center' cellspacing='0' cellpadding='0' width='100%'><tr><td><center><img src='".THEME."images/virsus.jpg'><br></center></td></tr></table>";

echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
include_once "virsus.php";
echo "
</td>
</tr>
</table>";

echo "<table align='center' cellspacing='0' cellpadding='0' width='385'><tr><td><img src='".THEME."images/head.jpg'><img src='".THEME."images/wtf.jpg'></td></tr></table>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='100%'><tr><td><center><img src='".THEME."images/virsus.jpg'><br></center></td></tr></table>";

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' >
<tr>
<td>
\n";
}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' align='center' cellspacing='0' width='$theme_width'>
<tr>
<td height='30' background='".THEME."images/foot.jpg' align='center' class='footer'>".stripslashes($settings['footer'])."
<a href='http://php-fusion.co.uk' target='_blank'>Php-fusion</a> | <a href='http://wtfthemes.failai.lt/news.php' target='_blank'>WTF Themes</a> 2007</small<br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $locale;

        echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
        echo "<td class='campain'></td>";
        echo "<td  background='".THEME."images/campain.jpg' height='29'  class='campain'>&nbsp;&nbsp;<b>$subject<b></td>";
        echo "<td class='campain'></td>";
        echo "</tr></table>";
        echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
        echo "<td></td>";
        echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div><br>";
        echo "<div style='margin-top:5px'>";
        echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
        echo "<td align='center' background='".THEME."images/nfoot.jpg' height='21' class='news-footer'>";
        echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
        echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
        echo "<td align='right' class='news-footer'>";
        echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
        if ($info['news_allow_comments'])
        echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b> ";
        echo "".$info['news_reads'].$locale['044']." ";
       
        echo "</td></tr></table></div></td>";
        echo "<td class='rechts'>";
        echo "</td></tr><tr>";
        echo "<td></td>";
        echo "<td></td>";
        echo "<td></td>";
        echo "</tr></table>\n";
}


function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td background='".THEME."images/campain.jpg' height='29' class='capmain'>&nbsp;&nbsp;$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center'  background='".THEME."images/nfoot.jpg' height='21' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/campain.jpg' height='29' class='capmain'>&nbsp;&nbsp;$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%' class='border'>
<tr>
<td background='".THEME."images/scampain.jpg' height='29' class='scapmain'>&nbsp;&nbsp;$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

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

}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' 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";
tablebreak();

}

function tablebreak() {

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

}
?>




Redagavo RuP3r· 2008 Kov. 17 08:03:15