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

Parašė Meskis· 2009 Vas. 7 21:02:28
#14

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

// theme settings
$body_text = "#555555";
$body_bg = "#2c2c2c";
$theme_width = "931";
$theme_width_l = "200";
$theme_width_r = "200";

function render_header($header_content) {

global $theme_width;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table width='932' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td rowspan='3'>
         <img src='".THEME."images/header_01.png' width='411' height='122' alt='' /></td>
      <td colspan='2'>
         <img src='".THEME."images/header_02.png' width='521' height='33' alt='' /></td>
   </tr>
   <tr>
      <td>
         <a href='http://csource.xz.lt'><img src='".THEME."images/header_03.png' width='468' height='60' alt='' border='0' /></a></td>
      <td>
         <img src='".THEME."images/header_04.jpg' width='53' height='60' alt='' /></td>
   </tr>
   <tr>
      <td colspan='2'>
         <img src='".THEME."images/header_05.png' width='521' height='29' alt='' /></td>
   </tr>
</table>

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='sub-header' height='31'>".showsublinks("&middot;","white")."</td>
</tr>
</table>\n";

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 align='center' class='footer' height='52'>".stripslashes($settings['footer'])."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='500' align='center'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body' height='25'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='500' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td class='capmain' height='25'>$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='500' align='center'>
<tr>
<td class='capmain' height='25'>$title</td>
</tr>
<tr>
<td class='main-body' style='   border-bottom:4px solid #2c2c2c;'>\n";

}

function closetable() {

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

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain' height='25'>$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='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";

}
?>



Redagavo Meskis· 2009 Vas. 7 21:02:47