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

Parašė ramunasz· 2010 Sau. 17 20:01:40
#5

Bandyk į theme.php įrašyti šitą. Tik pasidaryk theme.php kopiją, nes nežinau gali neveikt kodas...

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

// theme settings
$body_text = "#555555";
$body_bg = "#ffffff";
$theme_width = "860";
$theme_width_l = "246";
$theme_width_r = "246";

function render_header($header_content) {

echo "<table align=center class='mainsite-border' align='left' width='860' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='860' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>

<table align='center' width='860' cellspacing='0' cellpadding='0'>

<tr align=center><td>";
include_once "headeris.php";

echo "</td></tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='860'>
<tr>

<td background='".THEME."' height='203' width='281' align='left'>";


echo "<table cellpadding='0' cellspacing='0' width='281px'>


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

}



function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='padding-left:40px; align='left' class='footer'>";

echo"
engine: PHP-Fusion.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright &copy; motiongraphics.wu.lt
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>
Paskelb&#235;: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#555;'>".$info['user_name']."</a> &nbsp; data: ".showdate("%d/%m/%y", $info['news_date'])."<img src='".THEME."images/blank.gif' width='65' height='0'>Komentarø: ".$info['news_comments']." &nbsp; <a href='news.php?readmore=".$info['news_id']."' style='color:#555;'><b>&#222;i&#251;r&#235;ti daugiau</b></a>
</td>
</tr>
</table>\n";
tablebreak();

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td 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='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

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

}

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

}

function closeside() {

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

}

function kurejas() {
   global $settings;
   $res = "Varikliukas: PHP-Fusion | Dizainas: ShadoVw";
   return $res;
}

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

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

}

function tablebreak() {

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

}
?>