Changeset 8363
- Timestamp:
- Dec 28, 2010, 8:00:56 PM (13 years ago)
- Location:
- extensions/rv_menutree/trunk
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_menutree/trunk/template/rv_menutree_categories.tpl
r8308 r8363 1 1 {html_head} 2 2 <style type="text/css"> 3 /*.rvTree */li .bullet {ldelim}padding-left:14px;margin-left:0;background:url({$ROOT_URL}plugins/{$RVMT_BASE_NAME}/img/bpm.gif) no-repeat scroll;}4 /*.rvTree */.liOpen .bullet {ldelim}cursor:pointer;background-position:-38px center;}5 /*.rvTree */.liClosed .bullet {ldelim}cursor:pointer;background-position:-19px center;}6 /*.rvTree */.liBullet .bullet {ldelim}cursor:default;background-position:0 center;}7 /*.rvTree */.liClosed ul {ldelim}display:none;}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 8 </style> 9 9 {/html_head} … … 18 18 </dt> 19 19 <dd> 20 {strip} 20 21 {assign var='ref_level' value=0} 21 22 {foreach from=$block->data.MENU_CATEGORIES item=cat key=key} 22 23 {if $cat.LEVEL > $ref_level} 23 {if $ref_level == 0} 24 <ul class="rvTree" id="theCategoryMenu"> 25 {else} 26 <ul> 27 {/if} 24 <ul{if $ref_level == 0} class="rvTree" id="theCategoryMenu"{/if}> 28 25 {else} 29 </li>30 {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}26 </li> 27 {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} 31 28 {/if} 32 29 {if $cat.SELECTED} … … 42 39 {/if} 43 40 {/if} 44 <li{if !empty($liclass)} class="{$liclass}"{/if}> 45 <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if}>{$cat.NAME}</a> 41 <li{if !empty($liclass)} class="{$liclass}"{/if}> <a href="{$cat.URL}"{if $cat.IS_UPPERCAT} rel="up"{/if}>{$cat.NAME}</a> 46 42 {if $cat.count_images > 0} 47 <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>43 <span{if $cat.nb_images <= 0} class="menuInfoCatByChild"{/if} title="{$cat.TITLE}"> [{$cat.count_images}] </span> 48 44 {/if} 49 45 {if !empty($cat.icon_ts)} 50 <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">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="(!)"> 51 47 {/if} 52 48 {assign var='ref_level' value=$cat.LEVEL} 53 49 {/foreach} 54 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"} 55 53 <script type="text/javascript"> 56 54 var _rvTreeAutoQueue = _rvTreeAutoQueue || []; 57 55 _rvTreeAutoQueue.push( document.getElementById("theCategoryMenu") ); 58 (function () {ldelim}59 var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '{$ROOT_URL}plugins/{$RVMT_BASE_NAME}/js/rvtree.min.js';60 var s0 = document.getElementsByTagName('script')[0]; s0.parentNode.insertBefore(s, s0);61 })();62 56 </script> 63 57 {if isset($block->data.U_UPLOAD)}
Note: See TracChangeset
for help on using the changeset viewer.