aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/menubar_categories.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-03-11 17:25:26 +0000
committerpatdenice <patdenice@piwigo.org>2009-03-11 17:25:26 +0000
commit36d0da30d307cd821413ccb8ea1ccc68de1d8538 (patch)
treee94b6f52d4657cecc5f7340526a467f095b684a3 /template/yoga/menubar_categories.tpl
parent1516e8833f3a73b1dc4b73e7fa7d3c36bc25c0b4 (diff)
Move get_icon function.
git-svn-id: http://piwigo.org/svn/trunk@3188 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/menubar_categories.tpl')
-rw-r--r--template/yoga/menubar_categories.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/yoga/menubar_categories.tpl b/template/yoga/menubar_categories.tpl
index d650c49b9..0dbb22b77 100644
--- a/template/yoga/menubar_categories.tpl
+++ b/template/yoga/menubar_categories.tpl
@@ -21,7 +21,9 @@
{if $cat.count_images > 0}
<span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
{/if}
- {$cat.ICON_TS}
+ {if !empty($cat.icon_ts)}
+ <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="(!)" />
+ {/if}
{assign var='ref_level' value=$cat.LEVEL}
{/foreach}
{'</li></ul>'|@str_repeat:$ref_level}