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

Parašė Vaidotas-· 2007 Vas. 17 17:02:26
#1

Yra toks themes.php kodas Gal kas žinot, kaip reikia nuimti tuos rėmelius

http://www.austrija.puslapiai.lt...


<?php

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

// theme settings
$body_text = "#000000";
$body_bg = "#EFEFEF";
$theme_width = "788";
$theme_width_l = "160";
$theme_width_r = "160";

function render_header($header_content) {

global $theme_width,$settings;

   echo "<table style='background-image:url(".THEME."images/center.gif)' align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
   echo "<tr><td width='21' height='82'><img src='".THEME."images/header_left.gif' width='21' height='82'></td>";
   // Start banner code
   echo "<td width='100%' height='82'>$header_content</td>";
   // End banner code
   echo "<td width='21' height='82'><img src='".THEME."images/header_right.gif' width='21' height='82'></td></tr></table>\n";
   echo "<img src='".THEME."images/pixel.gif' height='5'>";
   echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
   

   echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>\n<tr>\n";
}

function render_footer($license=false) {

global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'><tr>";
   echo "<td class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";
   echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";

}

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

global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$subject</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar'>".newsposter($info)."</td>";
   echo "<td align='right' class='infobar2'>";
   echo openform("N",$info['news_id']).newsopts($info,"Ā·").closeform("N",$info['news_id']);
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'>";
   echo "</td></tr><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;

   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$subject</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar'>".articleposter($info)."</td>";
   echo "<td align='right' class='infobar2'>";
   echo openform("A",$info['article_id']).articleopts($info,"Ā·").closeform("A",$info['article_id']);
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$title</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'>\n";
}

function closetable() {

   echo "</td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function openside($title) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$title</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
   echo "<td class='side-body'>\n";
}

function closeside() {

   echo "</td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "<td class='panel-main'>$title</td>";
   echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
   echo "<td class='side-body'>";
   echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}

function closesidex() {

   echo "</div>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function tablebreak() {

   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
   echo "</td></tr></table>\n";
}
?>



Redagavo Vaidotas-· 2007 Vas. 17 18:02:07

Parašė ozzWANTED· 2007 Vas. 17 17:02:47
#2

Kokius dar rėmelius? Jei kalbi apie borderius, tai visi borderiai yra nustatomi styles.css faile ;)

Parašė Vaidotas-· 2007 Vas. 17 18:02:33
#3

Aciu ;)

Parašė Vaidotas-· 2007 Vas. 17 18:02:11
#4

Prie to pacio dar paklausiu vieno klausimo: ar imanoma, kokias nors budais registravimosi panelėje padaryt, kalbos nustatyma, panasiai kaip temos kazkas turėtų būti?