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

Last change on this file since 13049 was 13049, checked in by rvelices, 12 years ago

rv_menutree compatible with 2.4

File size: 2.4 KB
Line 
1{html_style}
2li .bullet{ldelim}padding-left:14px;margin-left:0;background:url({$ROOT_URL}plugins/{$RVMT_BASE_NAME}/img/bpm.gif) no-repeat scroll}
3.liOpen .bullet{ldelim}cursor:pointer;background-position:-38px center}
4.liClosed .bullet{ldelim}cursor:pointer;background-position:-19px center}
5.liBullet .bullet{ldelim}cursor:default;background-position:0 center}
6.liClosed ul{ldelim}display:none}
7{/html_style}
8<dt>
9        {if isset($U_START_FILTER)}
10        <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>
11        {/if}
12        {if isset($U_STOP_FILTER)}
13        <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>
14        {/if}
15        <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
16</dt>
17<dd>
18{strip}
19{assign var='ref_level' value=0}
20{foreach from=$block->data.MENU_CATEGORIES item=cat key=key}
21        {if $cat.LEVEL > $ref_level}
22                <ul{if $ref_level == 0} class=rvTree id=theCategoryMenu{/if}>
23        {else}
24                </li>
25                {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
26        {/if}
27        {if $cat.SELECTED}
28                {assign var=liclass value='selected '}
29        {else}
30                {assign var=liclass value=''}
31        {/if}
32        {if $cat.count_categories > 0}
33                {if isset($U_STOP_FILTER) or isset($RVMT_UPPER_IDS[$cat.id])}
34                        {assign var=liclass value="`$liclass`liOpen"}
35                {else}
36                        {assign var=liclass value="`$liclass`liClosed"}
37                {/if}
38        {/if}
39        <li{if !empty($liclass)} class="{$liclass}"{/if}> <a href="{$cat.URL}"{if $cat.IS_UPPERCAT} rel="up"{/if}>{$cat.NAME}</a>
40                {if $cat.count_images > 0}
41                        <span{if $cat.nb_images <= 0} class=menuInfoCatByChild{/if} title="{$cat.TITLE}"> [{$cat.count_images}] </span>
42                {/if}
43                {if !empty($cat.icon_ts)}
44                        <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="(!)">
45                {/if}
46        {assign var='ref_level' value=$cat.LEVEL}
47{/foreach}
48{'</li></ul>'|@str_repeat:$ref_level}
49{/strip}
50{combine_script id='rvmt' load='async' path="plugins/`$RVMT_BASE_NAME`/js/rvtree.min.js"}
51{footer_script}
52var _rvTreeAutoQueue = _rvTreeAutoQueue||[]; _rvTreeAutoQueue.push(  document.getElementById('theCategoryMenu') );
53{/footer_script}
54        <p class=totalImages>{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}</p>
55</dd>
Note: See TracBrowser for help on using the repository browser.