source: extensions/stripped_responsive/template/menubar_categories.tpl

Last change on this file was 29449, checked in by JanisV, 10 years ago

Initial commit

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1<dt>
2        <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
3</dt>
4<dd>
5{assign var='ref_level' value=0}
6{foreach from=$block->data.MENU_CATEGORIES item=cat}
7  {if $cat.LEVEL > $ref_level}
8  <ul>
9  {else}
10    </li>
11    {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)}
12  {/if}
13    <li {if $cat.SELECTED}class="selected"{/if}>
14      <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
15      {if !empty($cat.icon_ts)}
16      <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="(!)">
17      {/if}
18      {if $cat.count_images > 0}
19      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
20      {/if}
21  {assign var='ref_level' value=$cat.LEVEL}
22{/foreach}
23{'</li></ul>'|@str_repeat:$ref_level}
24
25        <p class="totalImages">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</p>
26</dd>
Note: See TracBrowser for help on using the repository browser.