×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Smarty
Posted by: Gábor Papp
Added: Oct 3, 2016 4:26 AM
Views: 11
Tags: no tags
  1. <ul class="nav navbar-nav navbar-right">
  2.     {foreach from=$fomenu item=a}{if $a.almenu}<li class="dropdown">
  3.         <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">{$a.nev}</a>
  4.         <ul class="dropdown-menu" role="menu">
  5.             {foreach from=$a.almenu item=b}<li><a href="{$b.funkc1}">{$b.nev}</a></li>
  6.             {/foreach}
  7.         </ul>
  8.     </li>
  9.     {else}
  10.     <li><a href="{$a.funkc1}">{$a.nev}</a></li>
  11.     {/if}
  12.     {/foreach}
  13. </ul>