Ignore:
Timestamp:
Nov 7, 2008, 7:51:36 PM (15 years ago)
Author:
vdigital
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_default.inc.php

    r2515 r2841  
    113113      'ICON_TS'      => get_icon($row['date_available']),
    114114      'URL'    => $url,
     115
     116   /* Fields for template-extension usage */
     117      'FILE_PATH' => $row['path'],
     118      'FILE_POSTED' => format_date($row['date_available'], 'mysql_datetime'),
     119      'FILE_CREATED' => (empty($row['date_creation'])) ?
     120        '-': format_date($row['date_creation'], 'mysql_datetime'),
     121      'FILE_DESC' => (empty($row['comment'])) ? '-' : $row['comment'],
     122      'FILE_AUTHOR' => (empty($row['author'])) ? '-' : $row['author'],
     123      'FILE_HIT' => $row['hit'],
     124      'FILE_SIZE' => (empty($row['filesize'])) ? '-' : $row['filesize'],
     125      'FILE_WIDTH' => (empty($row['width'])) ? '-' : $row['width'],
     126      'FILE_HEIGHT' => (empty($row['height'])) ? '-' : $row['height'],
     127      'FILE_METADATE' => (empty($row['date_metadata_update'])) ?
     128        '-': format_date($row['date_metadata_update'], 'mysql_datetime'),
     129      'FILE_RATE' => (empty($row['rate'])) ? '-' : $row['rate'],
     130      'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ?
     131                true:false, /* lack of include/functions_picture.inc.php */
    115132    );
    116133
Note: See TracChangeset for help on using the changeset viewer.