source: extensions/floOS/OS_default/template/menubar_categories.tpl @ 9120

Last change on this file since 9120 was 9120, checked in by flop25, 13 years ago

adding tiptip for icons
language code in smarty tag changed -> I hate that change !!
ready to be in PEM

File size: 1.8 KB
Line 
1{if isset($U_START_FILTER)}
2        <a href="{$U_START_FILTER}" title="{'display only recently posted images'|@translate}" rel="nofollow">
3        <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="{'return to the display of all images'|@translate}"> 
7        <img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
8{/if}
9{if isset($tab_system) && $tab_system && in_array($id, $tab_closed)}
10<dt class="titre_acordeon">
11{else}
12<dt class="titre_acordeon_0">
13{/if}
14        <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Categories'|@translate}</a>
15</dt>
16<dd>
17{assign var='ref_level' value=0}
18{foreach from=$block->data.MENU_CATEGORIES item=cat}
19  {if $cat.LEVEL > $ref_level}
20  <ul>
21  {else}
22    </li>
23    {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
24  {/if}
25    <li {if $cat.SELECTED}class="selected"{/if}>
26      <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
27      {if $cat.count_images > 0}
28      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
29      {/if}
30      {if !empty($cat.icon_ts)}
31      <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="(!)">
32      {/if}
33  {assign var='ref_level' value=$cat.LEVEL}
34{/foreach}
35{'</li></ul>'|@str_repeat:$ref_level}
36        {if isset($block->data.U_UPLOAD)}
37                <ul>
38                        <li> <a href="{$block->data.U_UPLOAD}">{'Upload_picture'|@translate}</a> </li>
39                </ul>
40        {/if}
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.