Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagalbos

Parašė Haked· 2008 Geg. 4 14:05:05
#1

Prašau padėkite su šita theme pažiūrėkite kaip atrodo :( dėl ko čia taip?

va pažiūrėkite: http://www.cstrike.too.lt

štai theme.php

<?php

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "900";
$theme_width_l = "183";
$theme_width_r = "183";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

 echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #000000 1px; border-left: solid #000000 1px; border-top: solid #000000 1px; margin-top: -5px;'>";
 echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
 echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
 echo "<tr><td class='header' width='100%'>";

 echo "<tr><table align=center width=100% height=270 background='".THEME."images/baner.jpg' border=0 cellspacing=0 cellpadding=0>";
echo"<tr><td height=50 class='nuorodos' align='center' style='padding-right:50px; padding-top:130px;'><br>";
echo"</td></tr><tr></tr><tr><td></td></tr></table>";


 echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif'>";
   echo "<td width='20%' height='50' class='white' align='left'>";
      if ($license == false) {
      echo "<b>Varikliukas: <a href='https://webdnd.com' target='_blank'>PHP-Fusion</a></b>";
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "<b>Undersky design</a></b>";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}

function render_news($subject, $news, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='30'  class='table-cellpic'><center>$subject</center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "<a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

global $locale;

   echo "<table class='news-border' border='1' cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='23' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&amp;item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='1' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='30' class='table-cellpic'>$title</td></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

   echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

 echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
 echo "<tr><td width='100%' height='30' class='panel-sidecellpic' align='center'>$title</td></tr>";
 echo "<tr><td class='sonas' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {
echo "</td></tr>
<tr>
<td><img src='".THEME."images/apacia.gif'></td>
</tr>
</table>\n";
tablebreak();
}

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='left'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

   echo "</div></td></tr></table></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>




štai styles.css


 body {
   margin:0px; font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
        background-image: url('images/bg.gif');
        background-attachment: fixed;
        color:#333;
   padding:0px;
   
}

.forumline {
    border: bold 1px #cccccc;
    background-color: #CACACA;
}


.header {
   background-color: #ffffff;
   padding:0px;
}

.white {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#FFFFFF;
}

.dark {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#666;
}



a {
   color:#333399;
   text-decoration:none;
   font-size:10px;
}


a:hover {
   color:#604000;
   text-decoration:none;
}


a.side {
   color:#333399;
   text-decoration:none;
   font-size:10px;
}


a:hover.side {
   color:#402020;
   text-decoration:none;
}


a.white {
   color:#333399;
   text-decoration:none;
   font-size:11px;
}


a:hover.white {
   color:#0C0C0C;
   text-decoration:none;
}


form {
   margin:0px 0px 0px 0px;
}


hr {
   border-top:1px #E2E2E2 solid;
   border-bottom:1px #F9F9F9 solid;
}


hr.side-hr {
   border:1px #E2E2E2 solid;
   border-bottom:1px #F9F9F9 solid;
}


td {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
}


pre {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:9px;
}


.alt {
   color: #666666;
}


.sub-header {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#FFFFFF;
   background-color:#990000;
        background-image: url('images/subheader.gif');
   border-top:0px solid #FFFFFF;
   border-bottom:1px solid #FFFFFF;
   padding:5px
}


.button {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#000020;
   border:1px solid #B7B7B7; background: #FFFFFF url('images/pusher.gif');
   margin-top:2px; background-image:url('images/pusher.gif')
}

   
.textbox {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#000020    ;
   background-color:#FAFAFA;
   border:1px #CACACA solid;
}


.main-body {
   background-color:#FFFFFF;
   color: #3B3B3B;
   font-weight: normal;
   padding:4px 4px 6px 6px;
}


.table-cellpic {
   font-size: 11px;
   font-weight: bold;
   text-align:center;
   color: #fff;
   background-color: #FFFFFF;
   background-image: url('images/cellpic.gif');
   padding:0px;

   
}


.panel-border {
   border: 0px solid #cccccc;
}


.news-border {
   border-top:  #cccccc;
   border-top-width: 1px;
   border-left:  #cccccc;
   border-left-width: 1px;
   border-right:  #cccccc;
   border-right-width:1px;
   border-bottom: #cccccc;
   border-bottom-width:1px;
}


.panel-cellpic {
   font-size: 11px;
   font-weight: bold;

   color: #fff;
   background-color: #cccccc;
   background-image: url('images/cellpic.gif');
   padding:1px;

}

.panel-sidecellpic {
   font-size: 11px;
   font-weight: bold;

   color: #fff;
   background-color: #cccccc;
   background-image: url('images/cellpic.jpg');
   padding:1px;

}


.side-body {
   color: #738495;
   font-weight: normal;
   padding:4px 4px 6px 4px;
}


.main-bg {
   background-color:#F8F8F8;
   background-repeat: no-repeat;
}


.border {
   border-width:1px 1px 1px 1px;
   border-color:#cccccc;
   border-style:solid;
}


.news-footer {
   background: #eaebe4 url('images/nfooter.gif');
    font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif; font-size:9px; font-weight:normal; color:#002020; height:16px; padding:4px;
}


.capmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   border-width:1px 1px 1px 1px;
   border-color:#cccccc;
   border-style:solid;
   color:#fff;
   height:24px;
   padding:0px 0px 0px 0px;
   padding-left:15px; padding-right:4px; padding-top:2px; padding-bottom:4px
}


