Line | |
---|
1 | {* $ menubar_categories.tpl 2010-04-03 Par Gotcha pour son thème "Sobre" $ *} |
---|
2 | <dt> |
---|
3 | {* |
---|
4 | {if isset($U_START_FILTER)} |
---|
5 | <a href="{$U_START_FILTER}" title="{'display only recently posted images'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a> |
---|
6 | {/if} |
---|
7 | {if isset($U_STOP_FILTER)} |
---|
8 | <a href="{$U_STOP_FILTER}" title="{'return to the display of all images'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a> |
---|
9 | {/if} |
---|
10 | *} |
---|
11 | |
---|
12 | <a href="{$block->data.U_CATEGORIES}">{'Categories'|@translate}</a> |
---|
13 | </dt> |
---|
14 | <dd> |
---|
15 | {assign var='ref_level' value=0} |
---|
16 | {foreach from=$block->data.MENU_CATEGORIES item=cat} |
---|
17 | {if $cat.LEVEL > $ref_level} |
---|
18 | <ul> |
---|
19 | {else} |
---|
20 | </li> |
---|
21 | {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} |
---|
22 | {/if} |
---|
23 | <li {if $cat.SELECTED}class="selected"{/if}> |
---|
24 | <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a> |
---|
25 | {if $cat.count_images > 0} |
---|
26 | <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span> |
---|
27 | {/if} |
---|
28 | {if !empty($cat.icon_ts)} |
---|
29 | <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="(!)"> |
---|
30 | {/if} |
---|
31 | {if isset($block->data.U_UPLOAD)} |
---|
32 | <li> |
---|
33 | <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a> |
---|
34 | </li> |
---|
35 | {/if} |
---|
36 | {assign var='ref_level' value=$cat.LEVEL} |
---|
37 | {/foreach} |
---|
38 | {'</li></ul>'|@str_repeat:$ref_level} |
---|
39 | |
---|
40 | |
---|
41 | <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p> |
---|
42 | </dd> |
---|
Note: See
TracBrowser
for help on using the repository browser.