mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 11:43:01 +02:00
Issue 0000614: Display hits under thumbnails like comments counter
git-svn-id: http://piwigo.org/svn/trunk@1763 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'])
|
||||
{
|
||||
|
||||
@@ -161,6 +161,10 @@ $conf['tn_height'] = 128;
|
||||
// bottom of each page ?
|
||||
$conf['show_version'] = true;
|
||||
|
||||
// show_nb_hits : Show hits count under thumbnails
|
||||
// false = never... true = depending on profile...
|
||||
$conf['show_nb_hits'] = false;
|
||||
|
||||
// links : list of external links to add in the menu. An example is the best
|
||||
// than a long explanation :
|
||||
//
|
||||
|
||||
@@ -160,6 +160,7 @@ function build_user( $user_id, $use_cache )
|
||||
$user['recent_period'] = $conf['recent_period'];
|
||||
$user['expand'] = $conf['auto_expand'];
|
||||
$user['show_nb_comments'] = $conf['show_nb_comments'];
|
||||
$user['show_nb_hits'] = $conf['show_nb_hits'];
|
||||
$user['enabled_high'] = $conf['newuser_default_enabled_high'];
|
||||
}
|
||||
else
|
||||
@@ -775,6 +776,7 @@ function create_user_infos($user_id)
|
||||
'recent_period' => $conf['recent_period'],
|
||||
'expand' => boolean_to_string($conf['auto_expand']),
|
||||
'show_nb_comments' => boolean_to_string($conf['show_nb_comments']),
|
||||
'show_nb_hits' => boolean_to_string($conf['show_nb_hits']),
|
||||
'maxwidth' => $conf['default_maxwidth'],
|
||||
'maxheight' => $conf['default_maxheight'],
|
||||
'registration_date' => $dbnow,
|
||||
|
||||
Reference in New Issue
Block a user