]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
make the download link on the image itself respect the 'download link' setting in...
authorGreg Froese <greg.froese@gmail.com>
Tue, 11 Aug 2009 20:50:42 +0000 (20:50 +0000)
committerGreg Froese <greg.froese@gmail.com>
Tue, 11 Aug 2009 20:50:42 +0000 (20:50 +0000)
views/default/object/image.php

index dc77c41cae110461c2722cf633c5fe3515fda3d7..8ca20e75a87c21339fc670397537bd7bebf4a4a7 100644 (file)
@@ -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