From 151920ed0943568ad51bd6d9bacadcdea46fea4f Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 24 Mar 2010 00:39:34 +0000 Subject: Feature 1533: Allow activation or deactivation of download icon. Add display configuration for picture properties. git-svn-id: http://piwigo.org/svn/trunk@5304 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index 289839e7a..7bb52056e 100644 --- a/picture.php +++ b/picture.php @@ -657,10 +657,13 @@ foreach (array('first','previous','next','last', 'current') as $which_image) 'U_IMG' => add_url_params( $picture[$which_image]['url'], $slideshow_url_params), - 'U_DOWNLOAD' => @$picture['current']['download_url'], ) ) ); + if ($conf['picture_download_icon'] and !empty($picture['current']['download_url'])) + { + $template->append($which_image, array('U_DOWNLOAD' => $picture['current']['download_url']), true); + } } } @@ -918,6 +921,7 @@ $infos['INFO_VISITS'] = $picture['current']['hit']; $infos['INFO_FILE'] = $picture['current']['file']; $template->assign($infos); +$template->assign('display_info', unserialize($conf['picture_informations'])); // related tags $tags = get_common_tags( array($page['image_id']), -1); -- cgit v1.2.3