aboutsummaryrefslogtreecommitdiff
path: root/views/default/photos/tagging/tag.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-28 23:08:10 +0200
committerSem <sembrestels@riseup.net>2012-07-28 23:08:10 +0200
commit12a88208acec40e190b0729887e28c9d9add26c3 (patch)
tree3f141ee1ba6b8495280335b637e99bb376144139 /views/default/photos/tagging/tag.php
parent534c8b15a7c11035cf918e983c82efa3bea567a9 (diff)
downloadelgg-12a88208acec40e190b0729887e28c9d9add26c3.tar.gz
elgg-12a88208acec40e190b0729887e28c9d9add26c3.tar.bz2
Removed photo-tagging feature.
Diffstat (limited to 'views/default/photos/tagging/tag.php')
-rw-r--r--views/default/photos/tagging/tag.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/views/default/photos/tagging/tag.php b/views/default/photos/tagging/tag.php
deleted file mode 100644
index 6bdc0db02..000000000
--- a/views/default/photos/tagging/tag.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
- * Photo tag view
- *
- * @uses $vars['tag'] Tag object
- *
- * @author Cash Costello
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
- */
-
-$coords = json_decode('{' . $vars['tag']->coords . '}');
-
-$attributes = elgg_format_attributes(array(
- 'class' => 'tidypics-tag',
- 'data-x1' => $coords->x1,
- 'data-y1' => $coords->y1,
- 'data-width' => $coords->width,
- 'data-height' => $coords->height,
-));
-
-if ($vars['tag']->type == 'user') {
- $user = get_entity($vars['tag']->value);
- $label = elgg_view('output/url', array(
- 'text' => $user->name,
- 'href' => $user->getURL(),
- ));
-} else {
- $label = $vars['tag']->value;
-}
-
-$delete = '';
-$annotation = elgg_get_annotation_from_id($vars['tag']->annotation_id);
-
-if ($annotation->canEdit()) {
- $url = elgg_http_add_url_query_elements('action/photos/image/untag', array(
- 'annotation_id' => $vars['tag']->annotation_id
- ));
- $delete = elgg_view('output/confirmlink', array(
- 'href' => $url,
- 'text' => elgg_view_icon('delete', 'float mas'),
- 'confirm' => elgg_echo('tidypics:phototagging:delete:confirm')
- ));
-}
-
-echo <<<HTML
-<div class="tidypics-tag-wrapper">
- <div $attributes>$delete</div>
- <div class="elgg-module-popup tidypics-tag-label">$label</div>
-</div>
-HTML;