Jump to content

[SOLVED] How to make 2 column horizontal menu's items


Recommended Posts

fixed
jbx_menu/menu_tree.tpl

>
{if !$item.logged || ($item.logged && $menu.logged)}


   {if $menu.icons}
     {if file_exists($menu.icons_path|cat:$item.id_menu|cat:'.jpg')}

       {assign var='haveIcon' value='1'}
     {/if}
     {if file_exists($menu.icons_path|cat:$item.id_menu|cat:'.gif')}

       {assign var='haveIcon' value='1'}
     {/if}
     {if file_exists($menu.icons_path|cat:$item.id_menu|cat:'.png')}

       {assign var='haveIcon' value='1'}
     {/if}
   {/if}
    {if isset($haveIcon)}{/if}{$item.title|escape:htmlall:'UTF-8'}{if isset($haveIcon)}{/if}
   {if isset($item.numProducts) && $menu.categories_num && (!$menu.categories_zero && $item.numProducts > 0 || $menu.categories_zero)} ({$item.numProducts}){/if}

 {if $item.childrens|@count > 0}
</pre>
<ul> <!-- baslangic -->
     {foreach from=$item.childrens item=item name=menuTreeChildrens}
  {if !$smarty.foreach.menuTreeChildrens.first}      
  {if $smarty.foreach.menuTreeChildrens.index % 13 == 0}

 {/if}
 {/if}
         {include file=$menu_tpl_tree}
  {if $smarty.foreach.menuTreeChildrens.last}
  {foreach from=$item.childrens item=item name=menuTreeChildrensx}
  {if !$smarty.foreach.menuTreeChildrensx.first}      
     {if $smarty.foreach.menuTreeChildrensx.index % 13 == 0}

{/if}
{/if}
 {/foreach}
 {/if}
     {/foreach}
     <!-- bitis -->
</ul>
<br> {/if}<br><br

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...