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

Parašė Gasper· 2008 Bal. 21 21:04:54
#13

Iš jop.lt ;] neužilgo pakeisiu čia tik laikinai kol rasiu koki gera ;]

plotis: 933
aukštis: 359


theme.php

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

//  Theme Settings
$body_text = "#555555";
$body_bg = "#ffffff";
$theme_width = "80";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #000000 1px; border-left: solid #000000 1px; border-top: solid #000000 1px; margin-top: -5px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";

   echo "<tr><table align=center width=100% height=100 background='".THEME."header.jpg' border=0 cellspacing=0 cellpadding=0>";

echo "</td></tr>
<tr></tr>
<tr><td height=357></td></tr>
</table>";




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


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

}

function render_footer($license=false) {
require_once THEME."footer.php";

}

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

echo "<table cellpadding='0' cellspacing='0' width='80%' class='naujienu_fonas'>
<tr>
<td><img src='".BASEDIR."themes/Givex_fm/capmain/capmain_01.png' align='center'></td>
</tr>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0' border='0'>

<td class='capmain'>$subject</td>
</table>
</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>

\n";
echo "<tr>
<td align='right' class='news-footer'><font color='cccccc' > Skaityta:[".$info['news_reads']."] |<font color='cccccc' > Komentarai:[".$info['news_comments']."]".($info['news_ext'] == "y" ? "&nbsp; | <a href='news.php?readmore=".$info['news_id']."'>Toliau..</a> \n" : "")."</td>
 
</form>
</tr>\n";
echo "</td>
</tr>
</table><img src='".THEME."capmain/capmain_04.png'>\n";

}


function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
<td class='tablo-sol' align='left' width='25'>&nbsp;</td>
<td class='capmain'>$subject</td>
</table>
</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 "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%' class='naujienu_fonas'>
<tr>
<td><img src='".BASEDIR."themes/Givex_fm/capmain/capmain_01.png' align='center'></td>
</tr>

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

}

function closetable() {

echo "</td>
</tr>
<tr>
<td height='10'>&nbsp;</td>
</tr>
</table><img src='".THEME."capmain/capmain_04.png'>\n";
tablebreak();
}

function openside($title) {


echo "<table cellpadding='0' cellspacing='0' width='100%' class='paneliu_fonas'>
<tr>
<td><img src='".BASEDIR."themes/Givex_fm/scapmain/scapmain_01.png' align='center'></td>
</tr>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
<td class='scapmain'>$title</td>
</table>
</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
<tr>
<td height='10'>&nbsp;</td>
</tr>
</table><center><img src='".THEME."scapmain/scapmain_04.png' <center>\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 width='20%' class='scapmainx' align='center'>".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>
<tr>
<td height='10'>&nbsp;</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='10'></td>
</tr>
</table>";

}
?>



Redagavo Gasper· 2008 Bal. 21 21:04:57