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

Parašė iSound· 2009 Spa. 21 15:10:59
#2

Šitaip gal.

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

// theme settings
$body_text = "#ffffff";
$body_bg = "#FFFFFF";
$theme_width = "911";
$theme_width_l = "200";
$theme_width_r = "200";

function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellpadding='0' cellspacing='0'>\n<tr>

   <tr>
      <td colspan='11'
         background='".THEME."images/gtaaa_03.jpg' width='$theme_width' height='152' alt=''></td>
   </tr>

         



<table align='left' width='232px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 40px;' align='right' width='240'>";


echo "</table>

<table align='left' width='320px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 42px;' align='left' width='320'>";

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

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

}
function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width' class='footer'>
<tr>
<td align='center' class='footer'>sistema: <a href='http://www.php-fusion.co.uk' style='color:#cecece;'>php fusion</a> &nbsp;&nbsp; sprendimas: <a href='mailto:adrenalinasx@gmail.com' style='color:#cecece;'>Simple Art Studio</a> &nbsp;&nbsp; <a href='#' style='color:#cecece;'>&#193; vir&#240;ø</a><br><br></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'>
<br>Pagal: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#cecece;'><b>".$info['user_name']."</b></a> &nbsp; &#193;d&#235;ta: ".showdate("%y.%m.%d", $info['news_date'])."<img src='".THEME."images/blank.gif' width='15' height='0'><a href='news.php?readmore=".$info['news_id']."' style='color:#9a9a9a;'><b>&#222;i&#251;r&#235;ti daugiau</b></a>
</td>
</tr>
</table>\n";

}

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_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";

}

function closeside_header() {

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

}

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

}

function closeside_panel() {

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

}

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

}
?>