Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: padekit sutvarkyt theme... keistas atvejis

Parašė House· 2009 Vas. 21 20:02:20
#1

stai kaip darosi per opera...per mozila rodo lyg ir gerai


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

// theme settings
$body_text = "#585858";
$body_bg = "#000";
$theme_width = "1000";
$theme_width_l = "202";


function render_header($header_content) {

global $theme_width,$locale,$data,$aidlink,$db_prefix,$settings,$msg_count;

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"729\">

<tr>

<td>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"729\">
<tr>
<br><br>
<td background=\"".THEME."images/header.png\" width=\"729\" height=\"259\" border=\"0\" alt=\"\"></td>
</td>
</tr></table>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"729\">

<tr>
<td>
</tr></table>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"729\">

<tr>
</tr></table>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"729\">

<tr>
</div>

</td>


</td>

</tr></table>

</td>
</tr>
<tr></tr>
<tr>
    <td>\n";

echo "    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"729\">
<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' align='center' cellspacing='0' width='500'>
<tr>
<td  background='".THEME."images/apacia.png'width=\"1\" height=\"99\" border=\"0\" align='center' class='side'>".stripslashes($settings['footer'])."</td>

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

}

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

echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" algin='right' width=\"500\">
<tr>
<table border=\"0\" align='right'cellpadding=\"0\" cellspacing=\"0\" width=\"500\">



   <td background=\"".THEME."images/virsus6.png\" width=\"500\" height=\"40\" style=\"  padding-left: 15px; padding-right: 15px border=\"0\" alt=\"\" class='scapmain'><b>$subject</b>
   <br><span style=\"color: #5b5b5b; font-family: Arial; font-size: 10px\"></td></tr><tr>


<table border=\"0\" align='right'cellpadding=\"0\" cellspacing=\"0\" width=\"500\">

   <td background=\"".THEME."images/vidurys2.png\" width=\"500\" style=\" padding-bottom:5px; padding-left: 15px; padding-right: 15px\">
   

   $news<br>


   </td></tr><tr>
   <td background=\"".THEME."images/apacia11.png\" width=\"500\" height=\"35\"  style=\" padding-top:-0px; padding-left: 33px; padding-right: 33px\"><table width=\"100%\"><tr><td >".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a>" : "")."
<a href='news.php?readmore=".$info['news_id']."'>+ Pla&#232;iau </a><a href='news.php?readmore=".$info['news_id']."'>+ Komentarø: ".$info['news_comments'].$locale['043']."</a>
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td></tr>
   </table>
   </td></tr>
</table>

";
}

function render_article($subject, $article, $info) {
   
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"  width=\"500\">
<tr>

<table border=\"0\" align='right'cellpadding=\"0\" cellspacing=\"0\" width=\"500\">

   <td background=\"".THEME."images/virsus6.png\" width=\"500\" height=\"40\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$subject</b></td></tr><tr>
   <td background=\"".THEME."images/vidurys2.png\" width=\"500\" style=\" padding-left: 15px; padding-right: 5px\">
   <b></b>

   <div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>


   
   
   
   </td></tr><tr>
   <td background=\"".THEME."images/apacia11.png\" width=\"500\" height=\"35\" style=\" padding-left: 15px; padding-right: 5px\"><table width='98%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right'>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> &#183;
".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
   </td></tr>
</table>


\n";

}

function opentable($title) {

echo "<table border=\"0\" cellpadding=\"0\"  cellspacing=\"0\" width=\"500\">
<tr>
<table border=\"0\" align='right'cellpadding=\"0\" cellspacing=\"0\" width=\"500\">
<tr>
    <td background=\"".THEME."images/virsus6.png\" width=\"500\" height=\"40\"  style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\" class='capmain'><b>$title<b></td></tr><tr>
   



<td background=\"".THEME."images/vidurys2.png\" width=\"500\"  style=\" padding-bottom:10px; padding-left: 15px; padding-right: 15px\">";


}

function closetable() {

echo "
   
   
    </td></tr><tr>
    <td><img src=\"".THEME."images/apacia11.png\" width=\"500\" height=\"35\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>\n";

}


function openside($title) {
   
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"202\">
<tr>
    <td background=\"".THEME."images/panele.png\" width=\"202\" height=\"43\" border=\"0\" alt=\"$title\"><img src='".THEME."images/tarpas.gif'>$title</td></tr>

<tr>
    <table border=\"0\" align='center'cellpadding=\"0\" cellspacing=\"0\" width=\"195\">


    <td background=\"".THEME."images/panel.png\" width=\"195\" style=\" padding-top: 1px; padding-left: 10px; padding-right: 10px\">

   
   
\n";

}


function closeside() {

echo "
   
    </td>
</tr>
<tr>
    <td><img src=\"".THEME."images/panelxx.png\" width=\"195\" height=\"20\" border=\"0\" alt=\"[Rozmiar: 551 bajtów]\"></td>
</tr>
</table>\n";
tablebreak();

}

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

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

}

function closesidex() {

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

}

function tablebreak() {

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

}

function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}

function closesidel() {
echo "</td>
</tr>
</table>\n";
}
?>




bent jau pasakykite kame reikalas... ka uzmirsau?