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

Parašė xrip· 2010 Vas. 12 22:02:13
#1

Noreciau pakeisti naujienu spalva(balta) i pilka kuri dominuoja puslapyje.Uz pagalba +10 nepagailesiu;]
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

$body_text = "#555555";
$body_bg = "#1d1d1d";
$theme_width = "947";
$theme_width_l = "243";
$theme_width_r = "243";

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='947' height='222' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td background='".THEME."images/hama_01.png' width='947' height='198'><form name='searchform' method='post' action='".BASEDIR."search.php?stype=d'>
<div style='margin-left:550px;margin-top:120px;'><input type='text' name='stext' class='box' style='width:168px;height:22px;'>
<input type='image' src='".THEME."images/ieskoti.png' name='search' value='ieskoti'></div></form></td>
</tr>
<tr>
<td background='".THEME."images/hama_02.png' width='947' height='24'><a href='".BASEDIR."news.php' class='sub'>Pradžia</a><a href='".BASEDIR."downloads.php' class='sub'>Muzikos bazė</a></td>
</tr>
</table>
</td>
</tr>
</table>\n";

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

}

function render_footer() {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='947' class='footer'>
<tr>
<td class='foot1'>Copyright (c) 2008-2009 Mp3Muzika.wu.Lt All rights reserved.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CMS: <a href='http://php-fusion.co.uk' class='white'>PHP-Fusion</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Web dizainas: <a href='http://moby.lt' class='white'>Moby.lt</a>
</td>
<td align='right' class='foot2'><a href='#top' class='white'>&#302; vir&#353;&#371; <img src='".THEME."images/up.png' alt='' border='0'></a>
</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'>\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='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' height='38'>$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' height='28'>$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";

}
?>