Issue 0000614: Display hits under thumbnails like comments counter
- Comments are not plurial < 2 - hits and comments have specific classes for css control git-svn-id: http://piwigo.org/svn/trunk@1769 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
2f70d58b22
commit
0a2c520436
7 changed files with 61 additions and 5 deletions
|
|
@ -110,7 +110,12 @@ foreach ($pictures as $row)
|
|||
{
|
||||
$template->assign_block_vars(
|
||||
'thumbnails.line.thumbnail.nb_hits',
|
||||
array('HITS'=> l10n_dec('%d hit', '%d hits', $row['hit'])));
|
||||
array(
|
||||
'HITS'=> l10n_dec('%d hit', '%d hits', $row['hit']),
|
||||
'CLASS'=> set_span_class($row['hit']) . ' nb-hits',
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
if ($conf['show_thumbnail_caption'])
|
||||
|
|
@ -165,7 +170,12 @@ SELECT COUNT(*) AS nb_comments
|
|||
$row = mysql_fetch_array(pwg_query($query));
|
||||
$template->assign_block_vars(
|
||||
'thumbnails.line.thumbnail.nb_comments',
|
||||
array('NB_COMMENTS'=>$row['nb_comments']));
|
||||
array(
|
||||
'NB_COMMENTS'=> l10n_dec('%d comment', '%d comments',
|
||||
$row['nb_comments']),
|
||||
'CLASS'=> set_span_class($row['nb_comments']) . ' nb-comments',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
//plugins need to add/modify sth in this loop ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue