Parašė Jupiter· 2007 Gru. 16 23:12:49
#4
O stai cia theme.php
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "960";
$theme_width_l = "180";
$theme_width_r = "180";
function render_header($header_content) {
global $theme_width;
include_once "header.php";
echo "<table align='center' class='mainsite-border' align='center' 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='95%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<br><table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='29'><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='15' align='left' valign='bottom' width='100%'>$subject <span class='ip'>(".showdate("shortdate", $info['news_date']).")</span></td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>$news</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' align='right' class='read' style='padding-right:10px;'>"; if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."' class='read'>".$locale['042']."</a>"; echo"</td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='29' valign='bottom'>$subject</td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png'></td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='29'><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='15' align='left' valign='bottom' width='100%'>$title</td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png'></td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>
<table cellspacing='0' celpadding='0' border='0' width='100%'>
<tr>
<td height='34' class='oside'>$title</td>
</tr>
</table>
</tr>
<tr>
<td colspan='2' class='side-body' width='100%'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr><td><img src='".THEME."images/corner.gif'></td><td width='100%' background='".THEME."images/table2.gif'></td></tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='oside' height='34'>$title</td>
<td class='oside' 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>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='15'></td></tr>
</table>\n";
}
?>