aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/tidypics')
-rw-r--r--views/default/tidypics/download.php4
-rw-r--r--views/default/tidypics/hover_menu.php (renamed from views/default/tidypics/menu.php)0
-rw-r--r--views/default/tidypics/image_menu.php22
3 files changed, 22 insertions, 4 deletions
diff --git a/views/default/tidypics/download.php b/views/default/tidypics/download.php
deleted file mode 100644
index becb4b5fe..000000000
--- a/views/default/tidypics/download.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
- $file_guid = $vars['file_guid'];
-?>
-<li><a href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("image:download"); ?></a></li> \ No newline at end of file
diff --git a/views/default/tidypics/menu.php b/views/default/tidypics/hover_menu.php
index 4368993dd..4368993dd 100644
--- a/views/default/tidypics/menu.php
+++ b/views/default/tidypics/hover_menu.php
diff --git a/views/default/tidypics/image_menu.php b/views/default/tidypics/image_menu.php
new file mode 100644
index 000000000..269fcce8f
--- /dev/null
+++ b/views/default/tidypics/image_menu.php
@@ -0,0 +1,22 @@
+<?php
+
+ /**************************************************************************
+ *
+ * Tidypics Image Menu
+ *
+ * This is the menu that appears below an image. Admins can override the
+ * menu with a different view to provide a look and feel that matches
+ * their themes. The view can be extended to provide additional controls.
+ *
+ **************************************************************************/
+
+ $file_guid = $vars['file_guid'];
+?>
+<li id="start_tagging"><a id="tag_control" href="javascript:void(0)" onclick="startTagging()"><?= elgg_echo('tidypics:tagthisphoto') ?></a></li>
+<?php
+ if (get_plugin_setting('download_link', 'tidypics') != "no") {
+?>
+<li id="download_image"><a href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("image:download"); ?></a></li>
+<?php
+ }
+?> \ No newline at end of file