New: Extend of available fields within a category page for a template-extension simple usage.

Refer to topic: "Smoothgallery plugin" where no plugin is requested to do it.

git-svn-id: http://piwigo.org/svn/branches/2.0@2840 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
vdigital
2008-11-07 18:48:38 +00:00
parent 2f586c6791
commit ee8b8bb9cc
2 changed files with 30 additions and 13 deletions
+17
View File
@@ -112,6 +112,23 @@ foreach ($pictures as $row)
'TN_TITLE' => get_thumbnail_title($row),
'ICON_TS' => get_icon($row['date_available']),
'URL' => $url,
/* Fields for template-extension usage */
'FILE_PATH' => $row['path'],
'FILE_POSTED' => format_date($row['date_available'], 'mysql_datetime'),
'FILE_CREATED' => (empty($row['date_creation'])) ?
'-': format_date($row['date_creation'], 'mysql_datetime'),
'FILE_DESC' => (empty($row['comment'])) ? '-' : $row['comment'],
'FILE_AUTHOR' => (empty($row['author'])) ? '-' : $row['author'],
'FILE_HIT' => $row['hit'],
'FILE_SIZE' => (empty($row['filesize'])) ? '-' : $row['filesize'],
'FILE_WIDTH' => (empty($row['width'])) ? '-' : $row['width'],
'FILE_HEIGHT' => (empty($row['height'])) ? '-' : $row['height'],
'FILE_METADATE' => (empty($row['date_metadata_update'])) ?
'-': format_date($row['date_metadata_update'], 'mysql_datetime'),
'FILE_RATE' => (empty($row['rate'])) ? '-' : $row['rate'],
'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ?
true:false, /* lack of include/functions_picture.inc.php */
);
if ($user['show_nb_hits'])