diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 13:13:46 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 13:13:46 -0400 |
commit | 65548983c054a48fe0adb94c327847a7101db390 (patch) | |
tree | a07a448fc4b67279d3a60993f06a586e3717ad9f /views/default/forms/photos/admin/settings/main.php | |
parent | f7f38da31ca53c25775d1a28668a1dd9aefd5277 (diff) | |
download | elgg-65548983c054a48fe0adb94c327847a7101db390.tar.gz elgg-65548983c054a48fe0adb94c327847a7101db390.tar.bz2 |
admin settings form divided into subviews
Diffstat (limited to 'views/default/forms/photos/admin/settings/main.php')
-rw-r--r-- | views/default/forms/photos/admin/settings/main.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/views/default/forms/photos/admin/settings/main.php b/views/default/forms/photos/admin/settings/main.php new file mode 100644 index 000000000..349c951f9 --- /dev/null +++ b/views/default/forms/photos/admin/settings/main.php @@ -0,0 +1,28 @@ +<?php +/** + * Primary settings for Elgg + */ + +$plugin = $vars['plugin']; + +$checkboxes = array('tagging', 'view_count', 'uploader', 'exif', 'download_link'); +foreach ($checkboxes as $checkbox) { + echo '<div>'; + $checked = $plugin->$checkbox ? 'checked' : false; + echo elgg_view('input/checkbox', array( + 'name' => "params[$checkbox]", + 'value' => true, + 'checked' => (bool)$plugin->$checkbox, + )); + echo ' ' . elgg_echo("tidypics:settings:$checkbox"); + echo '</div>'; +} + +// max image size +echo '<div>'; +echo elgg_echo('tidypics:settings:maxfilesize'); +echo elgg_view('input/text', array( + 'name' => 'params[maxfilesize]', + 'value' => $plugin->maxfilesize, +)); +echo '</div>'; |