diff options
author | cash <cash.costello@gmail.com> | 2012-01-02 12:45:16 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2012-01-02 12:45:16 -0500 |
commit | 20ab73de5248b3418bbbad27850e3d3e093c473c (patch) | |
tree | cf15a58ad857fbaa4f9b2521c5a7d17ed619f303 /views/default/photos | |
parent | 86535f77d6b32a2c8a403609ded299a76c73bba0 (diff) | |
download | elgg-20ab73de5248b3418bbbad27850e3d3e093c473c.tar.gz elgg-20ab73de5248b3418bbbad27850e3d3e093c473c.tar.bz2 |
added photo tagging - but not displaying or deleting tags yet
Diffstat (limited to 'views/default/photos')
-rw-r--r-- | views/default/photos/css.php | 56 | ||||
-rw-r--r-- | views/default/photos/tagging/help.php | 19 | ||||
-rw-r--r-- | views/default/photos/tagging/select.php | 16 |
3 files changed, 88 insertions, 3 deletions
diff --git a/views/default/photos/css.php b/views/default/photos/css.php index 18f225131..31e3d9b53 100644 --- a/views/default/photos/css.php +++ b/views/default/photos/css.php @@ -1,9 +1,15 @@ <?php - /** - * tidypics CSS extender - */ +/** + * Tidypics CSS + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ ?> +/* *************************************** + TIDYPICS +*************************************** */ .elgg-module-tidypics-album, .elgg-module-tidypics-image { width: 161px; @@ -23,6 +29,10 @@ display: block; } +.tidypics-wrapper-photo { + position: relative; +} + .tidypics-heading { color: #0054A7; } @@ -66,6 +76,46 @@ 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; +} + <?php return true; ?> diff --git a/views/default/photos/tagging/help.php b/views/default/photos/tagging/help.php new file mode 100644 index 000000000..a7f437e51 --- /dev/null +++ b/views/default/photos/tagging/help.php @@ -0,0 +1,19 @@ +<?php +/** + * Instructions on how to peform photo tagging + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +$button = elgg_view('output/url', array( + 'text' => elgg_echo('quit'), + 'href' => '#', + 'id' => 'tidypics-tagging-quit', +)); + +$instructions = elgg_echo('tidypics:taginstruct', array($button)); +?> +<div id="tidypics-tagging-help" class="elgg-module elgg-module-popup tidypics-tagging-help pam hidden"> + <?php echo $instructions; ?> +</div> diff --git a/views/default/photos/tagging/select.php b/views/default/photos/tagging/select.php new file mode 100644 index 000000000..8894af63a --- /dev/null +++ b/views/default/photos/tagging/select.php @@ -0,0 +1,16 @@ +<?php +/** + * Tag select view + * + * @uses $vars['entity'] + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +$body = elgg_view_form('photos/image/tag', array(), $vars); + +echo elgg_view_module('popup', elgg_echo('tidypics:tagthisphoto'), $body, array( + 'class' => 'tidypics-tagging-select pam hidden', + 'id' => 'tidypics-tagging-select', +)); |