Permalink
Browse files

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
  • Loading branch information...
1 parent 0626700 commit 0c5cdf28e80a3f7c05beef06628a47fd70d59e9f Zaphod committed Apr 20, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 themes/default/template/mainpage_categories.tpl
  2. +1 −1 themes/default/template/thumbnails.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}">
@@ -34,7 +34,7 @@
</span>
{if $SHOW_THUMBNAIL_CAPTION }
<span class="thumbLegend">
- {$thumbnail.NAME}
+ <span class="thumbName">{$thumbnail.NAME}</span>
{if !empty($thumbnail.icon_ts)}
<img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
{/if}

0 comments on commit 0c5cdf2

Please sign in to comment.