Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dėl temos

Parašė newlifeboy· 2010 Kov. 11 12:03:27
#1

Sveiki reikia įdėt man į theme.php info kur rodo kiek peržiūrėjo ir skaityti daugiau gal kas galit įdėt tą kodą va theme.php kodas:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#00000";
$theme_width = "910";
$theme_width_l = "300";
$theme_width_r = "200";

function render_header($header_content) {

global $theme_width,$aidlink,$userdata;


echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>
<td class='sub-header'><a href='".BASEDIR."index.php'><img src='".THEME."images/namai.gif' border='0'></a>&nbsp;&nbsp;&nbsp;<img src='".THEME."images/skirtukas.gif'>&nbsp;&nbsp;&nbsp;<a href='".BASEDIR."contact.php'><img src='".THEME."images/kontaktai.gif' border='0'></a></td>
<td align='right' class='sub-header'>".showsublinks("&middot;","white")."</td>
</tr>
</table>\n";

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='$theme_width'>
</tr>
<tr>
<td width='606' class='header' align='left'><center><img src='".THEME."banner.png'></center></td>
<td width='175' class='login' align='right'>";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width' class='paneles2'>\n<tr>
<td align='center' width='0'>";
echo "</td>
</tr>
</table>";

echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width' class='paneles3'>\n<tr>
<td align='center' width='377'>";
echo "</td>
<td align='center' width='130'>";
include THEME."code/radio_info_foto.php";
echo "</td>
<td align='center' width='35'>";
echo "</td>
<td align='center' width='328'>";
include THEME."code/radio_info_panel.php";
echo "</td>
<td align='center' width='100'>";
echo "</td>
</tr>
</table>"
;

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

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

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='footer'>".stripslashes($settings['footer'])."</td>
<td align='right' class='footer'>Variklis:</a><br> Dizainas:</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $aidlink,$item_type;
$res = "";

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
<td class='capmain'></td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$info['news_id']."'>
<td class='main-body' width='92%'>$news</td>
<td class='main-body-2' width='8%'>";
    if (iADMIN) {
echo "<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".THEME."images/redaguoti.png' align='center' border='0'></a>&nbsp;&nbsp;";
}
echo "</td>
</form>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<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%' class='border'>
<tr>
<td class='scapmain'>$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";

}
?>