aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-17 21:32:14 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-17 21:32:14 +0000
commit3b796bc5b923899cfec2f81ff9f811a02260a071 (patch)
tree8ab604f605d1ce7771538f2522f80ba3177eee92 /views/default/object
parentd253222f742b74b8fd232fa39c81c6f39e9d6b9a (diff)
downloadelgg-3b796bc5b923899cfec2f81ff9f811a02260a071.tar.gz
elgg-3b796bc5b923899cfec2f81ff9f811a02260a071.tar.bz2
cleaning up some views
moved image controls to separate view so it easier for plugins to extend tidypics
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 0da55f795..f64942b61 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -167,17 +167,13 @@ if ($photo_tags) {
<div class="clearfloat"></div>
</div>
- <div id="tidypics_controls">
- <ul>
- <li><a id="tag_control" href="javascript:void(0)" onclick="startTagging()"><?= elgg_echo('tidypics:tagthisphoto') ?></a></li>
- <?php
- if(get_plugin_setting('download_link', 'tidypics') == "yes") {
- echo elgg_view('tidypics/download', array('file_guid' => $file_guid,) );
- }
- ?>
- </ul>
- </div>
-<?php
+<?php
+ // image menu (start tagging, download, etc.)
+ echo '<div id="tidypics_controls"><ul>';
+ echo elgg_view('tidypics/image_menu', array('file_guid' => $file_guid,) );
+ echo '</ul></div>';
+
+ // tagging code
echo elgg_view('tidypics/tagging', array( 'photo_tags' => $photo_tags,
'links' => $photo_tag_links,
'photo_tags_json' => $photo_tags_json,