styles.css
a { color:#003399; text-decoration:none; }
a:hover { color:#666; text-decoration:underline; }
a.footer2 { color:#eee; text-decoration:none; }
a.footer2:hover { color:#eee; text-decoration:underline; }
a.side { color:#1b4607; text-decoration:none; }
a:hover.side { color:#666; text-decoration:underline; }
a.white{ color:#276b08; text-decoration:none; padding: 0px 2px 0px 2px }
a:hover.white { color:#1b4607; background-color: #fff; text-decoration:none; border: 1px #1b4607 solid; padding: 1px; }
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
margin:20px;
}
form { margin:0px 0px 0px 0px; }
hr { height:1px; color:#ddd; }
hr.side-hr { height:1px; color:#ccc; }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#000; }
.white-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
font-weight:bold;
color:#000;background-color:#f4f4f4;
border-top:1px #000 solid;
border-bottom:1px #000 solid;
padding:4px;
}
.footer {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#eee;
}
.footer2 {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#eee;
}
.full-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
padding:3px;
color:#666;background-color:#f4f4f4;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#276b08;background-color:#fff;
height:19px;
padding:0px 2px 0px 2px;
border:1px #1b4607 solid;
margin-top:2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;background-color:#eee;
border:1px #999 solid;
}
.main-body {
font-size:11px;
color:#000;background-color:#f4f4f4;
padding:3px 4px 3px 4px;
}
.side-body {
font-size:10px;
color:#000;
padding:0px 4px 2px 4px;
}
.main-bg { background-color:#f4f4f4; padding:10px; }
.border { border:0px #ccc solid; }
.side-border-left {background-color:#f4f4f4; padding:5px; }
.side-border-right {background-color:#f4f4f4; padding:5px; }
.news-footer {
font-size:9px;
color:#000;background-color:#eee;
border-top:1px #ccc solid;
padding:2px 4px 4px 4px;
}
.barmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
padding:4px 4px 4px 4px;
}
.capmain {
font-family: Trebuchet MS, Arial, Lucida Sans, Tahoma, Sans-Serif;
font-size:14px;
font-weight: bold;
color:#276b08;
border-bottom:1px #ccc solid;
padding:4px;
}
.scapmain {
font-family: Trebuchet MS, Arial, Lucida Sans, Tahoma, Sans-Serif;
font-size:14px;
font-weight:bold;
color:#276b08;
padding:2px 4px 4px 4px;
}
.tbl-border { background-color:#1b4607; }
.tbl { font-size:11px; padding:4px; }
.tbl1 { font-size:11px; color:#000; background-color:#fff; padding:4px; }
.tbl2 { font-size:11px; color:#000; background-color:#eee; padding:4px; }
.forum-caption {
font-size:10px;font-weight:bold;
color:#276b08;background-color:#ddd;
height:20px;
padding:0px 4px 2px 4px;
}
.quote {
color:#000;background-color:#eee;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #ccc solid;
}
.poll { height:12px; border:1px #000 solid; }
.comment-name { font-weight:bold; color:#666; }
.shoutboxname { font-weight:bold; color:#666; }
.shoutbox { color:#666; }
.shoutboxdate { font-size:9px; color:#000; }
.small { font-size:10px; font-weight:normal; }
.small2 { font-size:10px; font-weight:normal; color:#666; }
.side-small { font-size:10px; font-weight:normal; color:#000; }
.side-label { font-family: Trebuchet MS, Arial, Lucida Sans, Tahoma, Sans-Serif; font-size:12px; font-weight:bold; color:#276b08; padding:2px; }
img {border:0px;}
.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #ccc; filter: gray; }
.gallery:hover img { border: 1px solid red; filter: none; }
img.activegallery { border: 1px solid green; filter: none; }
Kliknij i zaczekaj na załadowanie kodu ...
theme.php
<?php
// theme settings
$body_text = "#000000";
$body_bg = "#0e174f";
$theme_width = "85%";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td><img src='".THEME."images/ol.gif' alt='oben links'></td>
<td style='background-image: url(".THEME."images/o.gif); width: 100%;'></td>
<td><img src='".THEME."images/or.gif' alt='oben rechts'></td>
</tr>
<tr>
<td style='background-image:url(".THEME."images/l.gif); width:10px;'><img src='".THEME."images/l.gif' alt='left border'></td>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='white-header'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " ·\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right' class='white-header'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "
<td style='background-image:url(".THEME."images/r.gif); width:10px;'><img src='".THEME."images/r.gif' alt='right border'></td>
</tr>
<tr>
<td><img src='".THEME."images/ul.gif' alt='unten links'></td>
<td style='background-image: url(".THEME."images/u.gif); width: 100%;'></td>
<td><img src='".THEME."images/ur.gif' alt='unten rechts'></td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer2'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' style='vertical-align:top;' alt='powered by php-fusion'></a> v".$settings['version']." © 2003-2005\n
| \n
Design by <a target='_blank' href='http://www.matonor.de'><img src='".THEME."images/matonor.gif' style='vertical-align:top;' alt='Design by Matonor'></a> <br><br>\n";
}
echo "</td>
</tr>
</table>
\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'><img src='".THEME."images/bullet.gif' alt='>'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." ·
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "");
if ($info['news_allow_comments'] == "1") echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<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 class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])." ·
<a href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif' alt='b_$title'>
</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
I jeszcze jedno pytanie. Która linijka odpowiada za kolor tła strony (nie paneli)?
Edytowane przez Pieka dnia 01.11.2008 21:13:53
|