source: extensions/Versa/template/menubar_categories.tpl @ 32191

Last change on this file since 32191 was 31833, checked in by lexming, 7 years ago

Initial commit

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1<dt>
2        {if isset($U_START_FILTER)}
3        <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"><span class="pwg-icon pwg-icon-filter"> </span></a>
4        {/if}
5        {if isset($U_STOP_FILTER)}
6        <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span class="pwg-icon pwg-icon-filter-del"> </span></a>
7        {/if}
8        <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
9</dt>
10<dd>
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 !empty($cat.icon_ts)}
22      &nbsp;<i class="fa fa-exclamation-circle" aria-hidden="true"></i>
23      {/if}
24  {assign var='ref_level' value=$cat.LEVEL}
25{/foreach}
26{'</li></ul>'|@str_repeat:$ref_level}
27
28        <p class="totalImages">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</p>
29</dd>
Note: See TracBrowser for help on using the repository browser.