summaryrefslogtreecommitdiff
path: root/modules/photoannotation/views/admin_photoannotation.html.php
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2011-07-23 17:00:38 +0000
committerNathan Kinkade <nath@nkinka.de>2011-07-23 17:00:38 +0000
commit4ac3be445ebb041a503bbd2999f5d08dbc9a8578 (patch)
tree1df13bcd5f0d435c13b2404cf5909a26b39c499a /modules/photoannotation/views/admin_photoannotation.html.php
parent4fdb50685b9d805cbb4ba1eb3287e4d8191b7838 (diff)
Added a new module for annotating photos.
Diffstat (limited to 'modules/photoannotation/views/admin_photoannotation.html.php')
-rw-r--r--modules/photoannotation/views/admin_photoannotation.html.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/photoannotation/views/admin_photoannotation.html.php b/modules/photoannotation/views/admin_photoannotation.html.php
new file mode 100644
index 00000000..8c059194
--- /dev/null
+++ b/modules/photoannotation/views/admin_photoannotation.html.php
@@ -0,0 +1,30 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<div id="g-admin-photoannotation">
+ <h1><?= t("Photo annotation administration") ?></h1>
+ <h3><?= t("Notes:") ?></h3>
+ <p><?= t("This module is partially compatible with the <a href=\"%url\">TagFaces module</a> by rWatcher.<br />
+ This means that notes and faces that you create in either one will be shown and are editable by the other module as well. If you added users to an annotation area though they will only be displayed with the Photo Annotation module.<br />
+ You cannot have both active at the same time.", array("tagfaces" => "http://codex.gallery2.org/Gallery3:Modules:tagfaces")) ?>
+ <br /><br /><?= t("<a href=\"%url\">Convert existing tag annotations to user annotations</a>", array("url" => url::site("admin/photoannotation/converter/"))) ?>
+ <br /><?= t("<a href=\"%url\">Check for orphaned annotations</a>", array("url" => url::site("admin/photoannotation/tagsmaintanance/"))) ?></p>
+ <?= $form ?>
+</div>
+<script type="text/javascript">
+ $("input[name='bordercolor'], input[name='clickablehovercolor'], input[name='hovercolor']").ColorPicker({
+ onSubmit: function(hsb, hex, rgb, el) {
+ $(el).val(hex);
+ $(el).ColorPickerHide();
+ },
+ onBeforeShow: function () {
+ $(this).ColorPickerSetColor(this.value);
+ }
+ })
+ .bind('keyup', function(){
+ $(this).ColorPickerSetColor(this.value);
+ });
+ <? if (!module::is_active("comment")): ?>
+ $(document).ready(function(){
+ $("input[name='newcommentsubject'], input[name='updatedcommentsubject'], textarea[name='newcommentbody'], textarea[name='updatedcommentbody']").attr("disabled", true);
+ });
+ <? endif ?>
+</script>