Changeset 3171 for trunk/template


Ignore:
Timestamp:
Mar 4, 2009, 10:49:21 PM (15 years ago)
Author:
patdenice
Message:

Remove get_html_menu_category function and use smarty abilities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/menubar_categories.tpl

    r2710 r3171  
    99</dt>
    1010<dd>
    11         {$block->data.MENU_CATEGORIES_CONTENT}
     11{assign var='ref_level' value=0}
     12{foreach from=$block->data.MENU_CATEGORIES item=cat}
     13  {if $cat.LEVEL > $ref_level}
     14  <ul>
     15  {else}
     16    </li>
     17    {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
     18  {/if}
     19    <li {if $cat.SELECTED}class="selected"{/if}>
     20      <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
     21      {if $cat.count_images > 0}
     22      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
     23      {/if}
     24      {$cat.ICON_TS}
     25  {assign var='ref_level' value=$cat.LEVEL}
     26{/foreach}
     27{'</li></ul>'|@str_repeat:$ref_level}
     28
    1229        {if isset($block->data.U_UPLOAD)}
    1330        <ul>
Note: See TracChangeset for help on using the changeset viewer.