Parašė Kemriux· 2008 Vas. 16 18:02:33
#1
ce buwawu kazkur parashes bet sukuriau savo tema. tai va man kazkodel niekaip neikel bannerio
Parašė Kemriux· 2008 Vas. 16 18:02:01
#2
theme.php saito url :
www.visx.ten.lt
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#343434";
$theme_width = "500";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><div align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/banner.jpg' border='0'></a></div></td>";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n";
echo "</table>";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='sublinkai'>".showsublinks("·","white")."</td>
<td align='right' class='sublinkai'>".showsubdate()."</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footeris'])."<br>";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='40'>";
echo "<tr><td class='footeris' valign='middle' width='35%'>";
if ($license == false) {
echo "<br><b><font color='#00ff66'>Powered by </font><a href='http://www.php-fusion.co.uk'><font color='#00ff66'>PHP-Fusion</a> v".$settings['version']."</b></font> ";
}
echo "</td>";
echo "<td class='footeris' align='center' width='20%'>";
echo "<br><font color='#00ff66'><b>Dinamic Theme by </font><a href='http://wtfthemes.failai.lt'><font color='#00ff66'>WTF Themes</font></b></a><br></td>";
echo "<td class='footeris' align='right' width='35%'><b><br><font color='#00ff66'>".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."</font></b>\n");
echo "</td></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panele1'><center>$subject</center></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='panele1'><center>$subject</center></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='100%'>
<tr>
<td class='panele1'><center>$title</center></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='165'>
<tr>
<td class='panele2'><center>$title</center></td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 0px solid #000000' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td class='panele2'>";
echo "<img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'><center>$title</center></font>";
echo "</td></tr>";
echo "<tr><td class='side-body' width='100%'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\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";
}
?>