* fixed in kathrine template

This commit is contained in:
slawkens1 2017-05-04 18:35:00 +02:00
parent a93bd4a0fc
commit 8d7c694c61
3 changed files with 5 additions and 14 deletions

View File

@ -3,7 +3,7 @@ list[0] = 'news';
list[1] = 'account'; list[1] = 'account';
list[2] = 'community'; list[2] = 'community';
list[3] = 'library'; list[3] = 'library';
list[4] = 'about'; list[4] = 'shops';
function initMenu() function initMenu()
{ {

View File

@ -9,15 +9,13 @@
if(in_array(PAGE, array('news', 'newsarchive'))) if(in_array(PAGE, array('news', 'newsarchive')))
echo 'news'; echo 'news';
elseif(in_array(PAGE, array('creatures', 'spells', 'online', 'serverinfo', 'downloads', 'commands', elseif(in_array(PAGE, array('creatures', 'spells', 'online', 'serverinfo', 'downloads', 'commands',
'movies', 'screenshots', 'experiencetable'))) 'movies', 'screenshots', 'experiencetable', 'faq')))
echo 'library'; echo 'library';
elseif(in_array(PAGE, array('characters', 'guilds', 'highscores', 'wars', 'lastkills', 'houses', 'bans', elseif(in_array(PAGE, array('characters', 'guilds', 'highscores', 'wars', 'lastkills', 'houses', 'bans',
'forum', 'team'))) 'forum', 'team')))
echo 'community'; echo 'community';
elseif(in_array(PAGE, array('account', 'accountmanagement', 'createaccount', 'lostaccount', 'rules'))) elseif(in_array(PAGE, array('account', 'accountmanagement', 'createaccount', 'lostaccount', 'rules')))
echo 'account'; echo 'account';
elseif(in_array(PAGE, array('faq')))
echo 'about';
elseif(in_array(PAGE, array('points', 'gifts'))) elseif(in_array(PAGE, array('points', 'gifts')))
echo 'shops'; echo 'shops';
?>'; ?>';
@ -40,7 +38,6 @@
<span id="account" onclick="menuSwitch('account');" class="tab">Account</span> <span id="account" onclick="menuSwitch('account');" class="tab">Account</span>
<span id="community" onclick="menuSwitch('community');" class="tab">Community</span> <span id="community" onclick="menuSwitch('community');" class="tab">Community</span>
<span id="library" onclick="menuSwitch('library');" class="tab">Library</span> <span id="library" onclick="menuSwitch('library');" class="tab">Library</span>
<span id="about" onclick="menuSwitch('about');" class="tab">About</span>
<?php <?php
if($config['gifts_system']) if($config['gifts_system'])
{ {
@ -131,13 +128,6 @@
<span class="separator"></span> <span class="separator"></span>
<a href="<?php echo $template['link_experienceTable']; ?>">Experience Table</a> <a href="<?php echo $template['link_experienceTable']; ?>">Experience Table</a>
</div> </div>
<div id="about-submenu">
<a href="<?php echo $template['link_faq']; ?>">FAQ</a>
<!--a href="<?php echo internalLayoutLink('about'); ?>">About us</a>
<a href="<?php echo internalLayoutLink('contact'); ?>">Contact</a-->
</div>
<?php <?php
if($config['gifts_system']) if($config['gifts_system'])
{ {
@ -146,8 +136,8 @@
<a href="' . $template['link_points'] . '">Buy Premium Points</a> <a href="' . $template['link_points'] . '">Buy Premium Points</a>
<span class="separator"></span> <span class="separator"></span>
<a href="' . $template['link_gifts'] . '">Shop Offer</a>'; <a href="' . $template['link_gifts'] . '">Shop Offer</a>';
if($account_logged) if($logged)
echo '<span class="separator"></span><a href="?subtopic=shopsystem&action=show_history">Shop History</a>'; echo '<span class="separator"></span><a href="' . $template['link_gifts_history'] . '">Shop History</a>';
echo '</div>'; echo '</div>';
} }
?> ?>

View File

@ -8,6 +8,7 @@ function news_parse($title, $content, $date, $icon = 0, $author = '', $comments
$tmp = $template_path.'/images/letters/'.$content[0].'.gif'; $tmp = $template_path.'/images/letters/'.$content[0].'.gif';
if(file_exists($tmp)) { if(file_exists($tmp)) {
$firstLetter = '<img src="' . $tmp . '" alt="'.$content[0].'" BORDER=0 ALIGN=bottom>'; $firstLetter = '<img src="' . $tmp . '" alt="'.$content[0].'" BORDER=0 ALIGN=bottom>';
$content = substr($content, 1);
} }
} }