Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dėl panelių...

Parašė kLx· 2008 Kov. 17 12:03:19
#1


Tai va ,redaguoju temą ,ir susidūriau su tokia problema : panelių visas turinys labai arti šono. Kaip reikėtų padaryt kad būtų keliais pikseliais toliau? Duodu theme.php ir styles.css
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "960";
$theme_width_l = "200";
$theme_width_r = "200";;

function render_header($header_content) {

global $theme_width;
include_once "header.php";
echo "<table align='center' class='mainsite-border' align='left' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr><td>
<table align='center' width='100%' cellspacing='0' cellpadding='0' >
<tr><td>

<table align='center' width='100%' cellspacing='0' cellpadding='0'>
</table><br>\n";
echo "<table width='95%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";

echo "<br><table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {
global $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='29'><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='15' align='left' valign='bottom' width='100%'>$subject <span class='ip'>(".showdate("shortdate", $info['news_date']).")</span></td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>$news</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' align='right' class='read' style='padding-right:10px;'>"; if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."' class='read'>".$locale['042']."</a>"; echo"</td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='29' valign='bottom'>$subject</td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png'></td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='29'><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='15' align='left' valign='bottom' width='100%'><div style='padding-top:2px; padding-bottom:5px; padding-left:6px;'>$title</td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png'></td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";

}

function openside($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td>
<table width='200' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>
<table cellspacing='0' celpadding='0' border='0' width='100%'>
<tr>

<td height='50' class='oside'>$title</td>
</tr>
</table>
</tr>
<tr>
<td colspan='2' class='side-body'";

}

function closeside() {
echo "</div></td>
</tr>
<tr><td><img src='".THEME."images/paneliu_apacia.png'></td><td width='100%'></td></tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='oside' height='34'>$title</td>
<td class='oside' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\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='15'></td></tr>
</table>\n";

}
?>




a {
   font-family : Verdana;
   color : #006699;
   text-decoration : none;
}

a:hover {
   font-family : Verdana;
   color : #006699;
   text-decoration : underline;
}

a.side {
   font-family : Verdana;
   color : #666666;
   text-decoration : none;
}

a:hover.side {
   font-family : Verdana;
   color : #666666;
   text-decoration : underline;
}

a.white {
   font-family : Verdana;
   color : #ccc;
   text-decoration : none;
}

a:hover.white {
   font-family : Verdana;
   color : #ccc;
   text-decoration : underline;
}

a.toplinks {
   font-family : Verdana;
   color : #3a3d3d3a3d3d;
   text-decoration : none;
}

a:hover.toplinks {
   font-family : Verdana;
   color : #f1f1f1;
   text-decoration : none;
}
a.sides {
   font-family : Verdana;
   color : #666666;
   text-decoration : none;
   font-weight: bold;
}

a:hover.sides {
   font-family : Verdana;
   color : #000000;
   text-decoration : none;
   font-weight: bold;
}

body {
   margin-top: 0px;
   background-color: 3a3d3d;
   background-repeat: no-repeat;
   background-position: top center;
   font-family : Verdana;
   font-size : 11px;
   margin : 0px;
   color: #3a3d3d;
   scrollbar-face-color:#a7a7a7;
}

form {
   margin : 0px;
}

hr {
   height : 2px;
   border-bottom : 1px solid #3a3d3d;
   border-top : 1px solid #e5e5e5;
}

hr.side-hr {
   height : 2px;
   border-bottom : 1px solid #3a3d3d;
   border-top : 1px solid #e5e5e5;
}

td {
   font-family : Verdana;
   font-size : 10px;
}

pre {
   font-family : Verdana;
   font-size : 10px;
}

.alt {
   color : #555;
}

.oside {
   text-align: center;
   font-family : Verdana;
   font-size : 12px;
   font-weight: bold;
   color : #006699;
   background-color: #3a3d3d3a3d3d;
   background-image: url(images/paneliu_cellpic.png);

}

.full-header {
   font-family : Verdana;
   font-size : 10px;
   color : #000;
   padding : 5px;
}

.button {
   font-family : Verdana;
   font-size : 9px;
   font-weight: bold;
   color : #000;
   background-color : #3a3d3d3a3d3d;
   height : 20px;
   border : 1px solid #666666;
   margin-top : 2px;
}

