From fbdaf2a33386e6746be4de50a0b4aceb06ff5e68 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 2 Jan 2012 14:34:58 -0500 Subject: displaying the tag on the photo but not a label for the tag --- views/default/photos/css.php | 6 ++++++ views/default/photos/tagging/tag.php | 24 ++++++++++++++++++++++++ views/default/photos/tagging/tags.php | 11 +++++++++++ 3 files changed, 41 insertions(+) create mode 100644 views/default/photos/tagging/tag.php create 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 31e3d9b53..23926adbc 100644 --- a/views/default/photos/css.php +++ b/views/default/photos/css.php @@ -116,6 +116,12 @@ max-width: 300px; } +.tidypics-tag { + display: none; + position: absolute; + border: 2px solid white; +} + diff --git a/views/default/photos/tagging/tag.php b/views/default/photos/tagging/tag.php new file mode 100644 index 000000000..4d3affeb6 --- /dev/null +++ b/views/default/photos/tagging/tag.php @@ -0,0 +1,24 @@ +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, +)); + +//var_dump($vars['tag']); +//$text = "This is a something"; + +echo << + +HTML; diff --git a/views/default/photos/tagging/tags.php b/views/default/photos/tagging/tags.php new file mode 100644 index 000000000..7a4aa3a59 --- /dev/null +++ b/views/default/photos/tagging/tags.php @@ -0,0 +1,11 @@ +getPhotoTags(); +foreach ($tags as $tag) { + echo elgg_view('photos/tagging/tag', array('tag' => $tag)); +} -- cgit v1.2.3