Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Theme.php smulkus redagavimas

Parašė Addrew· 2011 Kov. 30 18:03:52
#1

Sveiki, štai kodas, gal kas galėtų padaryti, kad naujienos būtų plačios, nes dabar labai siauros. Dėkoju.

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

/*
|--------------------------------CODE_WASIULIS--------------------------------|
|---NEMOKAMA_KODA_BEI_GRAFIKA_DOVANOJA_WASIULIS---|
|-------------------------------WWW.WASIULIS.TK----------------------------|
*/

/* Nustatymai */
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "940";
$theme_width_l = "339";
$theme_width_r = "339";

function render_header($header_content) {
global $theme_width;
/* tai pats vir&#154;us jusu saito */
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr><td class='header2'></td>
</tr>
<tr><td>";

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
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer' LGSF.tt.lt' class='white'>LGSF.tt.lt</a> v".$settings['version']."</td>
</tr>
</table>\n";

}

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

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

}

function render_article($subject, $article, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain-news' align='left'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-dwn'></td>
</tr>
</table>\n";

}

function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<td class='main-body2'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}

function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='338'>
<tr>
<td align='center' class='scapmain2'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<td align='center' class='openside-down'></td>
</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='scapmain2'>$title</td>
<td class='scapmain2' 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>
<td align='center' class='openside-down'></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";
}


?>