aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-03-24 00:39:34 +0000
committerpatdenice <patdenice@piwigo.org>2010-03-24 00:39:34 +0000
commit151920ed0943568ad51bd6d9bacadcdea46fea4f (patch)
tree1af7e76fe85079e485a9eedc19d8daaefab27243 /picture.php
parent8802877a844a9604072dd2ebbfddc668d53a12d2 (diff)
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
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php6
1 files changed, 5 insertions, 1 deletions
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);