Changeset 1057 for trunk/picture.php


Ignore:
Timestamp:
Feb 24, 2006, 6:58:48 AM (18 years ago)
Author:
rvelices
Message:

calendar: added posted/created chronology

calendar: added a where are we bar (like: created/2005/august)

calendar: possibility to hide the All/Any buttons ($confcalendar_show_any)

calendar: possibility to display a single navigation bar instead of
several navigation bars ($confcalendar_multi_bar)

calendar: tried to simplify code and improve readability
(still requires a review)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1056 r1057  
    794794{
    795795  $val = format_date($picture['current']['date_creation']);
    796   if ( $conf['calendar_datefield'] == 'date_creation' )
    797   {
    798     $infos['INFO_CREATION_DATE'] = '<a href="'.
    799        PHPWG_ROOT_PATH.'category.php?calendar=c-'.
     796  $infos['INFO_CREATION_DATE'] = '<a href="'.
     797       PHPWG_ROOT_PATH.'category.php?calendar=created-c-'.
    800798       $picture['current']['date_creation'].'">'.$val.'</a>';
    801   }
    802   else
    803   {
    804      $infos['INFO_CREATION_DATE'] = $val;
    805   }
    806799}
    807800else
     
    812805// date of availability
    813806$val = format_date($picture['current']['date_available'], 'mysql_datetime');
    814 if ( $conf['calendar_datefield'] == 'date_available' )
    815 {
    816   $infos['INFO_AVAILABILITY_DATE'] = '<a href="'.
    817      PHPWG_ROOT_PATH.'category.php?calendar=c-'.
    818      substr($picture['current']['date_available'],0,10).'">'.$val.'</a>';
    819 }
    820 else
    821 {
    822    $infos['INFO_AVAILABILITY_DATE'] = $val;
    823 }
     807$infos['INFO_AVAILABILITY_DATE'] = '<a href="'.
     808   PHPWG_ROOT_PATH.'category.php?calendar=posted-c-'.
     809   substr($picture['current']['date_available'],0,10).'">'.$val.'</a>';
    824810
    825811// size in pixels
Note: See TracChangeset for help on using the changeset viewer.