source: extensions/stripped/template/menubar_categories.tpl @ 8817

Last change on this file since 8817 was 7989, checked in by Zaphod, 14 years ago

[extension] stripped - first release

File size: 1.2 KB
Line 
1<dt>
2        <a href="{$block->data.U_CATEGORIES}">{'Categories'|@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        {if isset($block->data.U_UPLOAD)}
26        <ul>
27                <li>
28                        <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a>
29                </li>
30        </ul>
31        {/if}
32        <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p>
33</dd>
Note: See TracBrowser for help on using the repository browser.