1 | {html_head} |
---|
2 | <style type="text/css"> |
---|
3 | li .bullet {ldelim}padding-left:14px;margin-left:0;background:url({$ROOT_URL}plugins/{$RVMT_BASE_NAME}/img/bpm.gif) no-repeat scroll;} |
---|
4 | .liOpen .bullet {ldelim}cursor:pointer;background-position:-38px center;} |
---|
5 | .liClosed .bullet {ldelim}cursor:pointer;background-position:-19px center;} |
---|
6 | .liBullet .bullet {ldelim}cursor:default;background-position:0 center;} |
---|
7 | .liClosed ul {ldelim}display:none;} |
---|
8 | </style> |
---|
9 | {/html_head} |
---|
10 | <dt> |
---|
11 | {if isset($U_START_FILTER)} |
---|
12 | <a href="{$U_START_FILTER}" title="{'display only recently posted images'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a> |
---|
13 | {/if} |
---|
14 | {if isset($U_STOP_FILTER)} |
---|
15 | <a href="{$U_STOP_FILTER}" title="{'return to the display of all images'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a> |
---|
16 | {/if} |
---|
17 | <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a> |
---|
18 | </dt> |
---|
19 | <dd> |
---|
20 | {strip} |
---|
21 | {assign var='ref_level' value=0} |
---|
22 | {foreach from=$block->data.MENU_CATEGORIES item=cat key=key} |
---|
23 | {if $cat.LEVEL > $ref_level} |
---|
24 | <ul{if $ref_level == 0} class="rvTree" id="theCategoryMenu"{/if}> |
---|
25 | {else} |
---|
26 | </li> |
---|
27 | {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} |
---|
28 | {/if} |
---|
29 | {if $cat.SELECTED} |
---|
30 | {assign var=liclass value='selected '} |
---|
31 | {else} |
---|
32 | {assign var=liclass value=''} |
---|
33 | {/if} |
---|
34 | {if $cat.count_categories > 0} |
---|
35 | {if isset($U_STOP_FILTER) or isset($RVMT_UPPER_IDS[$cat.id])} |
---|
36 | {assign var=liclass value="`$liclass`liOpen"} |
---|
37 | {else} |
---|
38 | {assign var=liclass value="`$liclass`liClosed"} |
---|
39 | {/if} |
---|
40 | {/if} |
---|
41 | <li{if !empty($liclass)} class="{$liclass}"{/if}> <a href="{$cat.URL}"{if $cat.IS_UPPERCAT} rel="up"{/if}>{$cat.NAME}</a> |
---|
42 | {if $cat.count_images > 0} |
---|
43 | <span{if $cat.nb_images <= 0} class="menuInfoCatByChild"{/if} title="{$cat.TITLE}"> [{$cat.count_images}] </span> |
---|
44 | {/if} |
---|
45 | {if !empty($cat.icon_ts)} |
---|
46 | <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="(!)"> |
---|
47 | {/if} |
---|
48 | {assign var='ref_level' value=$cat.LEVEL} |
---|
49 | {/foreach} |
---|
50 | {'</li></ul>'|@str_repeat:$ref_level} |
---|
51 | {/strip} |
---|
52 | {combine_script id='rvmt' load='async' path="plugins/`$RVMT_BASE_NAME`/js/rvtree.min.js"} |
---|
53 | {footer_script} |
---|
54 | var _rvTreeAutoQueue = _rvTreeAutoQueue||[]; |
---|
55 | _rvTreeAutoQueue.push( document.getElementById("theCategoryMenu") ); |
---|
56 | {/footer_script} |
---|
57 | {if isset($block->data.U_UPLOAD)} |
---|
58 | <ul> |
---|
59 | <li> |
---|
60 | <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a> |
---|
61 | </li> |
---|
62 | </ul> |
---|
63 | {/if} |
---|
64 | <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p> |
---|
65 | </dd> |
---|