diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-08-11 20:50:42 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-08-11 20:50:42 +0000 |
commit | bd7608f89e6e98d05a781e546254604f1e0b8959 (patch) | |
tree | 3252fa00c7b7679ad47f5966301a5a7d26d02ae0 /views/default/object | |
parent | c017e19649bfbfdec01fdf1e7f3be815524eff90 (diff) | |
download | elgg-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.php | 9 |
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}&view=inline\" title=\"{$title}\"><img id=\"tidypics_image\" src=\"{$vars['url']}mod/tidypics/thumbnail.php?file_guid={$file_guid}&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}&view=inline\" title=\"{$title}\"><img id=\"tidypics_image\" src=\"{$vars['url']}mod/tidypics/thumbnail.php?file_guid={$file_guid}&size=large\" alt=\"{$title}\" /></a>"; + } else { + echo "<img id=\"tidypics_image\" src=\"{$vars['url']}mod/tidypics/thumbnail.php?file_guid={$file_guid}&size=large\" alt=\"{$title}\" />"; + } + ?> <div class="clearfloat"></div> </div> <?php |