source: extensions/rv_menutree/trunk/template/rv_menutree_categories.tpl @ 25972

Last change on this file since 25972 was 25972, checked in by rvelices, 10 years ago

rv_menutree 2.6

File size: 2.0 KB
Line 
1<dt>
2        {if isset($U_START_FILTER)}
3        <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"><span class="pwg-icon pwg-icon-filter"> </span></a>
4        {/if}
5        {if isset($U_STOP_FILTER)}
6        <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span class="pwg-icon pwg-icon-filter-del"> </span></a>
7        {/if}
8        <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
9</dt>
10<dd>
11{strip}
12{assign var='ref_level' value=0}
13{foreach from=$block->data.MENU_CATEGORIES item=cat key=key}
14        {if $cat.LEVEL > $ref_level}
15                <ul{if $ref_level == 0} class=rvTree id=theCategoryMenu{/if}>
16        {else}
17                </li>
18                {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)}
19        {/if}
20        {if $cat.SELECTED}
21                {assign var=liclass value='selected '}
22        {else}
23                {assign var=liclass value=''}
24        {/if}
25        {if $cat.count_categories > 0}
26                {if isset($U_STOP_FILTER) or isset($RVMT_UPPER_IDS[$cat.id])}
27                        {assign var=liclass value="`$liclass`liOpen"}
28                {else}
29                        {assign var=liclass value="`$liclass`liClosed"}
30                {/if}
31        {/if}
32        <li{if !empty($liclass)} class="{$liclass}"{/if}> <a href="{$cat.URL}"{if $cat.IS_UPPERCAT} rel="up"{/if}>{$cat.NAME}</a>
33                {if $cat.count_images > 0}
34                        <span{if $cat.nb_images <= 0} class=menuInfoCatByChild{/if} title="{$cat.TITLE}"> [{$cat.count_images}] </span>
35                {/if}
36                {if !empty($cat.icon_ts)}
37                        <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)">
38                {/if}
39        {assign var='ref_level' value=$cat.LEVEL}
40{/foreach}
41{'</li></ul>'|@str_repeat:$ref_level}
42{/strip}
43{combine_script id='rvmt' load='async' path="plugins/`$RVMT_BASE_NAME`/js/rvtree.min.js"}
44{footer_script}
45var _rvTreeAutoQueue = _rvTreeAutoQueue||[]; _rvTreeAutoQueue.push(  document.getElementById('theCategoryMenu') );
46{/footer_script}
47        <div class=totalImages style="margin-top:4px">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</div>
48</dd>
Note: See TracBrowser for help on using the repository browser.