diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-05-22 12:14:27 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-05-22 12:14:27 +0000 |
commit | 029ae9fcba086a1cce25e496c9de2593df212bdb (patch) | |
tree | 833c778980ef053a098b30a0ad5df5f9ea86318f /views | |
parent | c607a2424cec501051b27ce5c1606df5b602231f (diff) | |
download | elgg-029ae9fcba086a1cce25e496c9de2593df212bdb.tar.gz elgg-029ae9fcba086a1cce25e496c9de2593df212bdb.tar.bz2 |
loading plugin settings on admin settings page
Diffstat (limited to 'views')
-rw-r--r-- | views/default/tidypics/forms/admin.php | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/views/default/tidypics/forms/admin.php b/views/default/tidypics/forms/admin.php index 32e08b561..8006cc69f 100644 --- a/views/default/tidypics/forms/admin.php +++ b/views/default/tidypics/forms/admin.php @@ -5,16 +5,19 @@ // 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
+ // 2. add language strings
+ // 3. clean up and organize
$action = $vars['url'];// . "action/";
- $image_lib = $vars['entity']->image_lib;
+ $plugin = find_plugin_settings('tidypics');
+
+ $image_lib = $plugin->image_lib;
if (!$image_lib) $image_lib = 'GD';
- $form_body = 'Not functional!!!!!!! <p>' . elgg_echo('tidypics:image_lib');
-
+ // Image Library
+ $form_body = 'Not functional!!!!!!! <p>' . elgg_echo('tidypics:settings:image_lib');
$form_body .= elgg_view('input/pulldown', array(
'internalname' => 'params[image_lib]',
'options_values' => array(
@@ -24,17 +27,24 @@ ),
'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>";
+ // Tagging
+ $form_body .= '<p class="admin_debug">' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:tagging') => true), 'internalname' => 'tagging', 'value' => ($plugin->tagging ? true : false) )) . "</p>";
+
+ // Download Link
+ $form_body .= '<p class="admin_debug">' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:download') => true), 'internalname' => 'download_link', 'value' => ($plugin->download_link ? true : false) )) . "</p>";
+
+ // Watermark Text
+ $form_body .= "<p>" . elgg_echo('tidypics:settings:watermark') . "<br />";
+ $form_body .= elgg_view("input/text",array('internalname' => 'watermark_text', 'value' => $plugin->$watermark_text)) . "</p>";
+
+ // Max Image Size
+ $form_body .= "<p>" . elgg_echo('tidypics:settings:img_size') . "<br />";
+ $form_body .= elgg_view("input/text",array('internalname' => 'maxfilesize', 'value' => $plugin->$maxfilesize)) . "</p>";
+
+ // Thumbnail sizes
+
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
|