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 +++++++++++++++++++++++++++++++++++++++-- views/default/tidypics/css.php | 43 +++++- 2 files changed, 342 insertions(+), 10 deletions(-) (limited to 'views/default') 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 diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php index 6559ec5be..0f5b8baeb 100644 --- a/views/default/tidypics/css.php +++ b/views/default/tidypics/css.php @@ -23,6 +23,18 @@ margin-bottom:10px; margin:10px; } +#tidypics_controls ul { +list-style:none; +margin:0px; +padding:8px; +} + +#tidypics_controls ul li { +padding:2px 10px 2px 22px; +margin:2px 0px; +display:inline; +} +/* .tidypics_download a { font:12px/100% Arial, Helvetica, sans-serif; font-weight:bold; @@ -43,7 +55,7 @@ background:#0054a7; color:white; text-decoration:none; } - +*/ .tidypics_album_images { float:left; width:153px; @@ -147,4 +159,33 @@ padding:0 0 5px; } .river_object_album_comment { background: url(_graphics/river_icons/river_icon_comment.gif) no-repeat left -1px; +} + +/* ----------- tagging ---------------- */ +#tagging_instructions { +background:#FFFBE2 none repeat scroll 0 0; +border:1px solid #FFE222; +margin:10px; +padding:10px; +display:none; +} + +#cont-image { +margin:0px auto; +background:white none repeat scroll 0 0; +border:1px solid #DDDDDD; +padding:10px; +overflow:hidden; +} + +#cont-menu { +border:1px solid #3B5999; +width:200px; +position:absolute; +z-index:10000; +display:none; +background:#fff; +padding:5px; +font-size:12px; +text-align:left; } \ No newline at end of file -- cgit v1.2.3