source: extensions/floPure/menubar_categories.tpl @ 3333

Last change on this file since 3333 was 3333, checked in by flop25, 15 years ago

first commit

File size: 1.6 KB
Line 
1<dt>
2  {if isset($U_START_FILTER)}
3  <a href="{$U_START_FILTER}" title="{'start_filter_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a>
4  {/if}
5  {if isset($U_STOP_FILTER)}
6  <a href="{$U_STOP_FILTER}" title="{'stop_filter_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
7  {/if}
8        <a href="{$block->data.U_CATEGORIES}">{'Categories'|@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        {if isset($block->data.U_UPLOAD)}
32        <ul>
33                <li>
34                        <a href="{$block->data.U_UPLOAD}">{'upload_picture'|@translate}</a>
35                </li>
36        </ul>
37        {/if}
38        <p class="totalImages">{$pwg->l10n_dec('%d element', '%d elements', $block->data.NB_PICTURE)}</p>
39</dd>
Note: See TracBrowser for help on using the repository browser.