<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#efefef";
$body_bg = "#FFFFFF";
$theme_width = "800";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width, $userdata, $aidlink, $settings, $db_prefix;
echo "<table cellpadding='0' cellspacing='0' width='800' align='center'>
<tr>
<td class='header'>
<div id='plotas'>
<div id='naujausia'>\n"; include THEME."panele.php"; echo "</div>
</div>
</td>
</tr>
</div>
</td>
</tr><tr>
<td class='subnav'>
<center>".showsublinks("»","black")."</center>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='770' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='791' class='footer'>
<tr>
<td style='padding-left: 30px;'>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='556'>
<tr>
<td class='capmain'>$subject <a href='news.php?readmore=".$info['news_id']."' style='font-size:9px; color:#ffffff;'>| Skaityti toliau »</a></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='556' cellpadding='0' cellspacing='0'>
<tr>
<td align='center' class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='556'>
<tr>
<td align='center' class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<tr><td><img src='".THEME."images/news_foot.png' alt='naujienos'></td></tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='215' class='border'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr><td><img src='".THEME."images/panel_foot.png' alt='panele'></td></tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='215' 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='00'>\n<tr>\n<td height='8'></td>\n</tr>\n</table>\n";
}
?>