<?php
/*--------------------------------------------+
| PHP-Fusion v7 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU Affero GPL v3. |
+--------------------------------------------*/
/*--------------------------------------------+
| Webmaster Files Theme for PHP-Fusion v7.x |
| Modified by:http://www.webmaster-files.com |
|---------------------------------------------|
| author: PHP-Fusion Themes © 2007 |
| web: http://phpfusion-themes.com |
| email: webmaster@phpfusion-themes.com |
|---------------------------------------------|
| Converted to V7 by Harly Petersen |
| web: http://php-fusion.openworld.dk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU Affero GPL v3. |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
//Theme settings
define("THEME_BULLET", "<img class='bullet' src='".THEME."images/bullet.gif' alt='->' border='0' />");
define("THEME_BULLET2", "<img class='bullet2' src='".THEME."images/bullet2.gif' alt='->' border='0' />");
define("THEME_WIDTH", "100%");
require_once INCLUDES."theme_functions_include.php";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
function render_page($license=false) {
global $settings, $main_style, $locale;
echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='body-border'>
<tr>
<td><table align='center' cellpadding='0' cellspacing='0' style='width: 100%;'><tr>
<td><div align='right' id='clockbar'><div class='clockbarcolor'>".showsubdate()."</div></div>
<div align='right' id='pageheader'>
<table style='width: 100%; height:50px;' cellspacing='0' cellpadding='0' border='0'><tr>
<td align='left' style='padding:5px;'>\n".showbanners()."</td>
</tr>
</table>
</div>
<table align='center' style='width:100%;' cellspacing='0' cellpadding='0'><tr>
<td class='subheader'>".showsublinks(" ".THEME_BULLET2." ", "white")."</td>
<td class='subheader' style='vertical-align:middle;' align='right'>
<form action='".BASEDIR."search.php?stype=f' method='post'>
<table cellspacing='0' width='100%' cellpadding='0' border='0'><tr>
<td align='right'><b>Search</b> <input type='text' class='input' name='stext' value='Search Forums'/> <input name='option' class='submit' type='submit' value='Search' />
</td></tr>
</table>
</form>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr>
<td align='center' class='footer'>";
if (!$license) { echo showcopyright()."<br/><br/>\n"; } echo showcounter()."<br/><br/><b>Webmaster Files</b> Theme designed by: <a target='_blank' href='http://phpfusion-themes.com'>Fuzed Themes</a> - Converted to V7 by <a target='_blank' href='http://php-fusion.openworld.dk'>Harly</a>";
echo "</td></tr>
</table>\n";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table style='WIDTH: 100%;' cellspacing='0' cellpadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div>
</td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' valign='top'>$news</td></tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellspacing='0' cellpadding='0' border='0'><tr>
<td align='center'>";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td></tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table style='WIDTH: 100%;' cellspacing='0' cellpadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div></td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' valign='top'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellspacing='0' cellpadding='0' border='0'><tr><td align='center'>";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td></tr>
</table>\n";
}
function opentable($title) {
echo "<table style='WIDTH: 100%' cellspacing='0' cellpadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
</tr>
<tr><td class='td-cell1' valign='top'>";
}
function closetable() {
echo "</td></tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='tableHeadingBG'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='tableHeadingBG' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>