Chcel by som sa opýtať ako mám nataviť header v tejto téme tak aby som mohol nomralne prídavať odkazy do menu?
To je Theme.php tej témy
Spoiler: zobrazit
Kód: Vybrat vše
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
include LOCALE.LOCALESET."global.php";
define("THEME_BULLET", "");
define("THEME_WIDTH" , "990");
// theme settings
$body_text = "#ffffff";
$body_bg = "#222222";
$theme_width = "990";
$theme_height = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_page($license=false) {
global $theme_width, $settings, $locale, $theme_width_l, $theme_width_r, $body_bg;
//Header
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td class='header'></td>\n";
echo "</tr>\n</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='990' class='center'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<div class='nav'>
<div class='table'>
<ul class='select'><li><a href='/news.php'><b>Domov</b></a></li></ul>
<ul class='select'><li><a href='/downloads.php?catid=0'><b>domov</b></a></li></ul>
<ul class='select'><li><a href='/forum'><b>Domov</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='/forum'>Domov</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href=''><b>Domov</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='servery.php'>Domov</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Domov</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='/banner.php'>Domov</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Domov</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='link.php'>Domov</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Admin Team</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='/viewpage.php?page_id=3'>Hl. Server admin</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Ziadosti</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='http://pyre.sk/viewpage.php?page_id=13'>Unban ziadost</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Score system</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='http://pyre.sk/infusions/scoresystem_panel/scoresystem.php'>Tvoj Pocet bodov</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Nakup</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='http://pyre.sk/viewpage.php?page_id=18'>Steam</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Liga / Cup</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href=''>Prihlaska</a></li>
</ul>
</div>
</li>
</ul>
<ul class='select'><li><a href='#'><b>Vyhercovia</b></a>
<div class='select_sub'>
<ul class='sub'>
<li><a href='http://pyre.sk/viewpage.php?page_id=29'>Ankety</a></li></ul>
</div>
</li>
</ul>
</div>
</div>
</td></tr></table>";
echo "</tr>\n</table></table>\n";
//Content
echo "<center>";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' class='footerbg' width='".THEME_WIDTH."'>
<td class='footer'>
Powered by <a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> copyright © 2002 - 2010 by Nick Jones.<br>
Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'>GNU Affero GPL</a> v3.
Design and Code copyright © BMW M3 GTR.
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/news-left.png'></td>\n";
echo "<td class='news' width='100%'>".$subject."</td>\n";
echo "<td align='right'><img src='".THEME."/images/news-right.png'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>\n<tr>\n";
echo "<td class='news-down-left'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>\n<tr>\n";
echo "<td class='news-down-left'>Pridal: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</td>\n";
echo "<td class='news-down-right'><a href='news.php?readmore=".$info['news_id']."'><strong>Citaj cele</strong></a></td>\n";
echo "<td align='center' class='news-footer'><br />\n";
echo "</td>\n</tr>\n</table><br />\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/news-left.png'></td>\n";
echo "<td class='news' align='center' height='30'>".$subject."</td>\n";
echo "<td align='right'><img src='".THEME."/images/news-right.png'></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom:5px' class='outer-border'>\n";
echo "<tr><td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<td align='left' width='10' height='30'><img src='".THEME."/images/cap-left.png'></td>\n";
echo "<td class='capmain' align='center' height='30'>$title</td>\n";
echo "<td align='right' width='10' height='30'><img src='".THEME."/images/cap-right.png'></td>\n";
echo "</td></tr></table>\n";
echo "<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom:5px' class='outer-border'>
<tr><td>
<table cellpadding='0' cellspacing='0' width='100%'>
<td align='left' width='7' height='30'><img src='".THEME."/images/cap-left.png'></td>
<td class='capmain' align='center' height='30'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td align='right' width='7' height='30'><img src='".THEME."/images/cap-right.png'></td>
</td></tr></table>
<tr>
<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "
</td>\n
</tr>\n</table>\n";
}
?>
Ďakujem kto bi mi stím pomohol keď tak zaplatím napíšte mi PM alebo prosím pomoc od komentáru alebo keď tak skype moj skype je samko.sharky.
-- 07 úno 2014, 13:59 --
Viriešené možete //LOCK
//LOCK