Changeset 7845


Ignore:
Timestamp:
Nov 22, 2010, 9:37:21 PM (13 years ago)
Author:
rvelices
Message:

rv menutree small template change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_menutree/trunk/template/rv_menutree_categories.tpl

    r7814 r7845  
    2020{assign var='ref_level' value=0}
    2121{foreach from=$block->data.MENU_CATEGORIES item=cat key=key}
    22   {if $cat.LEVEL > $ref_level}
    23           {if $ref_level == 0}
    24                   <ul class="rvTree" id="theCategoryMenu">
     22        {if $cat.LEVEL > $ref_level}
     23                {if $ref_level == 0}
     24                        <ul class="rvTree" id="theCategoryMenu">
    2525                {else}
    26                   <ul>
     26                        <ul>
    2727                {/if}
    28   {else}
    29     </li>
    30     {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
    31   {/if}
     28        {else}
     29        </li>
     30        {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
     31        {/if}
    3232        {if $cat.SELECTED}
    3333                {assign var=liclass value='selected '}
     
    4242                {/if}
    4343        {/if}
    44     <li {if !empty($liclass)}class="{$liclass}"{/if}>
    45       <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
    46       {if $cat.count_images > 0}
    47       <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
    48       {/if}
    49       {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="(!)">
    51       {/if}
    52   {assign var='ref_level' value=$cat.LEVEL}
     44        <li{if !empty($liclass)} class="{$liclass}"{/if}>
     45                <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if}>{$cat.NAME}</a>
     46                {if $cat.count_images > 0}
     47                <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
     48                {/if}
     49                {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="(!)">
     51                {/if}
     52        {assign var='ref_level' value=$cat.LEVEL}
    5353{/foreach}
    5454{'</li></ul>'|@str_repeat:$ref_level}
Note: See TracChangeset for help on using the changeset viewer.