diff options
author | vdigital <vdigital@piwigo.org> | 2008-11-07 18:51:36 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2008-11-07 18:51:36 +0000 |
commit | 187196d507d4b7f593bc209fbeb6bda3779f6e32 (patch) | |
tree | 85f310fdbc80dd382a60a85136ed3be5c13bc936 /include/category_default.inc.php | |
parent | 04395a4c359dddc5c9c7fff5eb447b5ee26204db (diff) |
merge -c2840 from branch 2.0 to trunk
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.
Minor: Some format in Sylvia theme
git-svn-id: http://piwigo.org/svn/trunk@2841 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_default.inc.php')
-rw-r--r-- | include/category_default.inc.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 5ee88a275..b46b8465c 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -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']) |