Witam.
Moja nowa strona to www.weblife.rwi.pl. Mam problem z panelem nawigacji. Ten dość nietypowy kod nawigacji "ukradłem" ze skórki "Universe" Matonora (www.matonor.de). Jednak ta nawigacja niezupełnie mnie zadawala. Nie wyświetla ona nazwy kategorii (w ep III) oraz ikonek podkategorii.
Chodzi mi mniejwięcej taki efekt:
Skuteczną pomoc nagrodze linkiem na TibiaME.pl
Z góry dziękuje
Plik theme.php:
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#F8FAFB";
$theme_width = "980";
$theme_width_l = "180";
$theme_width_r = "180";
//Enable this to show a cool CSS-based Rollover Navigation, replacing the default one temporary
$advanced_navigation = 1; //Fancy Navigation? (1=yes/0=no)
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='leftside' valign=top><img width='45' src='".THEME."images/blank.gif'></td>
<td class=topb align=center>
</td>
<td class=center>
<table width='100%' align='center' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%' height='120' class='top-t'><center><img src='".THEME."images/logo.jpg'></center></td>
</tr>
<tr>
<td><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>
</tr>
<tr>
<td class=topb align=center>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><center><table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
</tr>
<tr>
<td class='side-body' ><center><table border='0'>
<tr>
<td class='side-body' width='100%'><center>engine: <b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> <br>
<b>kasha</b> theme by: <b><a href='http://webmer.tk' target='_blank'>sonar</a> from <b><a href='http://extreme-fusion.pl' target='_blank'>EP</a></b><br>
</b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><center>
\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo " \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <b>::</b>\n"; } else { echo "\n"; }
$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>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."
</center></td>
</tr>
</table></td>
</tr>
<tr>
</tr>
</table></center>
</td>
</tr>
</table>
</td>
<td class='rightside' valign='top'><img width='45' src='".THEME."images/blank.gif'></td>
</td>
</tr>
</table>
<center><table cellpadding='0' cellspacing='0'><tr><td class='leftside' width='45'><img src='".THEME."images/leftside.gif' width='45'></td><td width='890' height='24' class='vudel-d'></td><td class='rightside' width='45'><img src='".THEME."images/rightside.gif' width='45'></td></tr></table></center>
\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td class='news-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'><img src='".THEME."images/bullet.gif'> ";
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']."'><b>".$locale['042']."</b></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;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='18' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td align='left' background='".THEME."images/border-bleft.gif' width='18'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='18' height='20' alt='' style='display:block'></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='panel-left'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td class='news-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'><img src='".THEME."images/bulletc.gif'> ";
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;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='18' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td align='left' background='".THEME."images/border-bleft.gif' width='18'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='18' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td class='table-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='18' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td align='left' background='".THEME."images/border-bleft.gif' width='18'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='18' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function openside($title) {
global $advanced_navigation, $navigation_hidden, $p_data;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>\n";
if($advanced_navigation == 1 AND $p_data['panel_filename'] == 'navigation_panel'){
$query = dbquery("SELECT * FROM `".DB_PREFIX."panels` WHERE panel_name ='".$title."'");
if(dbrows($query) != 0){
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position<='2' ORDER BY link_order");
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
echo "
<div class='side-label2'><b>".$data['link_name']."</b></div>\n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
echo "
<hr class='side-hr2'>\n";
} else {
$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='navigation'>".$data['link_name']."</a><br>\n";
} else {
echo "
<a href='".BASEDIR.$data['link_url']."'".$link_target." class='navigation'>".$data['link_name']."</a><br>\n";
}
}
}
}
echo "<div style='position: absolute; top:5px; height: 1px; width:1px; overflow:hidden;'>";
$navigation_hidden = 1;
}
}
}
function closeside() {
global $navigation_hidden , $advanced_navigation;
if($advanced_navigation == 1){
if($navigation_hidden == 1){
echo "</div>";
$navigation_hidden = 0;
}
}
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='18' height='1' alt='' style='display:block'></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td align='left' background='".THEME."images/border-bleft.gif' width='18'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='18' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td align='right' class='panel-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='18' height='31' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>\n";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">";
}
function closesidex() {
echo "</td></div>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='18' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='18' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='18' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "</td></table>\n";
}
?>
Edytowane przez Pieka dnia 04.07.2010 13:19:50
|