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:
plegall
2011-08-26 11:02:11 +00:00
parent cba3e53a04
commit 5861549e51
2 changed files with 53 additions and 14 deletions
+7 -2
View File
@@ -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;