Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Loginas headeryje.

Parašė masck· 2008 Rugs. 17 13:09:00
#3

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

// ustawienia thema
$body_text = "#000000";
$body_bg = "#DDDDDD";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";

$motto = "Slogan&#253;n&#253;z";

function render_header($header_content) {

global $theme_width, $settings, $motto;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='main-bg'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr align='center'>
<td class='tytul'>".$settings['sitename']."<p class='motto'>".$motto."</P></td><td class='naglowek'><img src='".THEME."images/leaf.jpg' alt='leaf.jpg' height='220' width='293'></TD>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'>".showsublinks("","white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";
tablebreak();

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";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer' colspan=3><hr><br>".stripslashes($settings['footer'])."</td>
</tr>
<tr>
<td class='footer'>Powered by <a HREF='http://www.php-fusion.co.uk'>PHP-Fusion</A><br>
<td align='center' class='footer'>
</td><td class='footer' align='right'>".showcounter()."<br></TD>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

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

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr align='center'>
<td>
<table width='96%' 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,"<br>").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr align='center'>
<td>
<table cellpadding='0' cellspacing='0' width='98%'>
<tr>
<td class='capmain'>$title</td>
</tr>
</TABLE>
</td>
</TR>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";

}

function closetable() {

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

}

function openside($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%' border=0>
<tr align='center'>
<TD style='padding: 10px;'>
<table width='100%'
cellpadding='0' cellspacing='0'>
<tr align='center'>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>
</td>
</tr>
</table>";
tablebreak();
}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' border='1'><tr align='center'><td><table cellpadding='0' cellspacing='0' width='90%'>
<tr align='center'>
<td colspan='2' class='side-body'><img src='".THEME."images/blank.gif' alt='' height='2' width='1'></td>
</tr>
<tr align='center'>
<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></TD></TR></TABLE>\n";
tablebreak();
}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%' STYLE='background: #FFFFFF'>
<tr><td height='20'></td></tr>
</table>\n";

}
?>

Redagavo masck· 2008 Rugs. 17 14:09:34