aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-06 20:14:42 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-06 20:14:42 +0000
commit8ef053df0c982c2e2ffddc04a89b578ec36ec969 (patch)
treef066d2d74be913dcde347b4f26babf8aab2afe4a /views
parentb1ec29e1f220e64a6b2ac73d95b847b0b9033a9d (diff)
downloadelgg-8ef053df0c982c2e2ffddc04a89b578ec36ec969.tar.gz
elgg-8ef053df0c982c2e2ffddc04a89b578ec36ec969.tar.bz2
added admin setting for exif
Diffstat (limited to 'views')
-rw-r--r--views/default/object/image.php3
-rw-r--r--views/default/tidypics/forms/admin.php5
2 files changed, 8 insertions, 0 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 5787bb39f..21ee3ff1d 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -187,6 +187,8 @@ if ($photo_tags) {
'owner' => $owner, ) );
}
+
+ if (get_plugin_setting('exif', 'tidypics') != "disabled") {
?>
<div id="tidypics_breadcrumbs">
<?php
@@ -194,6 +196,7 @@ if ($photo_tags) {
if($exif) echo $exif;
?>
</div>
+<?php } ?>
<div id="tidypics_info">
<?php if (!is_null($tags)) { ?>
<div class="object_tag_string"><?php echo elgg_view('output/tags',array('value' => $tags));?></div>
diff --git a/views/default/tidypics/forms/admin.php b/views/default/tidypics/forms/admin.php
index c5e7c68d0..d4c9e1b5b 100644
--- a/views/default/tidypics/forms/admin.php
+++ b/views/default/tidypics/forms/admin.php
@@ -45,6 +45,11 @@
if(!$download_link) $download_link = "enabled";
$form_body .= '<p class="admin_debug">' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:download_link') => 'enabled'), 'internalname' => 'download_link', 'value' => $download_link )) . "</p>";
+ // Show EXIF
+ $exif = $plugin->exif;
+ if(!$exif) $exif = "disabled";
+ $form_body .= '<p class="admin_debug">' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:exif') => 'enabled'), 'internalname' => 'exif', 'value' => $exif )) . "</p>";
+
// Watermark Text
$form_body .= "<p>" . elgg_echo('tidypics:settings:watermark') . "<br />";
$form_body .= elgg_view("input/text",array('internalname' => 'params[watermark_text]', 'value' => $plugin->watermark_text)) . "</p>";