diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-02-24 05:58:48 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-02-24 05:58:48 +0000 |
commit | d4646f39d2259d4b4ba619b8f2b8aa61f9be74b5 (patch) | |
tree | 5e79d1234e3981ba449a6a9f85fd0c76565ba308 /picture.php | |
parent | 3aff4f0bfec650d7a080b919b299ddcf6fc6ee59 (diff) |
calendar: added posted/created chronology
calendar: added a where are we bar (like: created/2005/august)
calendar: possibility to hide the All/Any buttons ($conf['calendar_show_any'])
calendar: possibility to display a single navigation bar instead of
several navigation bars ($conf['calendar_multi_bar'])
calendar: tried to simplify code and improve readability
(still requires a review)
git-svn-id: http://piwigo.org/svn/trunk@1057 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r-- | picture.php | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/picture.php b/picture.php index 000af4caf..2ae8e01b9 100644 --- a/picture.php +++ b/picture.php @@ -793,16 +793,9 @@ else if (!empty($picture['current']['date_creation'])) { $val = format_date($picture['current']['date_creation']); - if ( $conf['calendar_datefield'] == 'date_creation' ) - { - $infos['INFO_CREATION_DATE'] = '<a href="'. - PHPWG_ROOT_PATH.'category.php?calendar=c-'. + $infos['INFO_CREATION_DATE'] = '<a href="'. + PHPWG_ROOT_PATH.'category.php?calendar=created-c-'. $picture['current']['date_creation'].'">'.$val.'</a>'; - } - else - { - $infos['INFO_CREATION_DATE'] = $val; - } } else { @@ -811,16 +804,9 @@ else // date of availability $val = format_date($picture['current']['date_available'], 'mysql_datetime'); -if ( $conf['calendar_datefield'] == 'date_available' ) -{ - $infos['INFO_AVAILABILITY_DATE'] = '<a href="'. - PHPWG_ROOT_PATH.'category.php?calendar=c-'. - substr($picture['current']['date_available'],0,10).'">'.$val.'</a>'; -} -else -{ - $infos['INFO_AVAILABILITY_DATE'] = $val; -} +$infos['INFO_AVAILABILITY_DATE'] = '<a href="'. + PHPWG_ROOT_PATH.'category.php?calendar=posted-c-'. + substr($picture['current']['date_available'],0,10).'">'.$val.'</a>'; // size in pixels if ($picture['current']['is_picture']) |