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">{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}</p> |
---|
26 | </dd> |
---|
Note: See
TracBrowser
for help on using the repository browser.