.textbox {
   font-family : Verdana;
   font-size : 10px;
   color : #000;
   background-color : #3a3d3d3a3d3d;
   border : 1px solid #666666;
}

.main-body {
   font-size : 11px;
   color : #555;
   background-color : #c3bdbd;
   padding : 4px 4px 5px 4px;
}

.side-body {
   font-family : Verdana;
   font-size : 11px;
   color : #000;
   background-image: url(images/paneliu_bg.png);
   background-color: #3a3d3d;
   padding: 5px;
}

.main-bg {
   color : #000;
   padding : 0px;
}

.border {
   border : 1px solid #000;
}

.side-border-left {
   color : #444;
   background-color: #3a3d3d;
   border-right : 0px solid #e5e5e5;
   padding : 10px;
}

.side-border-right {
   color : #444;
   background-color: #3a3d3d;
   border-right : 0px solid #e5e5e5;
   border-left : 0px solid #e5e5e5;
   padding : 10px;
}
.mainsite-border {
   background-color: #3a3d3d;
   padding : 0px;
   margins: 0px;
}

.news-footer {
   font-size : 10px;
   color : #3a3d3d;
   padding : 3px 4px 4px 4px;
}

.news {
   background-color: #3a3d3d;
   font-family : Verdana;
   font-size : 16px;
   font-weight : bold;
   text-align: left;
   color : #C4AD5C;
   padding-left : 10px;
}

.newsta {
   background-color: #000;
   font-family : Verdana;
   font-size : 10px;
   color : #3a3d3d;
   padding-left : 5px;
   border: #666 solid 0px;
}

.capmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   font-weight : bold;
   background-image: url(images/table_02.png);
   color : #3a3d3d;
}

.scapmain {
   font-family : Verdana;
   font-size : 10px;
   font-weight : bold;
   color : #3a3d3d;
   background-color: #3a3d3d;
   padding : 4px 4px 4px 4px;
}

.tbl-border {
   color : #000;
   background-color: #3a3d3d;
}

.tbl {
   font-size : 11px;
   color : #555;
   background-color : #3a3d3d;
   padding : 4px;
}

.tbl1 {
   font-size : 11px;
   color : #555;
   background-color : #3a3d3d;
   padding : 4px;
}

.tbl2 {
   font-size : 11px;
   color : #555;
   background-color : #3a3d3d;
   padding : 4px;
}

.forum-caption {
   font-size : 11px;
   font-weight : bold;
   color : #3a3d3d;
   background-color: #efefef;
   padding : 2px 4px 3px 4px;
}

.quote {
   color : #000;
   background-color : #3a3d3d;
   padding : 2px;
   margin : 0px 20px 0px 20px;
   border : 1px solid #617d8f;
}

.poll {
   height : 12px;
   border : 1px solid #000;
}

.comment-name {
   font-weight : bold;
   color : #666666;
}

.shoutboxname {
   font-weight : bold;
   color : red;

}

.shoutbox {
   color : #444;

}

.shoutboxdate {
   font-size : 9px;
   color : #213d6f;

}

.small {
   font-size : 11px;
   font-weight : normal;
}

.small2 {
   font-size : 11px;
   font-weight : normal;
   color : #555;
}

.side-small {
   font-size : 11px;
   font-weight : normal;
   color : #444;
   background-color : #eee;
}

.side-label {
   color : #444;
   background-color : #ddd;
   padding : 2px;
}
.gallery {
   padding : 16px 0px 8px 0px;
}

.gallery img {
   border : 0px solid #ccc;
}

img.activegallery {
   border : 1px solid #ccc;
}

.foot {
   padding-right: 25px;
   text-align: right;
   color:#666666;
}
.ip {
   color: #999999;
   font-size: 10px;
}
.read {
   color: #999999;
   font-size: 10px;
   text-transform: none;
}



Parašė MAnjack· 2008 Kov. 17 12:03:37
#2

.side-border-left {
color : #444;
background-color: #3a3d3d;
border-right : 0px solid #e5e5e5;
padding : 10px;
}

.side-border-right {
color : #444;
background-color: #3a3d3d;
border-right : 0px solid #e5e5e5;
border-left : 0px solid #e5e5e5;
padding : 10px;
}

Padding padidink.

Parašė kLx· 2008 Kov. 17 12:03:46
#3

Ačiū ,susitvarkiau :)