Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dėl puslapio paplatinimo.

Parašė Use Google· 2009 Bir. 10 20:06:16
#3

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

// theme settings
$body_text = "#555555";
$body_bg = "#65b8e3";
$theme_width = "950";
$theme_width_l = "220";
$theme_width_r = "220";

function render_header($header_content) {

global $theme_width,$db_prefix, $subject, $news ;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/virsus.gif' height='63'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/header.gif' height='173'>
</td></tr>";

echo "</table>";


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


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'>
<br><br>".stripslashes($settings['footer'])."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info, $sep="", $class="") {
   
   global  $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='news-capmain' style='padding-bottom: 20px;'>$subject&nbsp;";    
if (!isset($_GET['readmore']) && $info['news_ext'] == "y")
echo"<a href='news.php?readmore=".$info['news_id']."' style='color:#ccc;'><span style='font-size: 10px;'>[Skaityti toliau...]</span></a>";
echo"</td>
<td class='news-capmain' align='right'>
<br><span style='font-size: 10px;'>".showdate("shortdate", $info['news_date'])."</span>
<td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>$news<br><br></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'><img src='".THEME."images/logo.jpg' border='0'>$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 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";

}
?>