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

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

first commit : update for 2.1 and higher
Integrating spreadmenu directly IN the theme

File size: 1.7 KB
Line 
1{if isset($U_START_FILTER)}
2        <a href="{$U_START_FILTER}" title="{'start_filter_hint'|@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="{'stop_filter_hint'|@translate}">     
7        <img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
8{/if}
9<dt class="{$tab_cat}titre_acordeon_0">
10        <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Categories'|@translate}</a>
11</dt>
12<dd>
13{assign var='ref_level' value=0}
14{foreach from=$block->data.MENU_CATEGORIES item=cat}
15  {if $cat.LEVEL > $ref_level}
16  <ul>
17  {else}
18    </li>
19    {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
20  {/if}
21    <li {if $cat.SELECTED}class="selected"{/if}>
22      <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
23      {if $cat.count_images > 0}
24      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
25      {/if}
26      {if !empty($cat.icon_ts)}
27      <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="(!)">
28      {/if}
29  {assign var='ref_level' value=$cat.LEVEL}
30{/foreach}
31{'</li></ul>'|@str_repeat:$ref_level}
32        {if isset($block->data.U_UPLOAD)}
33                <ul>
34                        <li> <a href="{$block->data.U_UPLOAD}">{'Upload_picture'|@translate}</a> </li>
35                </ul>
36        {/if}
37        <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p>
38</dd>
Note: See TracBrowser for help on using the repository browser.