Witam,
Ostatnio postanowiłem zbudować stronkę o sporcie w Krakowie. Wybrałem na nią skórkę "Revision" ale ma ona pare wad których nie umiem naprawić :(
Te wady to niepotrzebne odstępy które zaznaczyłem tutaj:
http://img80.imag...sdfqo5.jpg
Z góry dziękuję za pomoc w usunięciu tych odstępów !
PS: Moja strona to www.Sport-Krakow.pl
Mój theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Revision Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: UworldIRC - Riadi © 2006 |
| web: http://www.uworldirc.com/ |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
define('IN_REVISION', true);
require_once(INCLUDES.'theme_functions_include.php');
require_once(THEME.'includes/navigationbar.class.php');
require_once(THEME.'theme_config.php');
function render_header() {
global $theme_width, $rtNavbar, $rtHeader, $settings;
if ((isset($rtHeader['logo_url'])) && (!empty($rtHeader['logo_url'])))
$url = $rtHeader['logo_url'];
else
$url = false;
if ((isset($rtHeader['logo_url_title'])) && (!empty($rtHeader['logo_url_title'])))
$title = $rtHeader['logo_url_title'];
else
$title = false;
echo "<script language='javascript' src='".THEME."includes/revision.js' type='text/javascript'></script>\n"
."<table align='center' border='0' cellpadding='0' cellspacing='0' width='920'>\n"
."<tr><td class='pageLeft'></td><td width='100%' class='pageCenter' valign='top'>\n"
."<div id='clock'><noscript><div id='noscript'>Javascript should be enabled in order to view everything in certain sections of <strong>".$settings['sitename']."</strong>.</div></noscript><script language='javascript' src='".THEME."includes/clock.js' type='text/javascript'></script></div>\n"
."<table border='0' cellpadding='0' cellspacing='0' id='header' width='100%'><tr>\n"
."<td class='logo' height='100' valign='top' width='100%'>"
.($url ? "<a href='$url' onmousedown='return false;'".($title ? " title='".$title."'" : "").">" : "")
."<img".($title ? " alt='".$title."'" : " alt=''")." border='0' src='".THEME."images/logo.png'".($title ? " title='".$title."'" : "").">"
.($url ? "</a>" : "")
.((isset($rtHeader['slogan']) && !empty($rtHeader['slogan'])) ? "<br><span class='slogan'>".$rtHeader['slogan']."</span>" : "")."</td>\n";
if ((iMEMBER) && (isset($rtHeader['rightside_member'])) && (!empty($rtHeader['rightside_member']))) {
echo "<td class='rightside' nowrap='nowrap' valign='bottom'>".$rtHeader['rightside_member']."</td>\n";
} elseif ((!iMEMBER) && (isset($rtHeader['rightside_guest'])) && (!empty($rtHeader['rightside_guest']))) {
echo "<td class='rightside' nowrap='nowrap' valign='bottom'>".$rtHeader['rightside_guest']."</td>\n";
}
echo "</tr></table>\n";
$rtNavbar->generate();
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>\n";
}
function render_footer() {
global $settings;
echo "</tr></table>\n";
// copyrighted line must stay intact and visible.
echo "<table cellpadding='0' cellspacing='0' id='footer' width='100%'><tr><td nowrap='nowrap' valign='top'>Powered by: <a href='http://www.php-fusion.co.uk/' target='_blank' onmousedown='return false;'>PHP Fusion</a></td><td align='center' width='100%' style='padding-left:20px;padding-right:20px;'>".$settings['footer'].showcounter()."</td><td align='right' nowrap='nowrap' valign='top'><strong>Revision</strong> Theme designed by: <a href='http://www.uworldirc.com/' target='_blank'>Riadi</a></td></tr></table>\n";
echo "</td><td class='pageRight'></td></tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo $locale['040'].newsposter($info)."\n"
."<br>\n<hr>\n<br>\n".$news."<br><br>\n<hr>\n"
.openform("N",$info['news_id']).newsopts($info," ·").closeform("N",$info['news_id'])."\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo $locale['040'].articleposter($info)."\n"
."<br>\n<hr>\n<br>\n".$article."<br><br>\n<hr>\n"
.openform("A",$info['article_id']).articleopts($info," ·").closeform("A",$info['article_id'])."\n";
closetable();
}
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='centerTitle' width='100%'><tr><td class='centerTitleOverlay' height='40' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='centerContent' width='100%'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
tablebreak();
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>\n";
}
function closeside() {
echo "</td></tr></table>\n";
sidebreak();
}
$boxcounter = 1;
function opensidex($title,$open="on") {
global $boxcounter;
$boxname = "expbox".$boxcounter;
$boxcounter++;
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr>"
."<td class='sideTitleOverlay' height='40' width='100%' valign='top'>".$title."</td>"
."<td class='sideTitleMinMax' nowrap='nowrap'><img onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>"
."</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'><div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>\n";
sidebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>\n";
}
function sidebreak() {
global $theme_panels_width;
echo "<img alt='spacer' height='10' src='".THEME."images/spacer.gif' width='".$theme_panels_width."'>\n";
}
?>
Styles.css:
body { background: #DAE2E3; color: #444444; cursor: default; font-family: verdana, arial, "ms sans serif", sans-serif; font-size: 11px; margin: 0; padding: 0; }
td { font-family: verdana, arial, "ms sans serif", sans-serif; font-size: 10px; font-weight: 400; }
pre { font-family: verdana, arial, "ms sans serif", sans-serif; font-size:10px; }
form { padding: 0; margin: 0; }
.textbox { background-color: #FFFFFF; border: 1px solid #999999; font-family: verdana, arial, "ms sans serif", sans-serif; font-size: 10px; padding: 2px; }
select.textbox { padding: 1px; }
select, input { margin: 1px; }
a { color: #356B8D; font-weight: bold; font-size: 10px; letter-spacing: 1px; text-decoration: none; }
a:hover { color: #F65202; }
hr, hr.side-hr { border:1px #DAE2E3 solid; border-bottom: 0; margin: 6px 0 4px 0; }
.small, .side-small, .smallalt { font-size: 10px; font-weight: normal; }
.tbl-border { background-color: #FFFFFF; border: 3px solid #DCE3E4; border-left-width: 1px; border-right-width: 1px; margin-top: 4px; margin-bottom: 4px; }
.tbl { padding: 3px 4px 3px 4px; }
.tbl1 { background-color: #FCFEFE; padding: 4px; border: 1px solid #E0E7E8; }
.tbl2 { background-color: #F5F8F8; border: 1px solid #E0E7E8; padding: 4px; }
.forum-caption { font-size: 11px; font-weight: bold; background-color: #ECF0F2; padding: 4px 3px 4px 3px; border: 2px solid #DCE3E4; border-left-width: 1px; border-right-width: 1px; }
.pageLeft { background: transparent url('images/pageLeft.gif') top left repeat-y; padding-left: 27px; }
.pageRight { background: transparent url('images/pageRight.gif') top right repeat-y; padding-right: 27px; }
img { border: 0; }
#clock { background-color: #6CAFD6; color: #FFFFFF; font-size: 9px; font-weight: bold; letter-spacing: 1px; padding: 2px 10px 3px 10px; text-align: right; }
#noscript { float: none; text-align: center; }
#header { background: url('images/header.gif') top left repeat-x; font-size: 10px; letter-spacing: 1px; }
#header .rightside { padding: 0 16px 10px 0; }
#header .slogan { padding-left: 40px; }
#footer { background-color: #6CAFD6; border-top: 3px solid #DBE4E6; border-bottom: 3px solid #DBE4E6; color: #FFFFFF; font-size: 10px; letter-spacing: 1px; padding: 5px; }
#footer a:hover { color: #356B8D; text-decoration: underline; }
.side-border-left { background: #FFFFFF url('images/sideborderleft.gif') top right repeat-y; border-left: 1px solid #C2D0D8; padding-right: 6px; }
.main-bg { background-color: #FFFFFF; border-left: 1px solid #C2D0D8; border-right: 1px solid #C2D0D8; }
.side-border-right { background: #FFFFFF url('images/sideborderright.gif') top left repeat-y; border-right: 1px solid #C2D0D8; padding-left: 6px; }
.centerTitle { background: #FFFFFF url('images/centertitle.gif') top left repeat-x; }
.centerTitleOverlay { background: url('images/centertitleoverlay.gif') top left no-repeat; color: #FFFFFF; font-size: 11px; font-variant: small-caps; font-weight: bold; letter-spacing: 1px; line-height: 25px; padding-left: 6px; }
.centerContent { background: #FFFFFF; font-size: 10px; padding: 6px; }
.sideTitle { background: #FFFFFF url('images/sidetitle.gif') top left repeat-x; }
.sideTitleOverlay { background: url('images/sidetitleoverlay.gif') top left no-repeat; color: #FFFFFF; font-size: 11px; font-variant: small-caps; font-weight: bold; letter-spacing: 1px; line-height: 25px; padding-left: 6px; }
.sideTitleMinMax { background: url('images/centertitleoverlay.gif') top left no-repeat; line-height: 25px; padding: 5px 3px 0 3px; vertical-align: top; }
.sideTitleMinMax img { cursor: pointer; }
.sideContent { background: #FFFFFF; font-size: 10px; padding: 6px; }
.button { background: url('images/buttonbg.gif') top left repeat-x; border: 0; border-left: 1px solid #D74904; border-right: 1px solid #D74904; color: #FFFFFF; cursor: pointer; font-size: 9px; height: 18px; letter-spacing: 1px; }
html>body input.button { padding-bottom: 3px; /* Mozilla fix */ }
.side { font-size: 10px; }
.quote { background: #FFFFFF; border: 1px #CCCCCC solid; color: #4B8500; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 11px; padding-left: 5px; margin:0 20px 0 20px; }
.shoutboxname { font-weight: bold; color: #3E61A9; }
.shoutbox { color: #555555; }
.shoutboxdate { color: #333333; }
#navBar, #navBarOverlay { height: 32px; width: 100%; }
#navBar { background: #EAEFEF url('images/navbar.gif') top left repeat-x; }
#navBarOverlay { background: url('images/navbaroverlay.gif') top left no-repeat; }
#clearmenu { clear: both; }
#menu, #menu ul { list-style: none; margin: 0; padding: 0; }
#menu ul.submenu { padding-top: 2px; padding-bottom: 4px; }
#menu li { float: left; position: relative; }
.menu { cursor: default; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 11px; height: 22px; letter-spacing: 1px; margin: 6px 2px 0 2px; position: absolute; }
.menu p { font-weight: bold; margin: 0; padding: 0; padding: 3px 12px 1px 12px; }
.link { cursor: default; height: 20px; letter-spacing: 1px; margin: 6px 2px 0 2px; line-height: 20px; position: absolute; }
.link a { color: #444444; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; padding: 3px 12px 3px 12px; }
.link a:hover { color: #FFFFFF; }
.submenu { background-color: #FFFFFF; border: 2px solid #356B8D; border-top-width: 3px; cursor: default; display: none; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 10px; left: auto; position: absolute; width: 138px; }
.submenu li { width: 100%; }
.submenu li a { background: url('images/submenu.gif') top left repeat-x; display: block; font-size: 11px; height: 19px; line-height: 19px; letter-spacing: normal; margin-top: 2px; text-decoration: none; text-indent: 7px; width: 100%; }
.submenu li a.divider { height: 22px; }
.submenu li a:hover { background: url('images/submenuhot.gif') top left repeat-x; color: #FFFFFF; display: block; text-decoration: none; }
#menu li>ul { left: auto; top: auto; }
#menu li:hover ul, li.over ul { display: block; }
html>body .submenu li a { width: auto; }
html>body #clearmenu { height: 3px; }
Edytowane przez Pruzio dnia 30.12.2006 14:55:47
|