source:
branches/2.4/themes/default/template/menubar_categories.tpl
@
16930
Last change on this file since 16930 was 12671, checked in by , 12 years ago | |
---|---|
|
|
File size: 1.4 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 $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 | {if !empty($cat.icon_ts)} |
25 | <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="(!)"> |
26 | {/if} |
27 | {assign var='ref_level' value=$cat.LEVEL} |
28 | {/foreach} |
29 | {'</li></ul>'|@str_repeat:$ref_level} |
30 | |
31 | <p class="totalImages">{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}</p> |
32 | </dd> |
Note: See TracBrowser
for help on using the repository browser.