Byłbym bardzo wdzięczny ~Piotrroger. Dołączam theme.php
<?
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#525157";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table border='0' cellpadding='0' cellspacing='1' bgcolor='#525157' width='870' align='center'>";
echo "<tr><td width='100%' bgcolor='#1c1b22' height='11' valign='top'>";
echo "<table height='229' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr>";
echo "<td>";
echo "
<table height='229' cellSpacing='0' cellPadding='0' width='100%' border='0'>
<tr>
<td>";
include_once "header.php";
echo "</td>
</tr>
";
echo "<tr><td><table cellSpacing='0' width='100%' cellPadding='0' border='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo "<img src='".THEME."images/div.gif'>"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a class='category' href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a class='category' href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right' class=date><b>".ucwords(showdate($settings['subheaderdate'], time()))." </b></td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='0' bgcolor='#000000' cellspacing='4' border='0'>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%' height='27'>";
echo "<tr><td width='5%' background='".THEME."images/bar.gif'>";
echo "<div align='center'><a href='javascript:scroll(0,0);'><img src='".THEME."images/up_arrow.gif' title='Scroll up'></a></td></div>";
echo "<td width='35%' background='".THEME."images/box-bg.gif'>";
echo "<div align='center'><div align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><b>PHP-Fusion</b></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td width='20%' align='center' background='".THEME."images/bar.gif'>";
echo "VW Jetta Theme by probase @ AusiMods</td></div>";
echo "<td align='right' width='35%' background='".THEME."images/bar.gif'>";
echo "<b>".$settings['counter']."</b></font> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='5%' background='".THEME."images/bar.gif'><div align='center'>";
echo "<a href='javascript:scroll(0,0);'><img src='".THEME."images/up_arrow.gif' title=''></a></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #000000' cellpadding='1' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td bgcolor='#000000'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td class='cpic' width='100%' height='26'> <img src='".THEME."images/square.gif' hspace='2'> ";
echo "<font class='title'>$subject</font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' bgcolor='#525157' align='center'>";
echo "<tr><td class='main-body'>$news</td></tr></table>";
echo "<tr><td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."";
echo "<hr><div align='right'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></div>";
echo "</td></tr></table></td></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #000000' cellpadding='1' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td bgcolor='#525157'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td class='cpic' width='100%' height='26'> <img src='".THEME."images/square.gif' hspace='2'> ";
echo "<font class='title'>$subject</font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' bgcolor='#525157' align='center'>";
echo "<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table>";
echo "<tr><td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])." ";
echo "<hr><div align='right'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></div>";
echo "</td></tr></table></td></tr></table></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #000000'>";
echo "<tr><td background='".THEME."images/cellpic3.gif' bgcolor='#525157' height='25'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='1' bgcolor='#525157' width='100%'>";
echo "<tr><td class='cpic' height='27' align='left'>";
echo "<img src='".THEME."images/square.gif' hspace='2'> <font class='block-title'>$title</font>";
echo "</td>";
echo "<tr><td bgcolor='#525157' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='0' cellspacing='1' bgcolor='#525157' width='100%'>";
echo "<tr><td class='cpic' height='27' align='left'>";
echo "<img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#525157' class='side-body' width='100%'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
PS. Mi nie zależy na tym żeby było to logo, ale obojętnie jakie tylko żeby było jedną całością. bo jak jest to, to nie wstawie innego.
Edytowane przez Piotrek dnia 20.01.2007 21:25:34
|