aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-16 01:39:32 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-16 01:39:32 +0000
commitb4b85ecc55a6787726627150a2ee93fd960ff2c6 (patch)
tree35e8e30305355b72c011c26597eec75759cc4b17 /views/default/object
parentde4945a1bb1b627a530048c7dece50805d06f1ee (diff)
downloadelgg-b4b85ecc55a6787726627150a2ee93fd960ff2c6.tar.gz
elgg-b4b85ecc55a6787726627150a2ee93fd960ff2c6.tar.bz2
added delete phototags capability
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 64109f1a2..1ab2e921a 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -47,6 +47,7 @@ if ($photo_tags) {
$photo_tags_json .= '{' . $photo_tag->coords . ',"text":"' . $phototag_text . '","id":"' . $p->id . '"},';
$photo_tag_links[] = array($p->id, $phototag_text); // gave up on associative array for now
+ $photo_tag_texts[$p->id] = $phototag_text;
}
$photo_tags_json = rtrim($photo_tags_json,',');
$photo_tags_json .= ']';
@@ -184,16 +185,19 @@ if ($photo_tags) {
</div>
<?php
// image menu (start tagging, download, etc.)
+
echo '<div id="tidypics_controls"><ul>';
echo elgg_view('tidypics/image_menu', array('file_guid' => $file_guid,
'viewer' => $viewer,
- 'owner' => $owner,) );
+ 'owner' => $owner,
+ 'anytags' => $photo_tags != '',) );
echo '</ul></div>';
// tagging code
if (get_plugin_setting('tagging', 'tidypics') != "disabled") {
echo elgg_view('tidypics/tagging', array( 'photo_tags' => $photo_tags,
'links' => $photo_tag_links,
+ 'text' => $photo_tag_texts,
'photo_tags_json' => $photo_tags_json,
'file_guid' => $file_guid,
'viewer' => $viewer,