Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Nerodo naujienu

Parašė alvydas54· 2011 Rugs. 15 17:09:29
#1

Sveiki, taigi parsisiunciau dizaina bet jame nerodo sukurtu naujienu, tai gal kas padesit, cia theme.php failas

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_WIDTH", "967");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";


function render_page($license=false) {

global $settings, $main_style,$userdata,$locale,$aidlink,$db_prefix;

//Header
echo "<div id='virsus'><table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td>\n";

echo"<div id='header'>";
include "kodas/paieska.php";
include "kodas/user.php";
echo"</div>";

echo"<div id='menu'>";
echo"<div id='nav' class='sub-header'>".showsublinks("", "white")."</div>";
echo"</div>";

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


//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";



echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td>\n";
echo "<div id='footer'>";

//FOOTER MENU
echo "<div class='footer_menu'>
<li class='meniu'><a href='#'>Atsakomybes apribojimas</a></li>
</div>";
//PABAIGA

//BACKLINKAI
echo "<div class='nuorodos'>
<a href='http://mes'>mes</a> | <a href='http://mes'>mes - SMS PAZINTYS!</a> | <a href='#'>Backlink</a> | <a href='#'>Backlink</a>
</div>";
//PABAIGA

//SKAITLIUKAS
echo "<div class='skaitliukas'>";
echo '<a target="_blank" href="http://www.hey.lt/details.php?id=elfilmai"><img width=88 height=31 border=0 src="//www.hey.lt/count.php?id=elfilmai" alt="Hey.lt - Nemokamas lankytoju skaitliukas"></a>';
echo "</div>";
//PABAIGA

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



//Footer
/*echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td class='footer'>";
echo "aaaaaaaaaaaa";
echo "</td>";
echo "</tr>\n</table>\n";*/

}

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

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

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'><div class='text'>".$title."</div></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";

}

function closetable() {

echo "</td>\n</tr>\n<tr><td class='news-footer'></td></tr></table>\n";

}

function openside($title, $collapse = false, $state = "on") {

global $panel_collapse; $panel_collapse = $collapse;

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain'><div class='text'>".$title."</div></td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

global $panel_collapse;

if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr><tr><td class='apacia'></td></tr></table>\n";

}
?>

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23626284-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>