aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-08-11 20:50:42 +0000
committerGreg Froese <greg.froese@gmail.com>2009-08-11 20:50:42 +0000
commitbd7608f89e6e98d05a781e546254604f1e0b8959 (patch)
tree3252fa00c7b7679ad47f5966301a5a7d26d02ae0 /views/default/object
parentc017e19649bfbfdec01fdf1e7f3be815524eff90 (diff)
downloadelgg-bd7608f89e6e98d05a781e546254604f1e0b8959.tar.gz
elgg-bd7608f89e6e98d05a781e546254604f1e0b8959.tar.bz2
make the download link on the image itself respect the 'download link' setting in admin settings
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index dc77c41ca..8ca20e75a 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -202,8 +202,13 @@ if ($photo_tags) {
</ul>
</div>
<div id="tidypics_image_wrapper">
- <?php echo "<a href=\"{$vars['url']}action/tidypics/download?file_guid={$file_guid}&amp;view=inline\" title=\"{$title}\"><img id=\"tidypics_image\" src=\"{$vars['url']}mod/tidypics/thumbnail.php?file_guid={$file_guid}&amp;size=large\" alt=\"{$title}\" /></a>"; ?>
-
+ <?php
+ if (get_plugin_setting('download_link', 'tidypics') != "disabled") {
+ echo "<a href=\"{$vars['url']}action/tidypics/download?file_guid={$file_guid}&amp;view=inline\" title=\"{$title}\"><img id=\"tidypics_image\" src=\"{$vars['url']}mod/tidypics/thumbnail.php?file_guid={$file_guid}&amp;size=large\" alt=\"{$title}\" /></a>";
+ } else {
+ echo "<img id=\"tidypics_image\" src=\"{$vars['url']}mod/tidypics/thumbnail.php?file_guid={$file_guid}&amp;size=large\" alt=\"{$title}\" />";
+ }
+ ?>
<div class="clearfloat"></div>
</div>
<?php