From 12a88208acec40e190b0729887e28c9d9add26c3 Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 28 Jul 2012 23:08:10 +0200 Subject: Removed photo-tagging feature. --- views/default/photos/css.php | 79 --------------------------------- views/default/photos/tagging/help.php | 19 -------- views/default/photos/tagging/select.php | 16 ------- views/default/photos/tagging/tag.php | 50 --------------------- views/default/photos/tagging/tags.php | 14 ------ 5 files changed, 178 deletions(-) delete mode 100644 views/default/photos/tagging/help.php delete mode 100644 views/default/photos/tagging/select.php delete mode 100644 views/default/photos/tagging/tag.php delete mode 100644 views/default/photos/tagging/tags.php (limited to 'views/default/photos') diff --git a/views/default/photos/css.php b/views/default/photos/css.php index 2290e1f9a..ee411dcf3 100644 --- a/views/default/photos/css.php +++ b/views/default/photos/css.php @@ -70,85 +70,6 @@ vertical-align: top; } -/* *************************************** - Tagging -*************************************** */ -.tidypics-tagging-border1 { - border: solid 2px white; -} - -.tidypics-tagging-border1, .tidypics-tagging-border2, -.tidypics-tagging-border3, .tidypics-tagging-border4 { - filter: alpha(opacity=50); - opacity: 0.5; -} - -.tidypics-tagging-handle { - background-color: #fff; - border: solid 1px #000; - filter: alpha(opacity=50); - opacity: 0.5; -} - -.tidypics-tagging-outer { - background-color: #000; - filter: alpha(opacity=50); - opacity: 0.5; -} - -.tidypics-tagging-help { - position: absolute; - left: 50%; - top: -25px; - width: 250px; - margin-left: -125px; - text-align: center; -} - -.tidypics-tagging-select { - position: absolute; - max-width: 300px; -} - -.tidypics-tag-wrapper { - display: none; - position: absolute; -} - -.tidypics-tag { - border: 2px solid white; - clear: both; -} - -.tidypics-tag-label { - float: left; - margin-top: 5px; - color: #666; -} - -/* *************************************** - Tagging -*************************************** */ -#tidypics_uploader { - position:relative; - width:400px; - min-height:20px; -} - -#tidypics_choose_button { - position:absolute; - top:0; - left:0; - z-index:0; - display:block; - float:left; -} - -#tidypics_flash_uploader { - position:relative; - z-index:100; -} - /* *************************************** AJAX UPLOADER *************************************** */ diff --git a/views/default/photos/tagging/help.php b/views/default/photos/tagging/help.php deleted file mode 100644 index a7f437e51..000000000 --- a/views/default/photos/tagging/help.php +++ /dev/null @@ -1,19 +0,0 @@ - elgg_echo('quit'), - 'href' => '#', - 'id' => 'tidypics-tagging-quit', -)); - -$instructions = elgg_echo('tidypics:taginstruct', array($button)); -?> - diff --git a/views/default/photos/tagging/select.php b/views/default/photos/tagging/select.php deleted file mode 100644 index 8894af63a..000000000 --- a/views/default/photos/tagging/select.php +++ /dev/null @@ -1,16 +0,0 @@ - 'tidypics-tagging-select pam hidden', - 'id' => 'tidypics-tagging-select', -)); 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 @@ -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 << -
$delete
-
$label
- -HTML; diff --git a/views/default/photos/tagging/tags.php b/views/default/photos/tagging/tags.php deleted file mode 100644 index 29c9d0efb..000000000 --- a/views/default/photos/tagging/tags.php +++ /dev/null @@ -1,14 +0,0 @@ -getPhotoTags(); -foreach ($tags as $tag) { - echo elgg_view('photos/tagging/tag', array('tag' => $tag)); -} -- cgit v1.2.3