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

Parašė malybu· 2009 Vas. 8 17:02:45
#9

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

// theme settings
$body_text = "#000";
$body_bg = "#ffffff";
$theme_width = "1050";
$theme_width_l = "800";
$theme_width_r = "785";

function render_header($header_content) {

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

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."header.gif'></td>
</tr>
</table>
</td>
</tr>
</table>\n";




echo "<table cellpadding='0' cellspacing='0' width='$theme_width' class='paneles'>\n<tr>
<td align='center' width='300'>";
include THEME."latest_downloads_panel.php";
echo "</td>
<td align='center' width='280'>";
include THEME."popular_downloads_panel.php";
echo "</td>
<td align='center' width='220'>";
include THEME."user_info_panel.php";
echo "</td>
</tr>
</table><br>\n";


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

}

/////Nenuimk copyrighto, nes turesi bedos. :)/////

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' class='footer'>
<tr>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "
<table cellpadding='center' cellspacing'center' width='600'>
<tr>
<td align='center' class='newsmain'><span style='font-size : 12px;font-weight : normal;color:#000;'></span><br><a name='news_1' id='news_1'></a>$subject</td>

</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews1' method='post' action='administration/news.php&amp;news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='naujienos.php?readmore=".$info['news_id']."'>Pla&#232;iau</a> | Siuntesi: ".$info['news_reads']." | Komentarø: ".$info['news_comments']."</td>
</form>

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

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align='center'class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='center' cellspacing='0' width='100%'>
<tr>
<td align='center'class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

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

}

function openside_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-header'>\n";

}

function closeside_header() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function openside_panel($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'>\n";

}

function closeside_panel() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function openside($title) {
   
echo "<table cellpadding='center' cellspacing='center' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='center' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='center'>".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>\n";
tablebreak();

}

function tablebreak() {

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

}
?>



Redagavo malybu· 2009 Vas. 8 17:02:11