Początkujący
Postów: 101 Pomógł: 2 Ostrzeżeń: 1
v7.01.06 Data rejestracji: 23.03.2009 14:14
ZBANOWANY: Dożywotnio
|
Ok. Rozumiem Pana
Plik theme.php wygląda następująco:
<?php
/* ZindeX (v1.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.or...l-3.0.html */
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "");
define("THEME_WIDTH", "980");
define("THEME_WIDTH_L", "170");
define("THEME_WIDTH_R", "180");
$enable_header_bar = true; //true=enable the bar on top with sitename/search-box | false=disable
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $locale, $settings ,$userdata, $aidlink, $enable_header_bar, $main_style;
if($enable_header_bar){
echo " <table id='header-bar' align='center' cellspacing='0' cellpadding='0' width='100%'>\n<tr>\n<td>";
echo " <div style='width:".THEME_WIDTH."px; text-align:center; margin:auto;'><div id='site-name'>".$settings['sitename']."</div>";
echo " <div style='float:right;'>";
echo " <form name='searchform' method='get' action='".BASEDIR."search.php'>\n";
echo " <input type='text' name='stext' id='searchbox' style='width:150px' />\n";
echo " </form>";
echo " </div></div>\n";
echo "</td></tr>\n</table>\n";
}
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 "<table cellpadding='0' cellspacing='0' class='clear' width='".THEME_WIDTH."'>\n";
echo "<tr>\n";
echo "<td class='sub-header' style='padding:3px 0 0 ".THEME_WIDTH_L."px;' valign='top'>".showsublinks("", "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>";
echo "</td>";
echo "</tr>\n";
echo "</table>";
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n";
echo "<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top' style='width:".THEME_WIDTH_L."px;'>".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' style='width:".THEME_WIDTH_R."px;'>".RIGHT."</td>"; }
echo "</tr>\n";
echo "</table>";
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(); }
echo " | <a href='http://yafs.net' target='_blank' title='A theme by Sveinung Skjærseth'>ZindeX</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) {
global $p_data;
if (file_exists(THEME."images/title/".$p_data['panel_filename'].".png")) {
$title = "<img class='p-img' src='".THEME."images/title/".$p_data['panel_filename'].".png' alt='' />$title";
} else {
$title = "$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;
if ($collapse == false) {
if (file_exists(THEME."images/title/".$p_data['panel_filename'].".png")) {
$title = "<img class='p-img' src='".THEME."images/title/".$p_data['panel_filename'].".png' alt='' />$title";
}
} else {
$title = "$title";
}
echo "<table cellspacing='0' cellpadding='0' width='100%'>";
if($p_data['panel_filename'] == "css_navigation_panel" && $p_data['panel_side'] == 1) {
$title = "";
$panel_collapse = false;
echo "<tr>\n<td width='100%'>";
}
else {
if ($p_data['panel_side'] == 4) {
echo "<tr>\n<td class='scapmain-rl'></td><td class='scapmain-r-bg'>$title</td><td align='right' class='scapmain-rr'>";
} 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:-12px;'>".panelbutton($state, $boxname)."</div>\n";
}
if ($p_data['panel_side'] == 4) {
echo "</td></tr>\n<tr>\n<td width='100%' colspan='2' class='side-body-l'>";
} else {
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"; }
if ($p_data['panel_side'] == 4) {
echo "</td><td class='side-body-r'></td></tr><tr><td class='side-foot-l'></td><td class='side-foot-bg'></td><td align='right' class='side-foot-r'></td></tr>\n</table>\n";
} else {
echo "</td></tr></table>";
}
}
?> Kliknij i zaczekaj na załadowanie kodu ...
Kody w [code] //bartek124
Plik style.css:
a {
color: #CC9932;
text-decoration: none;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
a:hover {
color: #CC9932;
text-decoration: underline;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
a.side {
color: #CC9932;
text-decoration: none;
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
}
a:hover.side {
color: #CC9932;
text-decoration: underline;
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
}
a.white, li.white a {
font: bold 11px Georgia, "Times New Roman", Times, serif;
color: #fff;
text-decoration: none;
padding: 5px;
border: 1px solid #DDD;
border-bottom: 0;
}
a:hover.white, li.white a:hover {
font: bold 11px Georgia, "Times New Roman", Times, serif;
color: #171717;
border: 1px solid #FFF;
border-bottom: 0;
text-decoration: underline;
padding: 5px;
background: #FFF;
}
.sub-header ul {
margin: 0 0 0 10px;
padding: 0;
}
.sub-header ul li {
display: inline;
}
#page-body {
border: 1px solid #827116;
background: #991900;
}
.sub-header {
width: 100%;
height: 1px;
font: 14px Verdana, Arial, Helvetica, sans-serif;
color: #111;
background: #991900 url(images/sub-left.gif) no-repeat right;
}
#user-buttons {
float: right;
display: inline;
font: 9px Verdana, Arial, Helvetica, sans-serif;
color: #D0EFFF;
white-space: nowrap;
margin-top: -16px;
margin-right: 10px;
}
.user-img {
vertical-align: middle;
}
.p-img {
margin: -5px 3px 0 -4px;
vertical-align: middle;
}
#full-header {
font: 10px Verdana, Arial, Helvetica, sans-serif;
background: #991900 url(images/full-header-bg.jpg) repeat-x top;
padding: 10px;
border-bottom: 3px solid #991900;
}
#full-header a {
font: bold 20px Georgia, "Times New Roman", Times, serif;
}
#header-bar {
width: 100%;
height: 18px;
min-height: 18px;
padding: 5px 0 10px;
border-bottom: 2px solid #DDD;
background: #FEFFFF;
}
#site-name {
float: left;
font: bold 13px Georgia, "Times New Roman", Times, serif;
color: #333;
margin-top: 5px;
}
#searchbox {
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #111;
border: 1px solid #D9BC24;
padding: 1px 1px 1px 20px;
margin: 5px 0;
background: #FFF url(images/search.png) no-repeat left top;
}
#searchbox:focus, #searchbox:hover {
border: 1px solid #C7E14F;
padding: 1px 1px 1px 20px;
margin: 5px 0;
background: #F1F1F1 url(images/search.png) no-repeat left top;
font: 10px Verdana, Arial, Helvetica, sans-serif;
}
body {
height: 100%;
color: #333;
padding: 0;
margin: 0;
background: #171717 url(images/body-bg.jpg) repeat-x fixed;
font: 11px Verdana, Arial, Helvetica, sans-serif;
}
img {
border: 0;
}
form {
margin: 0;
}
hr {
border: none 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #efefef;
width: 100%;
height: 2px;
margin: 2px;
text-align: left;
}
hr.side-hr {
border: none 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #efefef;
width: 100%;
height: 2px;
margin: 2px;
text-align: left;
}
td {
font: 11px Verdana, Arial, Helvetica, sans-serif;
}
pre {
font: 11px Verdana, Arial, Helvetica, sans-serif;
}
.alt {
font-weight: bold;
}
.footer {
text-align: center;
color: #7F7F7F;
padding: 16px;
background: #171717 url(images/footer-bg.jpg) repeat-x top;
font: 10px Verdana, Arial, Helvetica, sans-serif;
}
.button {
color: #FFF;
border: 1px solid #D9BC24;
padding: 2px;
margin-top: 2px;
background: #991900;
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
}
.bbcode {
border: 1px solid #D9BC24;
}
.bbcode:hover {
border: 1px solid #C7E14F;
}
.textbox {
color: #111;
border: 1px solid #D9BC24;
margin: 2px 0;
background: #FFF;
font: 10px Verdana, Arial, Helvetica, sans-serif;
}
.textbox:focus, .textbox:hover {
color: #111;
border: 1px solid #C7E14F;
margin: 2px 0;
background: #F1F1F1;
font: 10px Verdana, Arial, Helvetica, sans-serif;
}
.main-body {
font-size: 11px;
color: #333;
padding: 5px;
background: #FEFFFF;
}
.side-body {
font-size: 10px;
color: #FFF;
padding: 4px 4px 8px;
}
.scapmain {
font: bold 13px Georgia, "Times New Roman", Times, serif;
height: 22px;
color: #FFF;
border-bottom: 1px solid #FFF;
padding: 10px 5px 5px 3px;
background: #991900;
}
.scapmain-rl {
height: 22px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/scap-right-bg-left.jpg) no-repeat top left;
}
.scapmain-r-bg {
font: bold 13px Georgia, "Times New Roman", Times, serif;
height: 22px;
color: #333;
padding: 6px 5px 5px;
margin: 0;
background: url(images/scapmain-r-bg.jpg) repeat-x top;
}
.scapmain-rr {
font: bold 13px Georgia, "Times New Roman", Times, serif;
height: 22px;
width: 3px;
color: #333;
padding: 5px;
margin: 0;
background: url(images/scapmain-rr.jpg) no-repeat top right;
}
.side-body-l {
width: auto;
font-size: 10px;
color: #333;
margin: 0;
padding: 0 0 0 6px;
background: url(images/side-body-l.jpg) repeat-y left;
}
.side-body-r {
width: 10px;
font-size: 10px;
color: #333;
margin: 0;
background: url(images/side-body-r.jpg) repeat-y right;
}
.side-foot-l {
height: 22px;
margin-top: -2px;
padding: 0;
background: url(images/side-foot-rl.jpg) no-repeat bottom left;
}
.side-foot-bg {
background: url(images/side-foot-bg.jpg) repeat-x bottom;
}
.side-foot-r {
height: 22px;
width: 3px;
margin-top: -2px;
padding: 0;
background: url(images/side-foot-r.jpg) no-repeat bottom right;
}
.main-bg {
height: 100%;
color: #333;
padding: 5px 5px 10px;
background: #FEFFFF url(images/main-bg-corner.jpg) no-repeat bottom left;
}
.border {
border: 1px solid #FEFFFF;
}
p {
margin: 2px;
}
.side-left .side-border-right {
display: none;
}
.side-right .side-border-left {
display: none;
}
.side-border-left {
color: #777;
padding: 0 5px 10px;
background: #991900;
}
.side-border-right {
color: #777;
padding: 3px 3px 10px 7px;
border-left: 1px dotted #999;
background: #FEFFFF url(images/side-border-right-corner.jpg) no-repeat bottom right;
}
.news-category {
border: 0;
margin: -8px 0 3px 3px;
float: right;
}
.news-capmain {
font: bold 16px Georgia, "Times New Roman", Times, serif;
color: #f1f1f1;
border-top: 1px solid #fff;
border-left: 1px solid #fff;
padding: 5px;
background: #991900 url(images/news-capmain-bg.jpg) no-repeat bottom right;
}
.news-footer {
clear: both;
text-align: center;
font-size: 10px;
color: #333;
padding: 3px 3px 0;
margin: 2px 2px 0;
background: #FEFFFF;
}
.art-capmain {
font: bold 16px Georgia, "Times New Roman", Times, serif;
color: #f1f1f1;
text-transform: uppercase;
border-top: 1px solid #fff;
border-left: 1px solid #fff;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
padding: 5px 0 5px 5px;
background: #7F9900 URL(images/art_capmain.jpg) repeat-y right;
}
.art-body {
font-size: 11px;
color: #333;
border-top: 0 solid #ddd;
border-left: 1px solid #ccc;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
padding: 4px 5px 5px;
background: #FFF;
}
.art-footer {
clear: both;
height: 5px;
line-height: 5px;
border: 1px solid #fff;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
background: #7F9900 url(images/art_capmain.jpg) repeat-y right;
}
.capmain {
font: bold 13px Georgia, "Times New Roman", Times, serif;
color: #333;
border-bottom: 1px solid #999;
padding: 9px 0 4px 5px;
background: #FEFFFF;
}
code, pre {
font: 11px monospace;
}
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #999;
color: #111;
background: #eee;
}
.tbl {
font-size: 11px;
color: #333;
padding: 2px;
background: #FEFFFF;
}
.tbl1 {
font-size: 11px;
color: #333;
padding: 4px;
background: #FEFFFF;
}
.tbl2 {
font-size: 11px;
color: #333;
padding: 4px;
background: #EEE;
}
.forum-caption {
font: bold 13px Georgia, "Times New Roman", Times, serif;
color: #333;
border-top: 1px solid #f1f1f1;
border-left: 1px solid #f1f1f1;
border-right: 1px solid #f1f1f1;
border-bottom: 1px solid #f1f1f1;
padding: 2px 4px 2px 5px;
background: #FEFFFF;
}
.quote {
font-size: 11px;
color: #333;
padding: 4px 4px 4px 7px;
margin: 3px;
border: 1px solid #A8B3CA;
border-left: 5px solid #A8B3CA;
background: #FEFFFF;
}
.poll {
height: 10px;
border-top: 1px solid #A8B3CA;
border-left: 1px solid #A8B3CA;
border-right: 1px solid #fff;
border-bottom: 1px solid #fff;
background: #E8E8F1;
}
.comment-name {
font-weight: bold;
}
.shoutboxname {
font-weight: bold;
}
.shoutbox {
color: #333;
padding: 3px 1px;
background: #EEE;
}
.shoutboxdate {
font-size: 10px;
color: #171717;
padding: 3px 0;
margin-top: 2px;
background: #EEE;
}
.small {
font-size: 11px;
font-weight: normal;
}
.small2 {
font-size: 11px;
font-weight: normal;
}
.side-small {
font-size: 10px;
font-weight: normal;
padding: 2px;
}
.side-label {
font: bold 11px Georgia, "Times New Roman", Times, serif;
padding: 2px 4px 2px 2px;
margin-top: 3px;
margin-bottom: 3px;
}
.admin-message {
text-align: center;
color: #555;
border: 1px solid #827116;
padding: 3px 4px 5px;
margin-bottom: 5px;
background: #D5E87B;
font: 11px Verdana, Arial, Helvetica, sans-serif;
}
.pagenav {
padding: 4px;
}
.pagenav span {
color: #FEFFFF;
border: 1px solid #ddd;
padding: 2px 4px;
margin: 2px;
background: #D0C792;
}
.pagenav a {
color: #555;
border: 1px solid #ddd;
padding: 2px 4px;
margin: 2px;
text-decoration: none;
background: #f1f1f1;
}
.pagenav a:hover {
color: #333;
margin: 2px;
text-decoration: none;
border: 1px solid #ddd;
border-top: 1px solid #999;
border-left: 1px solid #999;
background: #C7E14F;
}
#navigation h2 {
font: bold 11px Georgia, "Times New Roman", Times, serif;
color: #FFF;
margin: 0;
padding: 4px;
background: #991900;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li, #navigation a {
height: 1%;
}
#navigation a {
display: block;
font: bold 11px Georgia, "Times New Roman", Times, serif;
color: #FFF;
padding: 2px;
text-decoration: none;
border: 1px solid #DDD;
border-bottom: 1px solid #999;
border-left: 1px solid #827116;
background: #991900 url(images/white_bg2.jpg) repeat-y right;
}
#navigation a:hover {
color: #000;
padding: 2px 2px 2px 8px;
text-decoration: none;
border: 1px solid #333;
border-bottom: 1px solid #DDD;
border-right: 1px solid #DDD;
background: #FFF url(images/white_bg2.jpg) repeat-y left;
}
.clear {
clear: both;
}
/* TinyMCE specific rules */
body.mceContentBody {
background: #FFF;
color: #000;
}
.mceContentBody a {
color: blue !important;
}
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Pieka dnia 26.03.2009 21:56:19
|