.footer {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#FFFFFF;
   background-color:#FFFFFF;
        background-image: url('images/footer.gif');
        padding:4px;
}


.footerstat {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   color:#604000;
}


img {
   border: 0px;
}


.scapmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   color:#fff;
   height:19px;
   padding:1px 1px 1px 1px;
   border-width:1px 1px 1px 1px;
   border-color: #cccccc #cccccc #cccccc #cccccc;
   border-style:solid;
}


.tbl-border {
   background-color:#CACACA;
}


.tbl {
   font-size:11px;
   padding:4px;
}


.tbl1 {
   font-size:11px;
   color:#091609;
   background-color:#FFFFFF;
   padding:4px;
}


.tbl2 {
   font-size:11px;
   color:#091609;
   background-color:#FEFEFE;
   padding:4px;
}


/* Forum header/Forumo headeris*/
.forum-caption {
   font-size:10px;
   font-weight:bold;
   color:#2A7ED8;
   background-color:#F1F1F1;
   height:24px;
   padding:0px 4px 2px 4px;

}


/* Quote blocks/Citatos blokas */
.quote {
   color:#2E4D80;
   background-color:#F8F8F8;
    background-image: url('images/code.gif');
   padding:2px;
   border:1px solid #CACACA;; margin-left:20px; margin-right:19px; margin-top:0px; margin-bottom:0px
}


/* Poll/Balsavimas */
.poll {
   height:8px;
   border:1px #929AA2 solid;
}


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


/* Shoutbox/Saukykla */
.shoutboxname {
   font-weight:light;
   color:#FFDDAA;
}


.shoutbox {
   color:#06070A;
}


.shoutboxdate {
   font-size:9px;
   color:#1C1C1C;
}


.small {
   color: #666666;
   font-size:10px;
   font-weight:normal;
}


.small2 {
   font-size:9px;
   font-weight:normal;
   color:#1C1C1C;
}


.side-small   {
   font-size:10px;
   font-weight:normal;
   color:#000000;
}


.side-label {
   background-color:#E3E3E3;
   font-weight:normal;
   color:#888;
   padding:2px;
}


/* Photo Gallery/Foto Galerija */
.gallery {
   padding: 16px 0px 8px 0px;
}


.gallery img {
   border: 1px solid #CACACA;
   filter: gray;
}


.gallery:hover img {
   border: 1px solid #4E79F3;
   filter: none;
}


img.activegallery   {
   border: 1px solid #CACACA;
   filter: none;
}

.sonas {
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
padding: 3px;
}




Išanksto ačiū

Redagavo Haked· 2008 Geg. 4 14:05:38