theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); } // theme settings
define("THEME_BULLET", "<img src='".THEME
."images/bullet.gif' class='bullet' alt='?' border='0' />"); require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
echo "<table align='center' cellspacing='0' cellpadding='0' id='main'> <tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>".showbanners()."</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='tablebreak'>
<tr>
<td class='white-header'>".showsublinks(" ", "white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>";
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>"; } </table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer'><br>".stripslashes($settings['footer'])."</td> </tr>
<tr>
<td align='center' class='footer'>\n";
if ($license == false) {
}
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak''> <tr>
<td class='capmain'>".$subject."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='main-body'>".$news."</td>
</tr>
<tr>
<td align='right' class='news-footer'>".newsposter($info, THEME_BULLET).newsopts($info, THEME_BULLET).itemoptions("N",$info['news_id'])."</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'> <tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>".$subject."</td>
</tr>
<tr>
<td class='main-body'>".($info['article_breaks'] == "y" ?
nl2br($article) : $article)."</td> </tr>
<tr>
<td align='center' class='news-footer'>".articleposter($info, THEME_BULLET).articleopts($info, THEME_BULLET).itemoptions("A",$info['article_id'])."</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom:2px;'> <tr>
<td class='capmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='tablebreak'>
<tr>
<td background='".THEME."images/zaw/srodek.gif' class=''>";
}
function closetable() {
</tr>
<tr>
<td height='10'>
<img src='".THEME."images/zaw/dol.gif'>
</td>
</tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
$panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'> <tr>
".($collapse ? "<td class='scapmain' align='center'>".panelbutton($state, $boxname)."</td>" : "")."
<td colspan='2' class='side-body'><img src='".THEME."images/blank.gif' alt='' height='2' width='1'></td>
</tr>
<tr>
<td colspan='2' class='scapmain'>".$title."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>";
if ($collapse == true) { echo panelstate
($state, $boxname); } }
function closeside() {
if ($panel_collapse == true) { echo "</div>\n"; } </td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'> <tr>
<td height='8'></td>
</tr>
</table>\n";
}
?>
Zgodny z wersją 7.
style.css:
body {
background-attachment: fixed;
background-image: url("images/background.jpg");
background-position: center top;
background-repeat: no-repeat;
color: #000;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 12px;
margin: 9px 15px 0 0;
text-shadow: 0 0 0 black;
}
.main-bg {
padding-left: 0;
padding-right: 0;
padding-top: 0;
font-weight: bold;
}
.main-body {
color: #000;
font-size: 12px;
font-variant: small-caps;
padding: 0;
font-weight: bold;
}
.side-body {
background-color: #B5B1B2;
color: #000;
font-size: 12px;
font-variant: small-caps;
padding: 0;
}
.border {
background-color: #000;
border: 1px solid #004A80;
}
.infobar {
color: #000;
font-size: 10px;
padding: 1px;
}
.side-caption {
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-weight: bold;
padding: 0 4px 3px;
}
a {
color: #000;
font-variant: small-caps;
text-decoration: none;
}
a {
color: #8D0000;
text-decoration: none;
}
a:hover {
color: #F00;
text-decoration: none;
}
a.side {
color: #000;
padding: 2px;
text-decoration: none;
}
a.side:hover {
color: #f6f6f6;
background-color: #ccc;
}
.gallery {
padding: 16px 0 8px;
}
.gallery img {
border: 1px solid #333;
}
.gallery:hover img {
border: 1px solid #000;
}
img.activegallery {
border: 1px solid green;
}
.login1 {
background-image: url("images/top/login/go.png");
border: 0 none;
color: #FFF;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-weight: bold;
height: 21px;
margin-top: 2px;
width: 75px;
}
.register1 {
background-image: url("images/top/login/rej.png");
border: 0 none;
color: #FFF;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-weight: bold;
height: 21px;
margin-top: 2px;
width: 75px;
}
.panellogowania_texbox {
background-image: url("images/top/login/okno1.gif");
border: 0 none;
color: #000;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 12px;
font-variant: normal;
font-weight: bold;
height: 23px;
padding: 0;
text-align: center;
text-decoration: none;
width: 136px;
}
.scapmain {
background-image: url("images/menu/up.gif");
background-position: left center;
background-repeat: repeat-x;
font-size: 12px;
font-weight: bold;
height: 40px;
padding: 0 25px;
color: #FFF;
font-variant: normal;
text-decoration: none;
text-align: center;
}
.capmain {
background: url("images/zaw/gora.png") no-repeat transparent;
font-size: 14px;
width: 600px;
height: 40px;
margin: 0;
padding: 0 25px;
color: #FFF;
font: bold 1.1em/30px arial,verdana,tahoma,sans-serif;
text-decoration: none;
text-shadow: 0 0 3px black;
text-align: center;
}
.panell {
background-image: url("images/zaw/gora.png");
background-position: left center;
background-repeat: repeat-x;
font-size: 10px;
height: 28px;
padding: 0;
font-weight: bold;
}
form {
margin: 0;
}
hr {
border-bottom: 1px solid #AAA;
border-top: 1px solid #DDD;
}
hr.side-hr {
-moz-border-bottom-colors: none;
-moz-border-image: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: #DDD #DDD #AAA;
border-style: solid;
border-width: 1px;
}
td {
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 12px;
font-variant: small-caps;
}
.td-cell1 {
background: none repeat scroll 0 0 #B5B1B2;
color: #000;
font-family: verdena;
font-size: 13px;
font-weight: bold;
padding: 6px 6px 3px;
}
.tbl-border {
border: 1px none;
}
.tbl {
font-size: 12px;
padding: 3px 4px;
}
.tbl1 {
/* background-color: #E6E6E6; */
color: #000;
font-size: 12px;
padding: 4px;
}
.tbl2 {
/* background-color: #E6E6E6; */
color: #000;
font-size: 12px;
padding: 4px;
}
.forum-caption {
background-color: #333;
color: #FFF;
font-size: 10px;
font-weight: bold;
padding: 2px 4px 4px;
}
.quote {
background-color: #444;
border: 1px solid #FFF;
color: #FFF;
margin: 0 20px;
padding: 2px;
}
.poll {
border: 1px solid #000;
height: 12px;
}
.comment-name {
color: #42FF00;
font-weight: bold;
}
.shoutboxname {
color: #000;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-weight: bold;
}
.shoutbox {
color: #000;
font-family: Arial,Helvetica,sans-serif,"Times New Roman",Times,serif;
}
.shoutboxdate {
color: #000;
font-size: 9px;
text-align: right;
}
.small {
font-size: 10px;
font-weight: normal;
}
.small2 {
color: #FFF;
font-size: 10px;
font-weight: normal;
}
.side-small {
color: #333;
font-size: 9px;
font-weight: normal;
}
.side-label {
background-color: #313132;
color: white;
padding: 2px;
}
pre {
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
}
.alt {
color: #000;
}
.button {
background-color: #111;
border: 1px solid #000;
color: #B5B1B2;
font-family: Tahoma,Arial,Verdana,Sans-Serif;
font-size: 10px;
font-variant: small-caps;
font-weight: bold;
margin-top: 2px;
}
.button:hover {
background-color: #999;
border: 1px solid #111;
color: #000;
margin-top: 2px;
}
.textbox {
background-color: #B5B1B2;
border: 1px solid #222;
color: #000;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-variant: small-caps;
font-weight: bold;
}
.textbox:hover {
background-color: #BBB;
border: 1px solid #777;
}
.gallery {
padding: 16px 0 8px;
}
.gallery img {
border: 1px solid #333;
}
.gallery:hover img {
border: 1px solid #000;
}
img.activegallery {
border: 1px solid green;
}
.login1 {
background-image: url("images/top/login/go.png");
border: 0 none;
color: #FFF;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-weight: bold;
height: 21px;
margin-top: 2px;
width: 75px;
}
.register1 {
background-image: url("images/top/login/rej.png");
border: 0 none;
color: #FFF;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-weight: bold;
height: 21px;
margin-top: 2px;
width: 75px;
}
.naglowek2 {
color: #FFF;
font-size: 12px;
font-variant: normal;
text-decoration: none;
}
.sublinks {
font-size: 12px;
font-variant: small-caps;
font-weight: bold;
}
.info {
padding: 4px;
}
.licznik {
color: black;
font-size: 12px;
font-style: normal;
font-variant: small-caps;
text-align: center;
text-decoration: none;
}
.tresc {
color: #000;
padding: 5px 40px 5px 35px;
font-weight: bold;
}
#tlo {
background: none repeat scroll 0 0 #3F3F3F;
height: 60px;
width: 1090px;
}
/* added Kshyhoo */
#main {
width: 1000px;
}
.side-border-left {
padding: 0px 10px 0px 0px;
width: 235px;
}
.side-border-right {
padding: 0px 0px 0px 10px;
width: 235px;
}
.white-header {
background: url("img/menu-p.png") repeat-x scroll 0 0 transparent;
font-size: 14px;
height: 30px;
margin: 0;
padding: 0 25px;
color: #FFF;
font: bold 1.1em/30px arial,verdana,tahoma,sans-serif;
text-decoration: none;
text-shadow: 0 0 3px black;
}
.white-header ul {
background: url("img/menu-p.png") repeat-x scroll 0 0 transparent;
font-size: 14px;
height: 30px;
margin: 0;
padding: 0;
}
.white-header ul li {
display: inline;
}
.white-header ul li
.first-link .bullet {
display: none;
}
.bullet {
background: url("imgage/bullet.gif") repeat-x scroll 0 0 transparent;
}
li.white a,
a.white {
background: url("img/menu-p.png") repeat-x scroll 0 0 transparent;
color: #FFF;
float: left;
font: bold 1.1em/30px arial,verdana,tahoma,sans-serif;
margin: 0;
padding: 0 25px;
text-decoration: none;
text-shadow: 0 0 3px black;
}
li.white a:hover,
a:hover.white {
background: url("img/menu-c2.png") repeat-x scroll 0 0 transparent;
color: #FFF;
text-decoration: none;
text-shadow: 0 0 3px white;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#navigation h2 {
font-size: 12px;
color: #555;
background-color: #fff;
margin: 0;
padding: 2px;
}
#navigation a {
display: block;
color: #000;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #f6f6f6;
background-color: #ccc;
}
* html #navigation ul li {
height: 1%;
}
.pagenav span {
color: #777;
background-color: #f0f0f0;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 2px;
}
.pagenav a {
color: #000;
background-color: #fff;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #ccc;
background-color: #444;
text-decoration: none;
}
.center, *[align="center"] {
margin: 0 auto;
}
.admin-message {
border: 1px solid #666;
border-left: 3px solid #999;
padding: 8px;
margin-bottom: 8px;
}
.bbcode {
border: 1px solid #ccc;
}
.tablebreak {
margin-bottom: 8px;
}
img {
border: 0;
}
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
Tu trzeba jeszcze popracować...
Co do paneli, jeszcze ich nie ruszyłem, bo css zabiera sporo czasu. Wklejam kod, bo może sam coś ruszysz.
Ten post edytował Kshyhoo 13.11.2011, 00:23:55