From d3e6eabb053f311d5d8fd4ec80cfb0c1b32cf141 Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 4 Mar 2009 21:49:21 +0000 Subject: Remove get_html_menu_category function and use smarty abilities. git-svn-id: http://piwigo.org/svn/trunk@3171 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/menubar_categories.tpl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/yoga/menubar_categories.tpl b/template/yoga/menubar_categories.tpl index 221a6d709..d650c49b9 100644 --- a/template/yoga/menubar_categories.tpl +++ b/template/yoga/menubar_categories.tpl @@ -8,7 +8,24 @@ {'Categories'|@translate}
- {$block->data.MENU_CATEGORIES_CONTENT} +{assign var='ref_level' value=0} +{foreach from=$block->data.MENU_CATEGORIES item=cat} + {if $cat.LEVEL > $ref_level} + '|@str_repeat:$ref_level-$cat.LEVEL} + {/if} +
  • + {$cat.NAME} + {if $cat.count_images > 0} + [{$cat.count_images}] + {/if} + {$cat.ICON_TS} + {assign var='ref_level' value=$cat.LEVEL} +{/foreach} +{'
  • '|@str_repeat:$ref_level} + {if isset($block->data.U_UPLOAD)}