Witam wszystkich potrzebuje pomocy mam topa we flasu i chcialbym go umiescic we fusionie ponizej podaje caly plik theme.php pomozcie mi go zmodyfikowac please.!
edit: uważaj, jak dodajesz tematy bo dodałeś 3 razy, duplikaty usunąłem /JazOOn.
<?
/*--------------------------------------------+
| PHP-Fusion 6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: SuperMarkus © 2006 |
| web: http://cms-designs.de |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#000000";
$body_bg = "#CAD9EA";
$theme_width = "975";
$theme_width_l = "220";
$theme_width_r = "220";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<td class='header_top'></td>";
echo "</table>";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td class='nav_oben_links'></td>";
echo "<td class='nav_oben_mitte'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
if ($i != dbrows($result)) { echo " ·\n"; } else { echo "\n"; } $i++;
}
}
echo "</td>";
echo "<td align='right' class='nav_oben_mitte'>";
echo "".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td class='nav_oben_rechts'></td></tr></table>";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td class='nav_unten_links'></td>";
echo "<td class='nav_unten_mitte'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><b>php-fusion</b></a> v".$settings['version']." © 2003-2005";
}
echo "</td>";
echo "<td class='nav_unten_mitte'><a target='_blank' href='http://phpfusion.org'></a>";
echo "</td>";
echo "<td align='right' class='nav_unten_mitte'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td class='nav_unten_rechts'></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='oben_links'></td>";
echo "<td class='oben_mitte'>$subject</td>";
echo "<td class='oben_rechts'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='links'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div><br>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
echo "<td align='right' class='infobar2'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b> ";
echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='rechts'>";
echo "</td></tr><tr>";
echo "<td class='unten_links'></td>";
echo "<td class='unten_mitte'></td>";
echo "<td class='unten_rechts'></td>";
echo "</tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='oben_links'></td>";
echo "<td class='oben_mitte'>$subject</td>";
echo "<td class='oben_rechts'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='links'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td align='right' class='infobar2'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." <b>·</b> ";
echo "".$info['article_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='rechts'></td>";
echo "</tr><tr>";
echo "<td class='unten_links'></td>";
echo "<td class='unten_mitte'></td>";
echo "<td class='unten_rechts'></td>";
echo "</tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='oben_links'></td>";
echo "<td class='oben_mitte'>$title</td>";
echo "<td class='oben_rechts'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='links'></td>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='rechts'></td></tr>";
echo "<tr>";
echo "<td class='unten_links'></td>";
echo "<td class='unten_mitte'></td>";
echo "<td class='unten_rechts'></td>";
echo "</tr></table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='oben_links'></td>";
echo "<td class='oben_mitte'>$title</td>";
echo "<td class='oben_rechts'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='links'></td>";
echo "<td class='side-body'>\n";
}
function closeside() {
echo "</td>";
echo "<td class='rechts'></td></tr>";
echo "<tr>";
echo "<td class='unten_links'></td>";
echo "<td class='unten_mitte'><img src='".THEME."images/pixel.gif' title='http://cms-designs.de' alt='http://cms-designs.de'></td>";
echo "<td class='unten_rechts'></td>";
echo "</tr></table>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='oben_links'></td>";
echo "<td class='oben_mitte'>$title</td>";
echo "<td align='right' class='oben_mitte'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='Bild' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "<td class='oben_rechts'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='links'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='rechts'></td></tr>";
echo "<tr>";
echo "<td class='unten_links'></td>";
echo "<td class='unten_mitte'><img src='".THEME."images/pixel.gif' title='http://cms-designs.de' alt='http://cms-designs.de'></td>";
echo "<td class='unten_rechts'></td>";
echo "</tr></table>\n";
}
function opensidey($title,$open="off") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='16'></td>";
echo "<td><img height='24' width='24' src='".IMAGES."stats.gif' alt='Bild' /></td>";
echo "<td><div align='center'><b>$title</b></div></td>";
echo "<td><img height='11' width='13' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='Bild' onclick=\"javascript:flipBox('$boxname')\" /></td>";
echo "<td width='20'></td>";
echo "</tr></table><br />";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td></td>";
echo "<td>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidey() {
echo "</div>";
echo "<td></td></tr>";
echo "<tr>";
echo "<td></td>";
echo "<td></td>";
echo "<td></td>";
echo "</tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td></td></tr></table>\n";
}
?>
Edytowane przez JazOOn dnia 15.08.2006 00:32:56
|