diff options
author | Zaphod <zaphod@piwigo.org> | 2012-04-20 20:17:38 +0000 |
---|---|---|
committer | Zaphod <zaphod@piwigo.org> | 2012-04-20 20:17:38 +0000 |
commit | 0c5cdf28e80a3f7c05beef06628a47fd70d59e9f (patch) | |
tree | 47e75e200bc82d8f58a03cbb74283615c563e3a2 /themes/default/template/mainpage_categories.tpl | |
parent | 0626700cbb938694ede7350a903e105c126213fe (diff) |
feature 2588: new classes to help css personalization.
- on mainpage_categories.tpl
New classes odd & even on .thumbnailCategories LI
- on thumbnails.tpl
class thumbName for $thumbnail.NAME
(if someone wants to hide the thumbnail name, and not the nb comments or hits)
git-svn-id: http://piwigo.org/svn/trunk@14239 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/template/mainpage_categories.tpl')
-rw-r--r-- | themes/default/template/mainpage_categories.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/template/mainpage_categories.tpl b/themes/default/template/mainpage_categories.tpl index f4ff8f264..11dce56b8 100644 --- a/themes/default/template/mainpage_categories.tpl +++ b/themes/default/template/mainpage_categories.tpl @@ -8,8 +8,8 @@ } {/html_style}{/strip} <ul class="thumbnailCategories"> -{foreach from=$category_thumbnails item=cat} - <li> +{foreach from=$category_thumbnails item=cat name=cat_loop} + <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> <div class="thumbnailCategory"> <div class="illustration"> <a href="{$cat.URL}"> |