| 11 | | {assign var='ref_level' value=0} |
| 12 | | {foreach from=$block->data.MENU_CATEGORIES item=cat} |
| 13 | | {if $cat.LEVEL > $ref_level} |
| 14 | | <ul> |
| 15 | | {else} |
| 16 | | </li> |
| 17 | | {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} |
| 18 | | {/if} |
| 19 | | <li {if $cat.SELECTED}class="selected"{/if}> |
| 20 | | <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a> |
| 21 | | {if $cat.count_images > 0} |
| 22 | | <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span> |
| 23 | | {/if} |
| 24 | | {if !empty($cat.icon_ts)} |
| 25 | | <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="(!)"> |
| 26 | | {/if} |
| 27 | | {assign var='ref_level' value=$cat.LEVEL} |
| 28 | | {/foreach} |
| 29 | | {'</li></ul>'|@str_repeat:$ref_level} |
| 30 | | |
| | 11 | {$block->data.MENU_CATEGORIES_CONTENT} |