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

Last change on this file since 8666 was 8666, checked in by rvelices, 13 years ago

rv_gmaps feature 2102 : rename item/image/picture to photo

File size: 2.6 KB
RevLine 
[6389]1{html_head}
2<style type="text/css">
[8493]3li .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}
[8363]7.liClosed ul {ldelim}display:none;}
[6389]8</style>
9{/html_head}
10<dt>
11  {if isset($U_START_FILTER)}
[8666]12  <a href="{$U_START_FILTER}" title="{'display only recently posted photos'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a>
[6389]13  {/if}
14  {if isset($U_STOP_FILTER)}
[8666]15  <a href="{$U_STOP_FILTER}" title="{'return to the display of all photos'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
[6389]16  {/if}
[8308]17        <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
[6389]18</dt>
19<dd>
[8363]20{strip}
[6389]21{assign var='ref_level' value=0}
22{foreach from=$block->data.MENU_CATEGORIES item=cat key=key}
[7845]23        {if $cat.LEVEL > $ref_level}
[8493]24                <ul{if $ref_level == 0} class=rvTree id=theCategoryMenu{/if}>
[7845]25        {else}
[8363]26                </li>
27                {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
[7845]28        {/if}
[6389]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}
[6413]35                {if isset($U_STOP_FILTER) or isset($RVMT_UPPER_IDS[$cat.id])}
[8308]36                        {assign var=liclass value="`$liclass`liOpen"}
[6389]37                {else}
[8308]38                        {assign var=liclass value="`$liclass`liClosed"}
[6389]39                {/if}
40        {/if}
[8363]41        <li{if !empty($liclass)} class="{$liclass}"{/if}> <a href="{$cat.URL}"{if $cat.IS_UPPERCAT} rel="up"{/if}>{$cat.NAME}</a>
[7845]42                {if $cat.count_images > 0}
[8493]43                        <span{if $cat.nb_images <= 0} class=menuInfoCatByChild{/if} title="{$cat.TITLE}"> [{$cat.count_images}] </span>
[7845]44                {/if}
45                {if !empty($cat.icon_ts)}
[8363]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="(!)">
[7845]47                {/if}
48        {assign var='ref_level' value=$cat.LEVEL}
[6389]49{/foreach}
50{'</li></ul>'|@str_repeat:$ref_level}
[8363]51{/strip}
52{combine_script id='rvmt' load='async' path="plugins/`$RVMT_BASE_NAME`/js/rvtree.min.js"}
[8380]53{footer_script}
54        var _rvTreeAutoQueue = _rvTreeAutoQueue||[];
[7956]55        _rvTreeAutoQueue.push(  document.getElementById("theCategoryMenu") );
[8380]56{/footer_script}
[6389]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}
[8666]64        <p class=totalImages>{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}</p>
[6389]65</dd>
Note: See TracBrowser for help on using the repository browser.