Jump to content

[SOLVED] missing menu in template


denully

Recommended Posts

Hey

 

on http://www.kazi-networks.com you can see the menu in the top.

I used to have that on https://eco.kazi-networks.com/clientarea.php as well, which is the whmcs part. But since the last update it has been missing and i have simply run out of idea's on what to try.

 

to call the menu, im using the {if $language == English } and {elseif $language == Danish }

 

{if $language == English }       
<ul id="menu-main-menu" class="sf-menu"><li id="menu-item-612" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-612"><a href="http://www.kazi-networks.com">Home</a></li>
<li id="menu-item-1160" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1160"><a href="http://www.kazi-networks.com/news">News</a></li>
<li id="menu-item-1188" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1188"><a href="/clientarea.php">Services</a>
<ul class="sub-menu">
<li id="menu-item-1376" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1376"><a href="http://www.kazi-networks.com/domains">Domains</a></li>
<li id="menu-item-1063" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1063"><a href="http://www.kazi-networks.com/hosting">Hosting</a>
<ul class="sub-menu">
	<li id="menu-item-1534" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1534"><a href="http://www.kazi-networks.com/backup">Backup</a></li>
</ul>
</li> .............

down to the danish one that starts:

{elseif $language == Danish }  
<ul id="menu-main-menu" class="sf-menu"><li id="menu-item-612" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-612"><a href="http://www.kazi-networks.com/dk/">Hjem</a></li>
<li id="menu-item-1160" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1160"><a href="http://www.kazi-networks.com/dk/nyheder">Nyheder</a></li>
<li id="menu-item-1188" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1188"><a href="/clientarea.php?language=Danish">Produkter</a>
<ul class="sub-menu">
<li id="menu-item-1376" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1376"><a href="http://www.kazi-networks.com/dk/domaener">Domæner</a></li>
<li id="menu-item-1063" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1063"><a href="http://www.kazi-networks.com/dk/hosting">Hosting</a>
<ul class="sub-menu">
	<li id="menu-item-1534" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1534"><a href="http://www.kazi-networks.com/dk/backup">Backup</a></li>
</ul>
</li>...............

 

it ends with a {/if} of course.

 

any suggestions on why it stopped working ? i'm assuming {if $language == English } is still a valid command ?

 

p.s the menu's have been copied directly from the wordpress page and into the header.tpl , thats why the class is a bit wacky :) but it used to work like that.

Edited by denully
found the solution
Link to comment
Share on other sites

so many hours and not i find the solution....

 

something as simple has writing English with small = english and so on for the rest of the languages...

:P some times i hate using hours and hours on something so simple hehe.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated