aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template
diff options
context:
space:
mode:
authorZaphod <zaphod@piwigo.org>2012-04-20 20:17:38 +0000
committerZaphod <zaphod@piwigo.org>2012-04-20 20:17:38 +0000
commit0c5cdf28e80a3f7c05beef06628a47fd70d59e9f (patch)
tree47e75e200bc82d8f58a03cbb74283615c563e3a2 /themes/default/template
parent0626700cbb938694ede7350a903e105c126213fe (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')
-rw-r--r--themes/default/template/mainpage_categories.tpl4
-rw-r--r--themes/default/template/thumbnails.tpl2
2 files changed, 3 insertions, 3 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}">
diff --git a/themes/default/template/thumbnails.tpl b/themes/default/template/thumbnails.tpl
index 942a5888d..476ec5ef3 100644
--- a/themes/default/template/thumbnails.tpl
+++ b/themes/default/template/thumbnails.tpl
@@ -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}