Początkujący
Postów: 229 Pomógł: 13 Ostrzeżeń: 4
Data rejestracji: 24.10.2006 09:08
|
Witam,
Mam nie ciekawy jak dla mnie problem, otóż
po wyłączeniu lewych czy prawych panelów znikają mi elementy graficzne krawędzi strony..
http://i40.tinypi...ap8fn6.jpg
Czy ma ktoś pomysł jak zrobić tak aby elementy zawsze były widocznie, niezależnie czy są włączone panele czy tez nie...
Plik themes:
<?php
/*------------------------------------------------------------------
Theme by CMC
(www.phpfusionstyle.com)
-------------------------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "1000");
define("THEME_BULLET", "<span class='bullet'><img src='".THEME."images/bullet.png'></span>");
//v7 sublinks
function thesublinks($sep="·",$class="") {
echo "<script type='text/javascript' src='".THEME."/fader.js'></script>";
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
$i++;
}
}
if ($i != 0) { return $res; } else { return " "; }
}
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' style='border: 0px; margin: 0px auto'>
<tr><td>
<img src='".THEME."images/header.png' alt='".$settings['sitename']."' width='1000' height='150' />";
echo "</td></tr></table>\n";
//sublinks css
echo "<table width='".THEME_WIDTH."' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<div id='altlinkler'>";
echo "<ul><li>".thesublinks("</li>\n<li>");
echo "</li></ul><div class='clear-both'> </div></div>";
echo "</td></tr></table>";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
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>"; }
echo "</tr>\n</table>\n";
//Footer
echo "<div id='footer'><table cellpadding='0' cellspacing='0' width='1000' class='footermain'>
<tr>
<td class='footer_t'> ".showcopyright()."<br> Theme By <strong><a href='http://www.phpfusionstyle.com' onclick='window.open(this.href); return false;' onkeypress='window.open(this.href); return false;'><font color='white'>phpfusionstyle.com</font></a></strong>
</td>
</tr>
</table>
</div>
</td></tr></table>
\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='capmain-center-left'></td>\n";
echo "<td class='main-body middle-border'>".$news."</td>\n";
echo "<td class='capmain-center-right'></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='capmain-bottom-left'></td>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "<td class='capmain-bottom-right'></td>\n";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='capmain-center-left'></td>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "<td class='capmain-center-right'></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='capmain-bottom-left'></td>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n";
echo "<td class='capmain-bottom-right'></td>\n";
echo "</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='capmain-center-left'></td>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "<td class='capmain-center-right'></td>\n";
echo "</tr><tr>\n";
echo "<td class='capmain-bottom-left'></td>\n";
echo "<td class='news-footer'></td>\n";
echo "<td class='capmain-bottom-right'></td>\n";
echo "</tr><tr>\n";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='scapmain-center-left'></td>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n";
echo "<td class='scapmain-center-right'></td>\n";
echo "</tr><tr>\n";
echo "<td class='scapmain-bottom-left'></td>\n";
echo "<td class='side-footer'></td>\n";
echo "<td class='scapmain-bottom-right'></td>\n";
echo "</table>\n";
}
?>
styles.css:
a, a.white, li.white a {
color : #ffffff;
text-decoration : none;
}
a:hover.white, li.white a:hover {
color : #ffffff;
text-decoration : none;
}
a.side {
color : #ffffff;
text-decoration : none;
}
a:hover.side {
color : #0097ff;
text-decoration : none;
}
body {
font-family : Helvetica, sans-serif;
font-size : 11px; color:#000000;
background-color : #000000;
background-position: top center;
background-repeat: no-repeat;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #ffffff;
}
hr.side-hr {
height : 1px;
border : 1px solid #083045;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #ffffff;
}
img {
border: 0px;
}
#main {width: 900px;}
.main {width: 900px;}
.footermain {
background-image: url(images/backgroundfooter.png);
background-repeat: repeat-x;
height: 130px;
text-align: center;
}
.footer_t {
font-family : Helvetica, sans-serif;
font-size : 10px;
padding: 0px 0px 46px 15px;
width: 50%;
text-align: center;
color: #398fc2;
}
#footer a {
color: #a6deff;
font-weight: bold;
text-decoration: none;
}
li.first-link .bullet{
display: none;
}
.button {
font-family : Verdana;
font-size : 10px;
color : #FFFFFF;
background-image: url(images/button.png);
height : 20px;
border : 1px solid #123656;
margin-top : 2px;
letter-spacing:1;
padding-top:2px;
padding-bottom:2px
}
.bbcode {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #fff;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family : Helvetica, sans-serif;
font-size : 11px;
color : #000;
background-image: url(images/text.png);
border : 0px solid #ccc;
}
.main-body {
font-size : 11px;
color : #a6deff;
background-image: url(images/newsbg.gif);
padding : 1px 0px 5px 0px;
}
.setuser_body{
background: #00528e;
color : #fff;
}
.main-bg {
color : #fff;
background-image: url(images/bg.png);
border : 0px solid #000;
padding : 10px 5px 10px 5px;
}
.border {
border : 0px solid #fff;
}
.admin-message {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
text-align: center;
color: #fff;
background-color: #0d334d;
border: 1px solid #193e54;
padding: 3px 4px 5px 4px;
margin-bottom: 5px;
}
.side-body {
width: 150px;
font-family : Verdana, Arial, Helvetica, sans-serif;
text-align: left;
font-size : 10px;
color : #a6deff;
padding : 4px 4px 4px 7px;
}
.side-border-left {
width: 160px;
color : #000;
background-image: url(images/bg-left.png);
padding : 1px 5px 1px 18px;
}
.side-border-right {
width: 192px;
color : #000;
background-image: url(images/bg-right.png);
padding : 0px 0px 0x 0px;
}
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
.news-footer {
font-family : Arial, sans-serif;
font-size: 11px;
color: #3d92c5;
background-image: url(images/bottom-cap.png);
padding: 0px 0px 15px 4px;
}
.capmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #ffffff;
background-image: url(images/cap.png);
background-repeat: repeat-x;
padding: 25px 2px 6px 4px;
text-align: center;
}
.capmain-left {
width: 46px;
height: 46px;
background-image: url(images/cap-left.png);
}
.capmain-right {
width: 46px;
height: 46px;
background-image: url(images/cap-right.png);
}
.capmain-bottom-left {
width: 46px;
height: 46px;
background-image: url(images/cap-bottom-left.png);
}
.capmain-bottom-right {
width: 46px;
height: 46px;
background-image: url(images/cap-bottom-right.png);
}
.capmain-center-right {
width: 46px;
background-image: url(images/cap-center-right.png);
background-repeat: repeat-y;
}
.capmain-center-left {
width: 46px;
background-image: url(images/cap-center-left.png);
background-repeat: repeat-y;
}
.scapmain {
font-family : Tahoma;
font-size : 12px;
text-align : left;
font-weight : bold;
color : #fff;
padding-left : 100px;
height: 36px;
background-image: url(images/meniu.gif);
background-repeat: no-repeat;
padding : 0px 1px 10px 35px;
}
.center {
margin: 0 auto;
}
.spacer {
margin-bottom: 5px;
}
.tbl {
font-size : 11px;
color : #a6deff;
background-image: url(images/tbl.png);
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #a6deff;
background-color: #2b76a1;
border-left : 1px solid #06253a;
border-right : 1px solid #89b5d3;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #a6deff;
background-color: #206487;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #fff;
background-image: url(images/forum.png);
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #fff;
background-image:url(images/newsbg.gif);
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #000;
}
.poll {
height : 12px;
border : 1px solid #000000;
}
.comment-name {
font-weight : bold;
color : #3dc1ff;
}
.shoutboxname {
font-weight : bold;
color : #3dc1ff;
}
.shoutbox {
color : #fff;
}
.shoutboxdate {
font-size : 10px;
color : #FEF4C0;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #000000;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #fff;
background : transparent;
}
.side-label {
color : #fff;
background : transparent;
padding : 2px 2px 3px 2px;
}
.tablebreak { margin-bottom: 8px; }
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#navigation h2 {
font-size: 12px;
color: #fff;
margin: 0;
padding: 2px;
}
#navigation a {
display: block;
color: #fff;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #7acbff;
border-top: 1px solid #3a8cc4;
border-bottom: 1px solid #3a8cc4;
background: #transparent;
text-decoration : none;
}
* html #navigation ul li{
height: 1%;
}
.center, *[align="center"] {margin: 0 auto;}
/* Page Navigation */
.pagenav {
padding: 4px;
}
.pagenav span {
color: #fff;
background-color: #288eab;
border: 1px solid #000;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #fff;
background-color: #288eab;
border: 1px solid #000;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #000;
background-color: #69b8e5;
margin: 2px;
text-decoration: none;
}
.white-header ul{
margin: 0;
padding: 0;
}
.white-header ul li{ display: inline; }
.white-header ul li.first-link .bullet{ display: none; }
/*alt linkler i?in*/
#altlinkler{
margin: 0px auto;
text-align: center;
font-size: 10px;
font-weight: bold;
height:29px;
float:left;
background-image:url(images/nav-bg.png);
background-repeat:repeat-x;
background-position:top left;
width:100%;
}
#altlinkler ul,
#altlinkler li{
padding:0px;
margin:0px;
list-style-type:none;
}
#altlinkler ul{
height:29px;
line-height:29px;
background-image:url(images/nav-la.png);
background-position:center;
background-repeat:no-repeat;
float:center;
padding:0px 0px 0px 20px;
margin:0px 0px 0px 10px;
}
#altlinkler li{
height:29px;
line-height:29px;
display:inline;
position:relative;
float:left;
width:100px;
text-align:center;
}
#altlinkler li a{
height:29px;
width:100px;
text-align:center;
float:left;
background-image:url(images/nav-la.png);
background-position:right;
background-repeat:no-repeat;
}
#altlinkler li a:link,
#altlinkler li a:visited{
color:#fff;
text-decoration:none;
}
#altlinkler li.active a,
#altlinkler li a:hover{
background-image:url(images/nav-up.png);
background-repeat:no-repeat;
background-position:left;
}
PW od moderatora:
- Zmiana nazwy tematu - Pieka 18.05 - 12:11
Edytowane przez Rafee dnia 21.05.2010 11:10:07
|