aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/admin/tidypics.php13
-rw-r--r--views/default/tidypics/forms/admin.php42
2 files changed, 55 insertions, 0 deletions
diff --git a/views/default/admin/tidypics.php b/views/default/admin/tidypics.php
new file mode 100644
index 000000000..561f3965a
--- /dev/null
+++ b/views/default/admin/tidypics.php
@@ -0,0 +1,13 @@
+<?php
+
+ global $CONFIG;
+
+
+ echo '<div class="contentWrapper">';
+
+ echo elgg_view('output/longtext', array('value' => elgg_echo("tidypics:admin:instructions")));
+
+ echo elgg_view("tidypics/forms/admin");
+
+ echo "</div>";
+?> \ No newline at end of file
diff --git a/views/default/tidypics/forms/admin.php b/views/default/tidypics/forms/admin.php
new file mode 100644
index 000000000..32e08b561
--- /dev/null
+++ b/views/default/tidypics/forms/admin.php
@@ -0,0 +1,42 @@
+<?php
+ /**
+ * Tidypics admin settings form
+ */
+
+ // to do
+ // 1. set action and code it
+ // 2. figure out how to load all values since they won't be available in $vars[] by default
+
+
+ $action = $vars['url'];// . "action/";
+
+ $image_lib = $vars['entity']->image_lib;
+ if (!$image_lib) $image_lib = 'GD';
+
+ $form_body = 'Not functional!!!!!!! <p>' . elgg_echo('tidypics:image_lib');
+
+ $form_body .= elgg_view('input/pulldown', array(
+ 'internalname' => 'params[image_lib]',
+ 'options_values' => array(
+ 'GD' => 'GD',
+ 'ImageMagick' => 'ImageMagick',
+ 'ImageMagick Cmdline' => 'ImageMagick Cmdline',
+ ),
+ 'value' => $image_lib
+ ));
+
+ $form_body .= '</p>';
+
+
+ $form_body .= "<p>" . elgg_view("input/checkboxes", array('options' => array('Enable Tagging' => true), 'internalname' => 'tagging', 'value' => ($vars['config']->tagging ? true : false) )) . "</p>";
+
+ $form_body .= "<p>" . elgg_view("input/checkboxes", array('options' => array('Enable Download Link' => true), 'internalname' => 'download', 'value' => ($vars['config']->download ? true : false) )) . "</p>";
+
+
+ $form_body .= "<p>" . elgg_echo('watermark') . "<br />";
+ $form_body .= elgg_view("input/text",array('internalname' => 'watermark', 'value' => $watermark)) . "</p>";
+
+
+ $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
+
+ echo elgg_view('input/form', array('action' => $action, 'body' => $form_body)); \ No newline at end of file