Skórka to White_n_Light. Kod thema wygląda następująco:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "780");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $aidlink, $settings, $main_style, $locale, $userdata;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center' class='outer-border'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='778'>\n<tr>\n";
echo "<td class='full-header' width='".THEME_WIDTH."'>\n".showbanners()."</td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' class='outer-border1'>\n<tr>\n";
echo "<td class='sub-header'>".showsublinks(" <span class='bullet'>·</span> ","white")."</td>\n";
echo "<td align='right' class='sub-header'><img src='".THEME."images/aniarrow.gif' alt='' /> ".showcounter()."</td></tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' class='border' 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>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td align='center' class='footer1'>".stripslashes($settings['footer'])."Powered by <a href='http://www.php-fusion.co.uk' target='_blank' title='' class='white'>PHP-Fusion</a> copyright © 2002 - ".date("Y")." by Nick Jones.\n";
echo "<br />Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html' target='_blank' title='' class='white'>GNU Affero GPL</a> v3.\n";
echo "<br />".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."\n";
echo "</td>\n</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='borderpanel'>\n<tr>\n";
echo "<td class='scapmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='left' class='news-footer'>\n";
echo newsposter($info," ·").itemoptions("N",$info['news_id']);
echo "</tr>\n<tr>\n";
echo "<td class='main-body1'>".$news."</td>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<br />";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($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," ·").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 class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</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='borderpanel'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' 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";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Pieka dnia 28.09.2008 10:35:10
|