From 8e8e50d510608d94e266e3c951349a45046dfc67 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 5 Jun 2009 11:26:42 +0000 Subject: added image sizes to settings and removed deprecated settings object --- views/default/tidypics/forms/admin.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'views/default/tidypics/forms/admin.php') 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 .= '

'; // 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 .= "

" . elgg_echo('tidypics:settings:largesize') . "
"; + $form_body .= 'width:    '; + $form_body .= 'height:

'; + $form_body .= "

" . elgg_echo('tidypics:settings:smallsize') . "
"; + $form_body .= 'width:    '; + $form_body .= 'height:

'; + $form_body .= "

" . elgg_echo('tidypics:settings:thumbsize') . "
"; + $form_body .= 'width:    '; + $form_body .= 'height:

'; $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))); -- cgit v1.2.3