mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
feature 1729: rewrite function get_thumbnail_title to provide a complete tooltip
to the template file. It include the name of the photo, details such as number of visits, number of comments, rating score, and the description. git-svn-id: http://piwigo.org/svn/trunk@11996 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -104,6 +104,11 @@ foreach ($pictures as $row)
|
||||
array('start')
|
||||
);
|
||||
|
||||
if (isset($nb_comments_of) )
|
||||
{
|
||||
$row['nb_comments'] = (int)@$nb_comments_of[$row['id']];
|
||||
}
|
||||
|
||||
$tpl_var =
|
||||
array(
|
||||
'ID' => $row['id'],
|
||||
@@ -166,9 +171,9 @@ foreach ($pictures as $row)
|
||||
|
||||
$tpl_var['NAME'] = $name;
|
||||
|
||||
if ( isset($nb_comments_of) )
|
||||
if (isset($row['nb_comments']))
|
||||
{
|
||||
$tpl_var['NB_COMMENTS'] = (int)@$nb_comments_of[$row['id']];
|
||||
$tpl_var['NB_COMMENTS'] = $row['nb_comments'];
|
||||
}
|
||||
|
||||
$tpl_thumbnails_var[] = $tpl_var;
|
||||
|
||||
Reference in New Issue
Block a user