Last change
on this file since 27368 was
27368,
checked in by rvelices, 10 years ago
|
rv menu tree no more start/stop filter
|
File size:
1.5 KB
|
Line | |
---|
1 | <dt> |
---|
2 | <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a> |
---|
3 | </dt> |
---|
4 | <dd> |
---|
5 | {strip} |
---|
6 | {assign var='ref_level' value=0} |
---|
7 | {foreach from=$block->data.MENU_CATEGORIES item=cat} |
---|
8 | {if $cat.LEVEL > $ref_level} |
---|
9 | <ul{if $ref_level == 0} class=rvTree id=theCategoryMenu{/if}> |
---|
10 | {else} |
---|
11 | </li> |
---|
12 | {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)} |
---|
13 | {/if} |
---|
14 | {if $cat.SELECTED} |
---|
15 | {assign var=liclass value='selected '} |
---|
16 | {else} |
---|
17 | {assign var=liclass value=''} |
---|
18 | {/if} |
---|
19 | {if $cat.count_categories > 0} |
---|
20 | {if isset($RVMT_UPPER_IDS[$cat.id])} |
---|
21 | {assign var=liclass value="`$liclass`liOpen"} |
---|
22 | {else} |
---|
23 | {assign var=liclass value="`$liclass`liClosed"} |
---|
24 | {/if} |
---|
25 | {/if} |
---|
26 | <li{if !empty($liclass)} class="{$liclass}"{/if}> <a href="{$cat.URL}"{if $cat.IS_UPPERCAT} rel="up"{/if}>{$cat.NAME}</a> |
---|
27 | {if $cat.count_images > 0} |
---|
28 | <span{if $cat.nb_images <= 0} class=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" alt="(!)"> |
---|
32 | {/if} |
---|
33 | {assign var='ref_level' value=$cat.LEVEL} |
---|
34 | {/foreach} |
---|
35 | {'</li></ul>'|@str_repeat:$ref_level} |
---|
36 | {/strip} |
---|
37 | {combine_script id='rvmt' load='async' path="plugins/`$RVMT_BASE_NAME`/js/rvtree.min.js"} |
---|
38 | {footer_script} |
---|
39 | var _rvTreeAutoQueue = _rvTreeAutoQueue||[]; _rvTreeAutoQueue.push( document.getElementById('theCategoryMenu') ); |
---|
40 | {/footer_script} |
---|
41 | <div class=totalImages style="margin-top:4px">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</div> |
---|
42 | </dd> |
---|
Note: See
TracBrowser
for help on using the repository browser.