Tutaj style.css
Kod: Zaznacz cały
/*Fumaeleon Theme for PHP-Fusion 7 by Max "Matonor" Toball*/
/*General*/
html {font-size: 75%;}
body {
background: #828282;
color: #fff;
font-size: 1em;
}
* {
font-family: Verdana, Arial, Sans, sans-serif;
margin: 0;
padding: 0;
border: 0;
font-size: 1em;
}
ul, ol, dl {margin: 0.5em 1em}
li {margin-left: 1.5em; line-height: 1.5em;}
option {padding-left: 0.75em}
#subheader ul, #subheader li, #userbar ul, #userbar li, #navigation ul, #navigation li {margin: 0; line-height: inherit;}
/*Links*/
#main {
margin-top: 160px;
}
a {
color: #ccc;
text-decoration: none;
}
a:hover {
color: #fff;
text-decoration: none;
}
.news-footer a {
color: #fff;
text-decoration: underline;
}
.news-footer a:hover { text-decoration: none; }
#subheader a, #links a {
color: #fff;
height: 2em;
display: block;
float: left;
padding: 0em 0.5em;
font-weight: bold;
}
#anchors a {
color: #666;
margin-left: 0.25em;
}
#subheader a:hover, #subheader .active a, #links a:hover{
background: #3f3f3f;
color: #ccc;
}
/*Structure*/
#main {
position: absolute;
top: 0px;
left: 0px;
}
#mainheader {
background: #3f3f3f;
padding: 0.5em;
}
#cont {background: #fff;}
#subheader, #userbar {
background-color: #2c2c2c;
height: 2em;
line-height: 2em;
overflow: hidden;
}
#subheader {
background: #2c2c2c url(images/colours/grey/lhcorner.gif) right bottom no-repeat;
margin-bottom: 1em;
padding-right: 1em;
}
#userbar ul li, #subheader ul li {display: inline;}
#borderl {
padding-left: 24px;
background: url(images/borderl.gif) repeat-y;
}
#borderr {
right: 0px;
top: 0px;
padding-right: 24px;
background: url(images/borderr.gif) right repeat-y;
}
#uborder {
height: 24px;
width: 100%;
background: url(images/uborder.gif) repeat-x;
}
#lborder {
height: 24px;
width: 100%;
background: url(images/lborder.gif) repeat-x;
}
#ucornerl, #ucornerr, #lcornerl, #lcornerr {
height: 24px;
width: 24px;
}
#ucornerl {background: url(images/uborderl.gif);}
#ucornerr {background: url(images/uborderr.gif);}
#lcornerl {background: url(images/lborderl.gif);}
#lcornerr {
height: 24px;
width: 24px;
background: url(images/lborderr.gif);
}
#main-bg {
line-height: 1.4em;
padding: 1em;
background: #5d5d5d url(images/colours/grey/mcorner.gif) right top no-repeat;
}
* html #main-bg{overflow: visible;}
#side-border-left {
width: 15em;
max-width: 15em;
float:left;
padding: 0.8em 1em;
background: #4a4a4a url(images/colours/grey/lscorner.gif) right top no-repeat;
}
#side-border-right {
width: 15em;
max-width: 15em;
float:right;
padding: 0.8em 1em;
background: #4a4a4a url(images/colours/grey/rscorner.gif) left top no-repeat;
}
.side-both #main-bg {margin: 0 18em;}
.side-left #main-bg {margin-left: 18em;}
.side-right #main-bg {margin-right: 18em;}
.side-left #side-border-right {display:none;}
.side-right #side-border-left {display:none;}
/*Navigation Panel*/
#navigation h2, .side-label {
font-size: 1.1em;
padding: 0.15em;
font-weight: 700;
border-bottom: 2px solid #fff;
}
#navigation ul {
margin-left: -0.25em;
list-style-type: none;
line-height: 1.2em;
}
#navigation img {display: none;}
* html #navigation ul li {height: 1%;}
#navigation a {
display: block;
padding: 2px;
margin-left: 2px;
text-decoration : none;
}
#navigation a:hover {
border-left: 2px solid #fff;
margin-left: 0;
}
/*Misc Styles*/
.comment-avatar {
padding-right: 6px;
float: left;
}
.pagenav {padding: 0.4em; color:#f0f0f0;}
.pagenav span, .pagenav a, .pagenav a:hover {
background-color: #aaa;
border: 1px solid #fff;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
}
.pagenav a {
color: #aaa;
background-color: #888;
}
.switcherbutton {
height: 2em;
width: 2em;
}
.textbox, .button {
color: #f0f0f0;
background-color: #5d5d5d;
border: 2px solid #f0f0f0;
padding: 0.2em;
margin-top: 0.1em;
font-size: 0.9em;
}
.textbox:focus{border-color: #333;}
#main-bg .textbox, #main-bg .button, .tbl-border { background-color: #5d5d5d; }
.bbcode {
color: #f0f0f0;
background-color: #5d5d5d;
border: 1px solid #f0f0f0;
margin-top: 0.1em;
font-size: 0.9em;
}
.admin-message, #footer, #subfooter {
width: 80%;
border: 2px solid #f0f0f0;
background: #454545;
margin: 1em auto;
padding: 0.5em;
}
#footer, #subfooter{
font-size: 0.9em;
border-color: #aaa;
background: #666;
}
.border {border: 1px solid #fff;}
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
.news-footer {padding: 0.5em;}
.news-footer-img {vertical-align:middle;}
.barmain {
color: #aaa;
padding: 4px;
}
.panelcap {
font-size: 1.3em;
font-weight: bold;
}
.panelbody {padding: 0em 0.5em 0.5em 0.5em;}
.tbl-border{
background: #5d5d5d;
border: 1px solid #5d5d5d;
}
.tbl, .tbl1, .tbl2 {padding: 3pt;}
.tbl1 {background: #3f3f3f;}
.tbl2 {background: #434343;}
.forum-caption {
font-weight: bold;
background: #2c2c2c;
padding: 3pt;
}
.quote {
padding: 3pt;
margin: 0 20px;
background: #2c2c2c;
border-left: 2pt solid #fff;
}
.poll {
height: 1em;
border: 2px solid #fff;
}
.small, .small2, .side-small {font-size: 0.85em;}
.side-label {
font-weight: bold;
padding: 3pt;
}
code, pre {
font-family: monospace;
font-size: 1.1em;
}
.alt {color: #555;}
div.emulated-fieldset {
position: relative;
margin: 20px 0px 10px 0px;
border: 1px solid #ccc;
width: 320px;
background: inherit;
}
div.emulated-fieldset span.emulated-legend {
display: inline;
position: absolute;
top: -12px;
margin: 0 5px;
padding: 4px;
background: inherit;
}
div.emulated-fieldset div.attachments-list {
padding: 10px 3px 3px 3px;
width: 320px;
}
hr {
border:solid #fff 1pt;
height: 1pt;
background: #fff;
}
.panelbutton{
float: right;
margin: 0.3em;
}
h1,h2,h3,h4,h5,h6 {font-size: inherit;}
/*Helpers*/
.center {margin: 0 auto;}
.content_center {text-align: center;}
.flleft {float: left !important;}
.flright {float: right !important;}
.clear {clear: both;}
#container{
width: 100%;
overflow-x: auto;
overflow-y: visible;
}
/*IE Fixes*/
* html #main-bg {
height: 1%;
width: auto;
}
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* Hide from IE Mac \*/
.clearfix {display:block;}
/* End hide from IE Mac */
.floatfix {overflow:hidden;}
* html .floatfix {width:100%;}
.center, *[align="center"] {margin: 0 auto;}
/* TinyMCE specific rules */
body.mceContentBody {
background: #FFFFFF;
color: #000000;
}
Kod: Zaznacz cały
<?php
/*.Fumaeleon Theme for PHP-Fusion v7.*|
|*.Author: Max "Matonor" Toball......*|
|*.Released under the Affero GPLv3...*/
//Theme Settings
define("THEME_WIDTH", "100%"); //theme width. Make sure to adapt the margin-left in the first div (-width/2).
define("THEME_BULLET", "<img class='bullet' src='".THEME."images/bullet.gif' alt='->' />"); //bullet image
$enable_colour_switcher = true; //true=enable colour switcher | false=disable colour switcher
$enable_fontsize_switcher = true; //true=enable fontsize switcher | false=disable fontsize switcher
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
require_once THEMES."templates/switcher.php";
$colour_switcher = new Switcher("select", "colour", "gif", "green", "switcherbutton");
if(!$enable_colour_switcher){
$colour_switcher->disable();
}
$fontsize_switcher = new Switcher("increment", "fontsize", "gif", 1, "switcherbutton", "", true, array("step" => 0.1, "max" => 1.5));
if(!$enable_fontsize_switcher){
$fontsize_switcher->disable();
}
function get_head_tags(){
global $colour_switcher, $fontsize_switcher;
echo $colour_switcher->makeHeadTag();
echo "<style type='text/css'>body{font-size: ".$fontsize_switcher->selected."em;}</style>";
echo "<!--[if lte IE 7]><style type='text/css'>.clearfix {display:inline-block;} * html .clearfix{height: 1px;}</style><![endif]-->";
}
function render_page($license=false) {
global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $main_style;
echo "
<div id='main' style='width: ".THEME_WIDTH.";'>
<div id='uborder' class='clearfix'>
<div id='ucornerl' class='flleft'></div>
<div id='ucornerr' class='flright'></div>
</div>
<div id='borderr'>
<div id='borderl'>
<div id='cont' class='clearfix $main_style'>
<div id='userbar' class='floatfix'>
<ul id='anchors' class='flleft'><li><a href='#Content'>".$locale['global_210']."</a></li></ul>
<ul id='links' class='clearfix flright'>\n";
if(iMEMBER){
echo "\t\t\t\t\t\t\t<li><a href='".BASEDIR."edit_profile.php'>".$locale['global_120']."</a></li>
<li><a href='".BASEDIR."messages.php'>".$locale['global_121']."</a></li>
".(iADMIN ? "<li><a href='".ADMIN."index.php".$aidlink."' >".$locale['global_123']."</a></li>" : "")."
<li><a href='".BASEDIR."setuser.php?logout=yes'>".$locale['global_124']."</a></li>\n";
}else{
echo "\t\t\t\t\t\t\t<li><a href='".BASEDIR."login.php'>".$locale['global_104']."</a></li>
".($settings['enable_registration'] ? "<li><a href='".BASEDIR."register.php'>".$locale['global_107']."</a></li>\n" : "");
}
echo "\t\t</ul>
</div>
<div id='mainheader' class='clearfix'>".showbanners()."</div>
<div id='subheader' class='clearfix'>".
preg_replace("^(li)( class='(first-link)')*(><a href='(\.\./)*".preg_quote(START_PAGE)."')^i", "\\1 class='active \\3'\\4", showsublinks(""))."
".$colour_switcher->makeForm("flright")."
".$fontsize_switcher->makeForm("flright")."
</div>
".(LEFT ? "<div id='side-border-left'>".LEFT."</div>" : "")."
".(RIGHT ? "<div id='side-border-right'>".RIGHT."</div>" : "")."
<div id='main-bg'><div id='container'>".
U_CENTER.
CONTENT.
L_CENTER."
</div></div>
</div>
</div>
</div>
<div id='lborder'>
<div id='lcornerl' class='flleft'></div>
<div id='lcornerr' class='flright'></div>
</div>
<div id='footer' class='clearfix'>
".(!$license ? "<div class='flleft' style='width: 50%'>".showcopyright()."<br />\n Theme designed by <a href='http://matonor.com'>Max Toball</a></div>" : "")."
<div class='flright' style='width: 50%; text-align: right;'>".stripslashes($settings['footer'])."</div>
</div>
<div id='subfooter' class='clearfix'>
<div class='flleft' style='width: 50%'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>
<div class='flright' style='width: 50%; text-align: right;'>".showcounter()."</div>
</div>
</div>";
}
/* New in v7.02 - render comments */
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
$comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
echo "<div class='tbl2 clearfix floatfix'>\n";
if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo "<div class='floatfix'>".$info['cat_image'].$news."</div>
<div class='news-footer'>
".newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']).
"</div>\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div class='news-footer'>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>\n";
closetable();
}
function opentable($title) {
echo "\n<h2 class='panelcap'>$title</h2>\n\t<div class='panelbody'>\n";
}
function closetable() {
echo "</div>\n";
}
$panel_collapse = true;
function openside($title, $collapse = false, $state = "on") {
static $box_id = 0; $box_id++;
global $panel_collapse; $panel_collapse = $collapse;
echo "<h3 class='panelcap'>".($collapse ? panelbutton($state,$box_id) : "")."$title</h3>
<div class='panelbody'>\n\t".($collapse ? panelstate($state, $box_id) : "");
}
function closeside() {
global $panel_collapse;
echo ($panel_collapse ? "\t</div>" : "")."\n</div>\n";
}
?>
Proszę o pomoc