From 74f7d6c4109851a83a2310900ac15e29e4254aea Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 1 Apr 2009 12:00:19 +0000 Subject: The first part of Pedro's tagging code --- views/default/object/image.php | 309 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 300 insertions(+), 9 deletions(-) (limited to 'views/default/object') diff --git a/views/default/object/image.php b/views/default/object/image.php index 3aa9bab8e..e4401a950 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -81,16 +81,147 @@ echo '
' . autop($desc) . '
'; echo '
'; echo '
' . $back . $next . '
'; - if ($next) echo ''; - echo '' . $title . ''; - if ($next) echo ''; - echo '
'; ?> -
-

-
+
+ + + + + + + +
+
+ +getGUID(), false, 'user', '', 0); -
+?> +
+
+"; + $content .= ""; + + $content .= " +
+ +
"; + + echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'form-phototagging', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/phototagging", 'body' => $content)) +?> +
+value); + + + if($data_tag->type == 'user') + $data_tag->data = get_entity($data_tag->value); + else + $data_tag->data = $data_tag->value; + + echo "
"; + if($data_tag->type == 'user') + echo "{$data_tag->data->name}"; + else + echo "{$data_tag->data}"; + echo ""; + echo "
"; +}else +{ + echo "
"; +} + + if ($next) + $click = "onclick='toggleLink()'"; + + echo '' . $title . ''; + +?> +
+ +
+ +
+ +
+ + +
+

+ +
+ + + +
@@ -107,4 +238,164 @@ } } // end of tidypics image display -?> \ No newline at end of file +?> + + + + \ No newline at end of file -- cgit v1.2.3