Line | |
---|
1 | <span class="dd_wrapper">{'Categories'|@translate}</span> |
---|
2 | |
---|
3 | <div class="sub" style="width:700px"> |
---|
4 | {assign var='ref_level' value=0} |
---|
5 | <div id="menu_cat_act"> |
---|
6 | <div id="nbImg"> |
---|
7 | <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p> |
---|
8 | </div> |
---|
9 | <div id="filter"> |
---|
10 | {if isset($U_START_FILTER)} |
---|
11 | <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter " title="{'display only recently posted photos'|@translate}" rel="nofollow"> |
---|
12 | <span class="pwg-icon pwg-icon-filter"> </span> |
---|
13 | </a> |
---|
14 | {/if} |
---|
15 | {if isset($U_STOP_FILTER)} |
---|
16 | <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span |
---|
17 | class="pwg-icon pwg-icon-filter-del"> </span></a> |
---|
18 | {/if} |
---|
19 | </div> |
---|
20 | |
---|
21 | </div> |
---|
22 | |
---|
23 | |
---|
24 | {foreach from=$block->data.MENU_CATEGORIES item=cat} |
---|
25 | {if $cat.LEVEL > $ref_level} |
---|
26 | <ul class="mcol"> |
---|
27 | {else} |
---|
28 | |
---|
29 | </li> |
---|
30 | {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} |
---|
31 | {/if} |
---|
32 | <li {if $cat.SELECTED}class="selected"{/if}class="level{$cat.LEVEL}"> |
---|
33 | <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME} [{$cat.count_images}] </a> |
---|
34 | {assign var='ref_level' value=$cat.LEVEL} |
---|
35 | {/foreach} |
---|
36 | {'</li></ul>'|@str_repeat:$ref_level} |
---|
37 | |
---|
38 | {if isset($block->data.U_UPLOAD)} |
---|
39 | |
---|
40 | <ul> |
---|
41 | |
---|
42 | <li> |
---|
43 | <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a> |
---|
44 | </li> |
---|
45 | |
---|
46 | </ul> |
---|
47 | |
---|
48 | {/if} |
---|
49 | </div> |
---|
50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.