<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
//Header
echo "<table cellspacing='0' cellpadding='0' width='1019' align='center'>\n<tr>\n";
echo "<td>\n";
echo"
<td background='".THEME."images/header/nav.png' width='1019' height='47' align='left' style='padding-left:15px;'>
<a href='".BASEDIR."index.php' class='nav-text'>PAGRINDINIS</a>
<a href='".BASEDIR."forum/index.php' class='nav-text'>FORUMAS</a>
</td>";
echo "<table align='center' cellpadding='0' cellspacing='0' width='1019' height='118'>\n<tr>
<td class='hed_1'>";
echo"</td>
<td align='center' class='hed_2'>";
include THEME."failai/monitor.php";
echo"</td>
</tr>
<tr>
<table align='center' cellpadding='0' cellspacing='0' width='1019'>\n<tr>
<td cellspacing='0' cellpadding='0' width='1007' class='slide'>";
echo"<div style='padding-right:0px; padding-bottom:0px;'>";
include THEME."failai/slide/img.php";
echo"</td>
</table>";
//Content
echo "<table align='center' cellpadding='0' cellspacing='0' >\n<tr>
<td align='right' width='1017'>";
echo "<table align='center' cellpadding='0' cellspacing='0' width='1017' align='center' class='content'>\n<tr>\n";
if (LEFT) { echo "<td width='255' class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td width='100%' class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER;
if($_SERVER['REQUEST_URI'] == "/".$settings['opening_page']){
echo "<table cellspacing='0' width='100%' cellpadding='0'>\n<tr>\n<td class='footer-body'><br/></td></tr>\n</table>\n";}
echo "</td>";
if (RIGHT) { echo "<td width='255' class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
echo "</td></tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='1017' align='center' class='footer'>\n<tr>\n";
echo "<td><span align='center' style='color: #FFF; font-size:14px; font-family: Trebuchet MS; font-weight:bold;'>COPYRIGHT 2010-2013 <span style='color: #9fc821; font-size:14px; font-family: Trebuchet MS; font-weight:bold;'>GOLD DUST</span><br>
<span style='padding-right:50px;'><a target='_blank' href='http://www.hey.lt/details.php?id=lazeriux'><img width='88' height='31' border='0' src='http://www.hey.lt/count.php?id=lazeriux' alt='Hey.lt - Nemokamas lankytoju skaitliukas'></a></span><br>
";
echo "</td></tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='1017' align='center'>\n<tr>\n";
echo "</tr>\n</table></br></br>\n";
/*foreach ($mysql_queries_time as $query) {
echo $query[0]." QUERY: ".$query[1]."<br />";
}*/
}
/* New in v7.02 - render comments */
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
$comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
echo "<div class='tbl2 clearfix floatfix'>\n";
if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}
function render_news($subject, $news, $info) {
$paneles_numeris = 1;
global $paneles_numeris;
if($paneles_numeris == 0){
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='capmain1'></td>
<td class='capmain2'></td>
<td class='capmain3'></td>
</tr></table>";
}
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='news-main1'></td><td class='news-main2'><span style='color: #FFF; font-size:14px; font-family: Trebuchet MS; font-weight:bold; padding-left:2px;'>".$subject."</span><br>
<span style='color: #FFF; font-size:11px; font-family: tahoma; padding-left:2px;'>Naujiena parašė:</span> <a href='".BASEDIR."narys-".$info['user_id'].".jar' style='color: #9ac31d; font-weight:bold; font-size:11px; font-family: tahoma;'>".$info['user_name']."</a> /</span> Data:</span> <span style='color: #9ac31d; font-size:11px; font-family: tahoma; font-weight:bold;'>".showdate("shortdate", $info['news_date'])."</span>
</td>\n<td class='news-main3'></td>";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class=''>\n<tr>\n";
echo "<td class='main-body22 middle-border'>".$info['cat_image'].$news."</td>\n";
echo "</tr>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
$paneles_numeris++;
}
function render_article($subject, $article, $info) {
echo "<table width='484' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n</table>\n";
echo "<table width='484' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articlecat($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td width='50' class='capmain-left'></td>";
echo "<td class='capmain'><span>".$title."</span></td>\n";
echo "<td width='6' class='capmain-right'></td>";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer apv'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr>\n</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='255'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='255' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
}
function closeside() {
echo "</td>\n</tr>\n</table>\n";
}
?>