Jump to content

Smarty problem


wdele

Recommended Posts

Hi,

 

I'm having a problem with my template. This is the code that's not working:

 

<div id="tabs">
   <ul class="nav nav-tabs" data-tabs="tabs">
       <li id="tab1nav" class="active"><a href="#tab1" data-toggle="tab">{$LANG.information}</a></li>
       {if $modulechangepassword}<li id="tab2nav"><a href="#tab2" data-toggle="tab">{$LANG.serverchangepassword}</a></li>{/if}
       {if $downloads}<li id="tab3nav"><a href="#tab3" data-toggle="tab">{$LANG.downloadstitle}</a></li>{/if}
       <li id="tab4nav"><a href="#tab4" data-toggle="tab">{$LANG.clientareahostingaddons}</a></li>
       {if $packagesupgrade || $configoptionsupgrade || $showcancelbutton || $modulecustombuttons}<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.productmanagementactions}</a>
       {if $groupname eq 'Web Development'}<li id="tab5nav"><a href="#tab5" data-toggle="tab">CMS</a></li>{/if}
           <ul class="dropdown-menu">
               {foreach from=$modulecustombuttons key=label item=command}
               <li><a href="clientarea.php?action=productdetails&id={$id}&modop=custom&a={$command}">{$label}</a></li>
               {/foreach}
               {if $packagesupgrade}<li><a href="upgrade.php?type=package&id={$id}">{$LANG.upgradedowngradepackage}</a></li>{/if}
               {if $configoptionsupgrade}<li><a href="upgrade.php?type=configoptions&id={$id}">{$LANG.upgradedowngradeconfigoptions}</a></li>{/if}
               {if $showcancelbutton}<li><a href="clientarea.php?action=cancel&id={$id}">{$LANG.clientareacancelrequestbutton}</a></li>{/if}
               {if $groupname eq 'Hosting'}<li><a href="http://{$domain}:2083" target="cpanel">cPanel (advanced)</a></li>{/if}
           </ul>
       </li>{/if}
   </ul>
</div>

 

Everything works, except 'Management Actions' refuses to open when

$groupname eq 'Web Development'

but it does when

$groupname eq SomethingElse

 

What's the problem?

 

- - - Updated - - -

 

Update: when I remove

 

{if $groupname eq 'Web Development'}<li id="tab5nav"><a href="#tab5" data-toggle="tab">CMS</a></li>{/if}

it works again...

 

- - - Updated - - -

 

Update: after moving

 

{if $groupname eq 'Web Development'}<li id="tab5nav"><a href="#tab5" data-toggle="tab">CMS</a></li>{/if}

 

to under the

<ul>

it works. Weird.

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