Parašė Roksys· 2009 Lap. 3 17:11:55
#1
Truputi meginu editint theme ir šektiek problemų turiu. Problema yra tame kad subheader yra is keliu img ir gavosi shh kažkoks. Galite pažiūrėti
www.liaudiesmedicina.eu
Theme.php
<?php
/*-------------------------------------------------------+
| Theme: Leland
| Author: Jure Sakelšek (include)
+--------------------------------------------------------+
| http://phpfusion-si.com/
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function get_head_tags() {
}
function render_page($license=false) {
global $settings, $main_style, $userdata;
/* -------------------------------------------- */
$logo = "logo.jpg"; //Slika logotipa (250 x 80)
$reklama = "<a href='http://www.augrita.lt' target='_blank'> <img src= 'http://www.skanaus.eu/images/baneris.gif ' width='750' height='100' border='0' title='Augrita' </a>";
/* -------------------------------------------- */
//Header
echo "<table align='center' cellspacing='0' cellpadding='0' width='100%' class=' center'>\n<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='fulll-header'><center><img src='".THEME."images/{$logo}' /></td>
<td class='fulll-header'>$reklama</td>
</td>
</tr>
</table>\n";
//Header - menu
echo "<table cellpadding='0' cellspacing='0' class='menu_center'>\n";
echo "<tr>\n";
echo "<td class='prazno_levo'></td>\n";
echo "<td class='prazno'>\n";
echo "<div id='navigacija'>\n";
echo "<ul>\n";
echo "<li><span>".showsublinks("","white")."</span></li>\n";
echo "</ul>\n";
echo "</div>\n";
echo "</td>\n";
echo "<td class='prazno_desno'></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "<td class='menu'><div class='menu_desno'></div></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='3' class='glava_spodaj'></td>\n";
echo "</tr>\n";
echo "</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' align='center' width='1100' height='100%' class='vsebina'>\n";
echo "<tr>\n";
echo "<td class='paleta_zl'></td>\n";
if (LEFT) { echo "<td rowspan='2' class='side-border-left' valign='top'>".LEFT."</td>\n"; }
echo "<td class='paleta_z'></td>\n";
echo "<td rowspan='2'>";
echo "<table width='100%' height='100%' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td class='sredina_l'></td>\n";
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>\n";
echo "<td class='sredina_d'></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
if (LEFT OR RIGHT) { echo "<td class='paleta_z'></td>\n"; }
if (RIGHT) { echo "<td rowspan='2' class='side-border-right' valign='top'>".RIGHT."</td>\n"; }
echo "<td class='paleta_zd'></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='paleta_sl'></td>\n";
echo "<td class='paleta_s'></td>\n";
if (LEFT OR RIGHT) { echo "<td class='paleta_s'></td>\n"; }
echo "<td class='paleta_sd'></td>\n";
echo "</tr>\n";
echo "</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' class='noga'>\n";
echo "<tr>\n";
echo "<td class='noga_ozadje'></td>\n";
echo "<td class='noga_sredina' valign='top'><div class='noga_vsebina'>© Si-fusion. Vse pravice pridržane. Powered by <a href='http://www.php-fusion.co.uk/'>PHP-fusion</a>.\n";
echo "Designed by <a href='http://www.phpfusion-si.com/'>Si-Fusion</a>.</div></td>\n";
echo "<td class='noga_ozadje'></td>\n";
echo "</tr>\n";
echo "</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-top: 10px;'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."\n";
echo "<div class='news-footer'>".newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id'])."</div>\n";
echo "</td>\n";
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-top: 10px;'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</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%' class='border'>\n<tr>\n";
echo "<td><div class='scapmain'>".$title."</div></td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")."><div class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div></div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
Style.css
/*-------------------------------------------------------+
| Theme: Leland
| Author: Jure Sakelšek (include)
+--------------------------------------------------------+
| http://phpfusion-si.com/
+--------------------------------------------------------*/
a {
color : #888887;
text-decoration : none;
}
a:hover {
color : #D2D2D1;
text-decoration : none;
}
a.side {
color : #585853;
text-decoration : none;
}
a:hover.side {
color : #5B9713;
text-decoration : none;
}
a.white, li.white a {
color: #ddd;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #ddd;
text-decoration: underline;
}
body {
color : #555;
background : #FFFFFF;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #eee;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #005599;
}
.outer-border {
border : 1px solid #000;
}
.sub-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #888;
border-top : 1px solid #000;
border-bottom : 1px solid #000;
padding : 5px;
}
.sub-header ul{
margin: 0;
padding: 0;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li.first-link .bullet{
display: none;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #ddd;
background-color : #444;
padding : 10px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f1f1f1;
border : 1px solid #ccc;
padding : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #fff;
border : 1px solid #7F9DB9;
}
.bbcode {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f1f1f1;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #fff;
border : 1px solid #7F9DB9;
padding-top: 1px;
}
.main-body {
font-size : 11px;
color : #555;
background: #fff;
padding : 5px;
border-left: 1px solid #DEDBD1;
border-right: 1px solid #DEDBD1;
border-bottom: 1px solid #DEDBD1;
}
.center {
margin : 0 auto;
}
.side-body {
background-image: url(images/paleta_vsebina.png);
background-repeat: repeat-x;
margin: 0px 1px 0px 1px;
font-size : 10px;
color : #777;
padding : 4px;
}
.main-bg {
background: #E7F2F5;
padding : 0px 8px 10px 8px;
}
.border {
border : 0px solid #e1e1e1;
margin-bottom : 5px;
}
.admin-message {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
text-align : center;
color : #555;
background-color : #f6f6f6;
border : 1px solid #e1e1e1;
padding : 3px 4px 5px 4px;
margin-bottom : 5px;
}
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
.side-border-left {
color : #777;
width: 209px;
border-left: 1px solid #DEDBD1;
border-right: 1px solid #DEDBD1;
padding : 0px 0px 0px 0px;
}
.side-border-right {
color : #777;
width: 209px;
border-left: 1px solid #DEDBD1;
border-right: 1px solid #DEDBD1;
padding : 0px 0px 0px 0px;
}
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
.news-footer {
text-align: center;
font-size : 10px;
color : #000;
margin-top: 4px;
padding-top: 4px;
padding-bottom: 4px;
}
.capmain {
font-family : Verdana;
font-size : 12px;
font-weight: bold;
color : #EE145B;
background-image: url(images/spaleta_zgoraj.png);
background-repeat: repeat-x;
padding : 5px 0px 5px 10px;
border-left: 1px solid #DEDBD1;
border-right: 1px solid #DEDBD1;
border-top: 1px solid #DEDBD1;
}
.scapmain {
margin: 1px 1px 0px 1px;
background-image: url(images/paleta_glava.png);
border-bottom : 1px solid #DDECF0;
height: 25px;
padding-left: 10px;
padding-top: 14px;
font-family: "Arial";
font-weight: bold;
color: #403B32;
font-size: 12px;
}
.tbl-border {
border : 0px solid #e1e1e1;
}
.tbl {
font-size : 11px;
color : #555;
background-color : #fff;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #555;
background-color : #fff;
border: 1px solid #DDECF0;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #555;
background-color : #F5F5F5;
border: 1px solid #DDECF0;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #fff;
background-color : #ACD473;
padding : 4px 4px 4px 8px;
}
.quote {
font-size : 11px;
color : #555;
background-color : #fff;
font-style: italic;
padding : 4px;
margin : 5px 5px 5px 5px;
border : 1px solid #739C3F;
}
.poll {
height : 12px;
border : 1px solid #bbb;
}
.comment-name {
font-weight : bold;
color : #005599;
}
.shoutboxname {
font-weight : bold;
color : #005599;
background-color : #f6f6f6;
}
.shoutbox {
color : #777;
background-color : #f6f6f6;
}
.shoutboxdate {
font-size : 10px;
color : #888;
background-color : #f6f6f6;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #555;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #555;
background-color : #f6f6f6;
}
.side-label {
color : #555;
background-color : #f1f1f1;
padding : 2px 2px 3px 2px;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 10px;
color : #555;
background-color: #f1f1f1;
margin: 0;
padding: 4px;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #005599;
background-color: #f6f6f6;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #f6f6f6;
background-color: #005599;
}
/* Page Navigation */
.pagenav {
padding: 0.4em;
}
.pagenav span {
color: #fff;
background-color: #005599;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
}
.pagenav a {
color: #005599;
background-color: #fff;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #005599;
margin: 0.2em;
text-decoration: none;
}
/* Extras */
body {
margin: 0px;
}
.glava {
width: 100%;
}
.glava_zgoraj {
height: 115px;
}
.zgoraj {
height: 100%;
width: 100%;
}
.ozadje_zl {
background-image: url(images/ozadje_zl.png);
width: 344px;
height: 115px;
}
.ozadje_zs {
background-image: url(images/ozadje_zs.png);
width: 502px;
}
.ozadje_zd {
background-image: url(images/ozadje_zd.png);
width: 204px;
}
.oznake {
margin-left: 69px;
margin-top: 35px;
width: 93px;
height: 80px;
}
.prikazi {
margin-left: 400px;
width: 56px;
}
.fprijava {
background-image: url(images/fprijava.png);
background-repeat: no-repeat;
width: 152px;
height: 28px;
font-size: 18px;
padding-top: 7px;
padding-left: 6px;
border: 0px;
color: #BBDD42;
}
.gprijava {
background-image: url(images/gprijava.png);
width: 108px;
height: 70px;
border: 0px;
}
.prijavljen {
font-size: 18px;
padding-top: 20px;
padding-left: 45px;
color: #BBDD42;
}
.prijava_vsebina {
font-family: Arial;
font-size: 14px;
color: #413B31;
padding-bottom: 4px;
padding-left: 8px;
}
.menu {
background-image: url(images/menu_center.png);
background-repeat:repeat-x;
height: 40px;
width: 50%;
}
.menu_levo {
background-image: url(images/menu_levo.png);
background-repeat: no-repeat;
height: 40px;
width: 20px;
float: right;
}
.menu_desno {
background-image: url(images/menu_desno.png);
background-repeat: no-repeat;
height: 40px;
width: 20px;
float: left;
}
.menu_center {
height: 40px;
width: 1050px;
}
.prazno_levo {background-image: url(images/prazno_levo.png); width: 120px;}
.prazno_desno {background-image: url(images/prazno_desno.png); width: 127px;}
.prazno {background-image: url(images/prazno.png);}
#navigacija {
width:803px;
font-size: 12px;
line-height:normal;
}
* html #navigacija{margin-bottom: 1em;} /* IE only*/
#navigacija ul{
list-style-type: none;
margin:0;
margin-left: 10x;
padding:0;
}
#navigacija li{
display:inline;
margin:0;
padding:0;
}
#navigacija a {
float:left;
background:url(images/nav_levo.png) no-repeat left top;
margin:0px;
padding:0 0 0 10px;
text-decoration:none;
}
#navigacija a span {
font-family: Arial;
float:left;
display:block;
background:url(images/nav_desno.png) no-repeat right top;
padding:14px 22px 11px 14px;
color:#fff;
font-weight: bold;
}
#navigacija a span {float:none;} /* IE5 - Mac hack */
#navigacija a:hover span {
color:#fff;
}
#navigacija a:hover {
background-position:0% -40px;
}
#navigacija a:hover span {
background-position:100% -40px;
}
.glava_spodaj {
background-image: url(images/glava_spodaj.png);
background-repeat: repeat-x;
height: 38px;
}
.noga {
margin-bottom: 0px;
width: 100%;
}
.noga_ozadje {
background-image: url(images/noga.png);
background-repeat:repeat-x;
height: 74px;
width: 25%;
}
.noga_sredina {
background-image: url(images/noga_sredina.png);
width: 844px;
}
.noga_vsebina {
font-family: Arial;
font-size: 12px;
text-align: center;
color: #888887;
padding-top: 10px;
margin-top: 4px;
height: 24px;
}
.paleta_zl {background-image: url(images/paleta_zl.png); background-repeat: no-repeat; background-position: top right; width: 25px; height: 25px;}
.paleta_sl {background-image: url(images/paleta_sl.png); background-repeat: no-repeat; background-position: bottom right; width: 25px; height: 25px;}
.paleta_zd {background-image: url(images/paleta_zd.png); background-repeat: no-repeat; background-position: top left; width: 25px; height: 25px;}
.paleta_sd {background-image: url(images/paleta_sd.png); background-repeat: no-repeat; background-position: bottom left; width: 25px; height: 25px;}
.paleta_z {background-image: url(images/paleta_z.png); background-repeat: no-repeat; background-position: top; width: 11px; height: 25px;}
.paleta_s {background-image: url(images/paleta_s.png); background-repeat: no-repeat; background-position: bottom; width: 11px; height: 25px;}
.sredina_l {
background-image: url(images/sredina_l.png);
background-repeat: repeat-y;
width: 4px;
}
.sredina_d {
background-image: url(images/sredina_d.png);
background-repeat: repeat-y;
width: 4px;
}
.novice_levo {
background-image: url(images/novice_levo.png);
width: 12px;
height: 39px;
}
.novice_desno {
background-image: url(images/novice_desno.png);
width: 12px;
height: 39px;
}
.novice_sredina {
text-align: center;
background-image: url(images/novice_sredina.png);
background-repeat: repeat-x;
height: 39px;
}