From ab73295294ea499b7988e585a9f203053e54c76a Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 23 Oct 2004 10:31:12 +0000 Subject: search links in picture informations : author, date_available, date_creation git-svn-id: http://piwigo.org/svn/trunk@576 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 46 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/picture.php b/picture.php index 94bba0c0c..1816aaffc 100644 --- a/picture.php +++ b/picture.php @@ -583,30 +583,56 @@ if (isset($picture['current']['comment']) )); } - // author if ( !empty($picture['current']['author']) ) { + $search_url = PHPWG_ROOT_PATH.'category.php?cat=search'; + $search_url.= '&search=author:'.$picture['current']['author']; + + $value = ''.$picture['current']['author'].''; + $template->assign_block_vars( 'info_line', array( 'INFO'=>$lang['author'], - 'VALUE'=>$picture['current']['author'] + 'VALUE'=>$value )); } // creation date if ( !empty($picture['current']['date_creation']) ) { - $template->assign_block_vars('info_line', array( - 'INFO'=>$lang['creation_date'], - 'VALUE'=>format_date( $picture['current']['date_creation'] ) - )); + $search_url = PHPWG_ROOT_PATH.'category.php?cat=search'; + $search_url.= '&search='; + $search_url.= 'date_creation:'.$picture['current']['date_creation']; + + $value = ''.format_date($picture['current']['date_creation']).''; + + $template->assign_block_vars( + 'info_line', + array( + 'INFO'=>$lang['creation_date'], + 'VALUE'=>$value + )); } // date of availability -$template->assign_block_vars('info_line', array( - 'INFO'=>$lang['registration_date'], - 'VALUE'=>format_date( $picture['current']['date_available'] ) - )); +$search_url = PHPWG_ROOT_PATH.'category.php?cat=search'; +$search_url.= '&search='; +$search_url.= 'date_available:'.$picture['current']['date_available']; + +$value = ''.format_date($picture['current']['date_available']).''; + +$template->assign_block_vars( + 'info_line', + array( + 'INFO'=>$lang['registration_date'], + 'VALUE'=>$value + )); // size in pixels if ($picture['current']['is_picture']) { -- cgit v1.2.3