Witam, mam taki problem gdyż nie wiem gdzie ustawić wysokość napisu który jest nazwą danego panelu. Żeby było mnie łatwiej zrozumieć dam SS-a.
Z góry dziękuję za pomoc :)
Plik theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
// theme settings
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
$body_text = "#000000";
$body_bg = "#182128";
function render_page($license=false) {
global $theme_width,$settings,$locale;
echo "<table align='center' width='".$theme_width."' cellspacing='0' cellpadding='0' id='main'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>".showbanners()."</td>
</tr>
</table>
</td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='bar-left'><img src='".THEME."images/blank.gif' width='12' height='28' alt='' style='display:block' /></td>
<td class='bar-main'>".showsublinks(" <span class='bullet'>·</span> ","white")."</td>
<td align='right' class='bar-main'>".showsubdate()."</td>
<td class='bar-right'><img src='".THEME."images/blank.gif' width='12' height='28' alt='' style='display:block' /></td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'>
<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>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>
".stripslashes($settings['footer'])."
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='full-header'><br />";
echo "Paradox theme originally by <a href='http://www.php-fusion.co.uk' target='_blank'>Digitanium</a>. Converted to PHP-Fusion v7 by <a href='http://php-fusion.boldt.me' target='_blank'>Kenneth</a>.<br /><br />";
if ($license == false) {
echo showcopyright()."<br /><br />";
}
echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='16' height='10' alt='' style='display:block' /></td>
<td class='b-top-main'>$subject</td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='16' height='10' alt='' style='display:block' /></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
<td class='main-body'>
$news
<div style='margin-top:5px;'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'>".
newsposter($info, THEME_BULLET).newsopts($info, THEME_BULLET).itemoptions("N",$info['news_id'])."
</td>
</tr>
</table>
</div>
</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='22' height='25' alt='' style='display:block' /></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='25' alt='' style='display:block' /></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='22' height='25' alt='' style='display:block' /></td>
</tr>
</table>
<br />\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='2' height='27' alt='' style='display:block' /></td>
<td class='b-top-main'>$subject</td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block' /></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<div style='margin-top:5px;'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'>".
articleposter($info, THEME_BULLET).articleopts($info, THEME_BULLET).itemoptions("A",$info['article_id'])."
</td>
</tr>
</table>
</div>
</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='22' height='25' alt='' style='display:block' /></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='25' alt='' style='display:block' /></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='22' height='25' alt='' style='display:block' /></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='2' height='27' alt='' style='display:block' /></td>
<td class='b-top-main'>$title</td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block' /></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='tablebreak'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
<td class='main-body'>\n";
}
function closetable() {
echo "
</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='7' height='10' alt='' style='display:block' /></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block' /></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='9' height='10' alt='' style='display:block' /></td>
</tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='7' height='27' alt='' style='display:block' /></td>
<td class='b-top-main'>$title</td>
".($collapse ? "<td class='b-top-main' align='right'>".panelbutton($state, $boxname)."</td>" : "")."
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block' /></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='tablebreak'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
<td class='side-body'>";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "
</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block' /></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='22' height='25' alt='' style='display:block' /></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='25' alt='' style='display:block' /></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='22' height='25' alt='' style='display:block' /></td>
</tr>
</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Plik styles.css:
a { color:#FFFFFF; text-decoration:none; }
a:hover { color:#002266; text-decoration:underline; }
a.side { color:#FFFFFF; text-decoration:none; }
a:hover.side { color:#002266; text-decoration:underline; }
a.white { color:#eee; text-decoration:none; }
a:hover.white { color:#eee; text-decoration:underline; }
body {
color: #000000;
background-color: #c2c9c9;
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
margin:10px;
}
form { margin:0px 0px 0px 0px; }
hr { height:2px; border-bottom:#e2e9e9 1px solid; border-top:#a2a9a9 1px solid; }
hr.side-hr { height:2px; border-bottom:#f2f9f9 1px solid; border-top:#b2b9b9 1px solid; }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#666; }
.white-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;background-color:#c2c9c9;
border:1px #b2b9b9 solid;
padding:4px;
}
.full-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#000; background-color:#fff;
height:19px;
padding:0px 2px 0px 2px;
border:1px #888 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:#182128;
padding:3px 4px 3px 4px;
}
.side-body {
font-size:10px;
color:#000; background-color:#182128;
padding:4px 4px 6px 4px;
}
.main-bg { background-color:#c2c9c9; padding:10px; }
.border { border:1px #aaa solid; }
.side-border-left { padding-top:10px; width: 190px; }
.side-border-right { padding-top:10px; width: 190px; }
.news-footer {
font-size:10px;
color:#FFF;background-color:#000000;
padding:2px 4px 4px 4px;
}
.bar-main {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;font-weight:normal;
color:#fff;
height:28px;
background-image:url(images/bar.gif);background-repeat:repeat-x;
}
.bar-main ul{
margin: 0;
padding: 0;
}
.bar-main ul li{ display: inline; }
.bar-main ul li.first-link .bullet{ display: none; }
.bar-main a { color:#ffffff; text-decoration:none; }
.bar-main a:hover { color:#ffffff; text-decoration:none; }
.bar-left {
width:7px;height:28px;
background-image:url(images/bar-left.gif);
}
.bar-right {
width:9px;height:27px;
background-image:url(images/bar-right.gif);
}
.b-top-main {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;font-weight:normal;
color:#fff;
height:27px;
background-image:url(images/b-top.gif);background-repeat:repeat-x;
}
.b-top-left {
width:16px;height:35px;
background-image:url(images/b-top-left.gif);
}
.b-top-right {
width:16px;height:35px;
background-image:url(images/b-top-right.gif);
}
.b-left {
width:7px;
background-image:url(images/b-left.gif);background-repeat:repeat-y;
}
.b-right {
width:9px;
background-image:url(images/b-right.gif);background-repeat:repeat-y;
}
.b-bottom-main {
height:20px;
background-image:url(images/b-bottom.gif);background-repeat:repeat-x;
}
.b-bottom-left {
width:22px;height:25px;
background-image:url(images/b-bottom-left.gif);
}
.b-bottom-right {
width:22px;height:25px;
background-image:url(images/b-bottom-right.gif);
}
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#fff;background-color:#999;
border-bottom:1px #aaa solid;
padding:2px 4px 4px 4px;
}
.tbl-border { background-color:#a2a9a9; }
.tbl { font-size:11px; padding:3px 4px 3px 4px; }
.tbl1 { font-size:11px; color:#000; background-color:#d2d9d9; padding:4px; }
.tbl2 { font-size:11px; color:#000; background-color:#c2c9c9; padding:4px; }
.forum-caption {
font-size:11px;
color:#fff;background-color:#000;
height:20px;
padding:0px 4px 1px 4px;
}
.quote {
color:#000;background-color:#d2d9d9;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #b2b9b9 solid;
}
.poll { height:12px; border:1px #000 solid; }
.comment-name { font-weight:bold; color:#002266; }
.shoutboxname { font-weight:bold; color:#FFFFFF; }
.shoutbox { color:#666; }
.shoutboxdate { font-size:9px; color:#FFF; }
.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 { background-color:#c2c9c9; padding:2px; }
.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #ccc; }
.gallery:hover img { border: 1px solid red; }
img.activegallery { border: 1px solid green; }
#main {width: 100%;}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#navigation h2 {
font-size: 11px;
color: #555;
background-color: #002266;
margin: 0;
padding: 2px;
}
#navigation a {
display: block;
color: #002266;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #182128;
background-color: #002266;
}
.pagenav { height: 20px;}
.pagenav span {
color: #FFFFFF;
background-color: #d2d9d9;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 2px;
}
.pagenav a {
color: #000000;
background-color: #c2c9c9;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 0px;
text-decoration: none;
}
.pagenav a:hover {
color: #ffffff;
background-color: #000000;
text-decoration: none;
}
.center, *[align="center"] {margin: 0 auto;}
.admin-message {
border: 1px solid #666;
color: #d2d9d9;
background-color: #002266;
padding: 8px;
margin-bottom: 8px;
}
.bbcode { border: 1px solid #ccc; }
.tablebreak { margin-bottom: 8px; }
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
Kliknij i zaczekaj na załadowanie kodu ...
vbig dodał/a następującą grafikę:
Edytowane przez Pieka dnia 19.09.2010 11:54:37
|