source: extensions/PaysonsPlaces/template/menubar_categories.tpl @ 11301

Revision 11301, 896 bytes checked in by tearran, 9 years ago (diff)
Line 
1<a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
2     {assign var='ref_level' value=0}
3{foreach from=$block->data.MENU_CATEGORIES item=cat}
4  {if $cat.LEVEL > $ref_level}
5   <ul class="navigation-2">
6     {else}
7    </li>
8    {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
9  {/if}
10         <li><a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
11      {if $cat.count_images > 0}
12      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
13      {/if}
14      {if !empty($cat.icon_ts)}
15      <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">
16      {/if}
17  {assign var='ref_level' value=$cat.LEVEL}
18{/foreach}
19{'</li></ul>'|@str_repeat:$ref_level}
Note: See TracBrowser for help on using the repository browser.