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
This commit is contained in:
parent
3aff4f0bfe
commit
d4646f39d2
9 changed files with 392 additions and 259 deletions
24
picture.php
24
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'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue