Styl Elin dostępny na: http://yafs.net/n...
Zawartość pliku theme.php:
<?php
/* Elin (v2.0.0) - a theme for PHP-Fusion v7. Theme author: Sveinung {Sveinungs} Skjerseth, http://yafs.net
Released as free software without waranties under the Affero GPLv3, see http://www.fsf.org/licensing/licenses/agpl-3.0.html */
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "");
define("THEME_WIDTH", "940");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $locale, $settings ,$userdata, $aidlink, $main_style;
// HEADER
echo "
<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' id='page-body' class='$main_style'>\n<tr>\n<td>";
echo "<div id='full-header'>".showbanners()."</div>";
echo "<div class='sub-header'>".showsublinks("<img src='".THEME."images/whiteb.gif' alt='·' class='user-img' />","white")."";
echo "<span id='user-buttons'>";
if (iMEMBER){
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) { echo "<a href='".BASEDIR."messages.php'><img class='user-img' src='".THEME."images/pm_unread.png' alt='' title='".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."' /></a>";
}
echo " <a href='".BASEDIR."login.php'><img class='user-img' src='".THEME."images/login.gif' alt='' title='".$userdata['user_name']."' /></a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php".$aidlink."'><img class='user-img' src='".THEME."images/admin.png' alt='".$locale['global_123']."' title='".$locale['global_123']."' /></a>";
}
echo " <a href='".BASEDIR."setuser.php?logout=yes'><img class='user-img' src='".THEME."images/logout.png' alt='".$locale['global_124']."' title='".$locale['global_124']."' /></a>";
} else {
echo " <a href='".BASEDIR."login.php'><img class='user-img' src='".THEME."images/login.gif' alt='' title='".$locale['global_104']."' /></a>";
}
echo "</span></div>\n";
echo "<div style='clear:both;'></div>";
// CONTENT
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\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 "<div class='footer'>".stripslashes($settings['footer'])."<br /><br />\n";
echo " ".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))." | ".showcounter()."<br />";
if (!$license) { echo "".showcopyright()."<br />"; }
echo "<a href='http://yafs.net' target='_blank' title='A theme by Sveinung Skjærseth'>The <span style='color:#993F00'>Elin</span> Theme</a>";
echo "<br />";
echo "</div>\n";
echo "
</td></tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo" <div class='news-capmain'>$subject</div>\n";
echo" <div class='main-body'>$news";
echo" <p class='news-footer'>".newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id'])."</p>\n";
echo" </div>\n
<div class='art-footer'></div>\n";
echo "<div style='height:5px;'></div>\n";
}
function render_article($subject, $article, $info) {
echo" <div class='art-capmain'>$subject</div>\n
<div class='art-body'>";
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article);
echo" <p class='news-footer' style='text-align:left'>".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id'])."</p>\n";
echo" </div>\n
<div class='art-footer'></div>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n
<td class='capmain'>$title</td>
</tr>\n<tr>\n
<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $p_data, $panel_collapse; $panel_collapse = $collapse;
echo "<table cellspacing='1' width='100%' cellpadding='3'>";
if($p_data['panel_filename'] == "css_navigation_panel") {
$title = "";
$panel_collapse = false;
echo "<tr>\n<td width='100%'>";
}
else {
echo "<tr>\n<td class='scapmain' height='20' width='100%'>$title";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<br /><div style='float:right; margin-top:-16px;'>".panelbutton($state, $boxname)."</div>\n";
}
echo "</td></tr>\n<tr>\n<td class='side-body' width='100%'>";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
}
function closeside() {
global $p_data, $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td></tr></table>";
}
?>
Edytowane przez Pieka dnia 21.10.2009 14:52:07
|