Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: pagalbos del box'o paneleje

Parašė respect· 2012 Sau. 10 19:01:00
#3

galit pasakyt kur kelt ta pirma koda?


<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
define("THEME_WIDTH", "1000");
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;
 
	//Header
	echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."'><tr>
	<td>
	<div class=\"tail-top\">
		<div class=\"tail-bottom\">
			<div id=\"main\">
				<div id=\"header\">
					<div class=\"row-1\">
						<ul class=\"top-nav\">
							<li><li>
												</ul>
					</div>
					<div class=\"row-2\">
						<div class=\"indent\">
							<a href=\"".BASEDIR."index.php\"><img alt=\"\" src=\"".THEME."images/logo2.png\" /></a>
						</div>
					</div>
					<div class=\"row-3\">
						<ul class=\"site-nav\">
							 ".showsublinks("","")."
						</ul>
					</div>
				</div>
	</td>
	</tr></table>";
 
	//Content
	echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='$main_style'><tr>";
	if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
	echo "<td class='main-bg' valign='top'>
	              <div class=\"wrapper\">
						<div class=\"col-1\">
							<div class=\"section\">".U_CENTER.CONTENT.L_CENTER."</div></div></div></td>";
	if (RIGHT) { echo "<td class='side-border-right' valign='top'><div class=\"col-2\">
							<div class=\"section\">".RIGHT."</div></div></td>"; }
	echo "</tr></table>";
 
	//Footer
	echo "<table class='tail-bottom' align='center' cellspacing='0' cellpadding='0' width='100%'><tr>
	<td><div id=\"footer\">
					<div class=\"indent\">
						<div class=\"fleft\">Sukurta: &nbsp; Dariaus</div>
						<div class=\"fright\">"; if (!$license) { echo showcopyright()."<br /><br />"; } echo "</div>
					</div>
				</div></td>
	</tr></table>";
 
}
 
function render_news($subject, $news, $info) {
 
	echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>
	<td><h2>".$subject."</h2></td>
	</tr>
	<tr>
	<td><p>".$info['cat_image'].$news."</p></td>
	</tr>
	<tr>
	<td align='center' class='news-footer'>"; 
	echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']); echo "</td>
	</tr>
	</table>";
 
}
 
function render_article($subject, $article, $info) {
 
	echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>
	<td><h2>".$subject."</h2></td>
	</tr>
	<tr>
	<td><p>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</p></td>
	</tr>
	<tr>
	<td align='center' class='news-footer'>"; 
	echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']); echo "</td>
	</tr>
	</table>";
 
}
 
function opentable($title) {
 
	echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>
	<td><h2>".$title."</h2></td>
	</tr>
	<tr>
	<td><p>";
 
}
 
function closetable() {
 
	echo "</p></td>
	</tr>
	</table>";
 
}
 
function openside($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'><tr>";
	echo "<td><h2>".$title."</h2></td>";
	if ($collapse == true) {
		$boxname = str_replace(" ", "", $title);
		echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>";
	}
	echo "</tr><tr>";
	echo "<td".($collapse == true ? " colspan='2'" : "")."><dl>";	
	if ($collapse == true) { echo panelstate($state, $boxname); }
 
}
 
function closeside($collapse = false) {
 
	global $panel_collapse;
 
	if ($panel_collapse == true) { echo "</div>"; }	
	echo "</dl></td></tr></table>";
 
}
?>