aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms/admin.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-05 11:26:42 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-05 11:26:42 +0000
commit8e8e50d510608d94e266e3c951349a45046dfc67 (patch)
tree5e66e93e3ca120a3d473cc38226e37072d78d0fd /views/default/tidypics/forms/admin.php
parentee733ee32b08e062ab868a3b26c3cbe73852a28e (diff)
downloadelgg-8e8e50d510608d94e266e3c951349a45046dfc67.tar.gz
elgg-8e8e50d510608d94e266e3c951349a45046dfc67.tar.bz2
added image sizes to settings and removed deprecated settings object
Diffstat (limited to 'views/default/tidypics/forms/admin.php')
-rw-r--r--views/default/tidypics/forms/admin.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/views/default/tidypics/forms/admin.php b/views/default/tidypics/forms/admin.php
index 19bde2fe6..c5e7c68d0 100644
--- a/views/default/tidypics/forms/admin.php
+++ b/views/default/tidypics/forms/admin.php
@@ -71,7 +71,24 @@
$form_body .= '</p>';
// Thumbnail sizes
-
+ $image_sizes = $plugin->image_sizes;
+ if(!$image_sizes) {
+ $image_sizes = array(); // set default values
+ $image_sizes['large_image_width'] = $image_sizes['large_image_height'] = 600;
+ $image_sizes['small_image_width'] = $image_sizes['small_image_height'] = 153;
+ $image_sizes['thumb_image_width'] = $image_sizes['thumb_image_height'] = 60;
+ } else {
+ $image_sizes = unserialize($image_sizes);
+ }
+ $form_body .= "<p>" . elgg_echo('tidypics:settings:largesize') . "<br />";
+ $form_body .= 'width: <input style="width: 20%;" type="text" name="large_thumb_width" value=' . "\"{$image_sizes['large_image_width']}\"" . ' class="input-text" />&nbsp;&nbsp;&nbsp;';
+ $form_body .= 'height: <input style="width: 20%;" type="text" name="large_thumb_height" value=' . "\"{$image_sizes['large_image_height']}\"" . ' class="input-text" /></p>';
+ $form_body .= "<p>" . elgg_echo('tidypics:settings:smallsize') . "<br />";
+ $form_body .= 'width: <input style="width: 20%;" type="text" name="small_thumb_width" value=' . "\"{$image_sizes['small_image_width']}\"" . ' class="input-text" />&nbsp;&nbsp;&nbsp;';
+ $form_body .= 'height: <input style="width: 20%;" type="text" name="small_thumb_height" value=' . "\"{$image_sizes['small_image_height']}\"" . ' class="input-text" /></p>';
+ $form_body .= "<p>" . elgg_echo('tidypics:settings:thumbsize') . "<br />";
+ $form_body .= 'width: <input style="width: 20%;" type="text" name="thumb_width" value=' . "\"{$image_sizes['thumb_image_width']}\"" . ' class="input-text" />&nbsp;&nbsp;&nbsp;';
+ $form_body .= 'height: <input style="width: 20%;" type="text" name="thumb_height" value=' . "\"{$image_sizes['thumb_image_height']}\"" . ' class="input-text" /></p>';
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));