aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-01-28 20:56:10 +0000
committervdigital <vdigital@piwigo.org>2007-01-28 20:56:10 +0000
commit7ee3f5579aab21257d236e6f8aa853cd639ff460 (patch)
treee13479319990abbe9f96366bef547708f8766c38 /include/category_default.inc.php
parent7709c4189cadfcfc56c97fd5cd47df06033b6429 (diff)
Issue 0000614: Display hits under thumbnails like comments counter
git-svn-id: http://piwigo.org/svn/trunk@1763 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/category_default.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 8422fcf13..db8091c3e 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -104,6 +104,14 @@ foreach ($pictures as $row)
'CLASS' => 'thumbElmt',
)
);
+ if ($user['show_nb_hits']
+ and isset($page['category'])
+ and $conf['show_nb_hits'])
+ {
+ $template->assign_block_vars(
+ 'thumbnails.line.thumbnail.nb_hits',
+ array('HITS'=> l10n_dec('%d hit', '%d hits', $row['hit'])));
+ }
if ($conf['show_thumbnail_caption'])
{