aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-10-23 10:31:12 +0000
committerz0rglub <z0rglub@piwigo.org>2004-10-23 10:31:12 +0000
commitab73295294ea499b7988e585a9f203053e54c76a (patch)
tree91cef20074a70d7095a8dc530a00f19bab1ec2ee
parent3fc15b1cb31ad1017f8d18d76b4f91268dfc120c (diff)
search links in picture informations : author, date_available, date_creation
git-svn-id: http://piwigo.org/svn/trunk@576 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php46
1 files 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.= '&amp;search=author:'.$picture['current']['author'];
+
+ $value = '<a href="';
+ $value.= add_session_id($search_url);
+ $value.= '">'.$picture['current']['author'].'</a>';
+
$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.= '&amp;search=';
+ $search_url.= 'date_creation:'.$picture['current']['date_creation'];
+
+ $value = '<a href="';
+ $value.= add_session_id($search_url);
+ $value.= '">'.format_date($picture['current']['date_creation']).'</a>';
+
+ $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.= '&amp;search=';
+$search_url.= 'date_available:'.$picture['current']['date_available'];
+
+$value = '<a href="';
+$value.= add_session_id($search_url);
+$value.= '">'.format_date($picture['current']['date_available']).'</a>';
+
+$template->assign_block_vars(
+ 'info_line',
+ array(
+ 'INFO'=>$lang['registration_date'],
+ 'VALUE'=>$value
+ ));
// size in pixels
if ($picture['current']['is_picture'])
{