diff options
author | Cash Costello <cash.costello@gmail.com> | 2010-05-01 19:35:28 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2010-05-01 19:35:28 +0000 |
commit | 76d0f767eb42cb2c4bf20b5db63c6722c64fa28c (patch) | |
tree | 496ec9492d6c96fbac9da5be34bc94ee55732932 | |
parent | 994774afb56e3474b84a15c16f8e36b7f0457fcb (diff) | |
download | elgg-76d0f767eb42cb2c4bf20b5db63c6722c64fa28c.tar.gz elgg-76d0f767eb42cb2c4bf20b5db63c6722c64fa28c.tar.bz2 |
switched order of image library and main settings on the admin settings page
-rw-r--r-- | views/default/tidypics/forms/settings.php | 63 |
1 files changed, 34 insertions, 29 deletions
diff --git a/views/default/tidypics/forms/settings.php b/views/default/tidypics/forms/settings.php index 21b85b83f..0729b536b 100644 --- a/views/default/tidypics/forms/settings.php +++ b/views/default/tidypics/forms/settings.php @@ -15,38 +15,11 @@ set_plugin_setting('version', 1.62, 'tidypics'); } - if (extension_loaded('imagick')) - $img_lib_options['ImageMagickPHP'] = 'imagick PHP extension'; - - $disablefunc = explode(',', ini_get('disable_functions')); - if (is_callable('exec') && !in_array('exec',$disablefunc)) - $img_lib_options['ImageMagick'] = 'ImageMagick Cmdline'; - $img_lib_options['GD'] = 'GD'; - - - // Image Library - $form_body = '<h3>' . elgg_echo('tidypics:settings:heading:img_lib') . '</h3>'; - $image_lib = $plugin->image_lib; - if (!$image_lib) $image_lib = 'GD'; - $form_body .= '<p>' . elgg_echo('tidypics:settings:image_lib') . ': '; - $form_body .= elgg_view('input/pulldown', array( - 'internalname' => 'params[image_lib]', - 'options_values' => $img_lib_options, - 'value' => $image_lib - )); - $form_body .= '<br/>Note: If you want to select ImageMagick Command Line, first confirm that it is installed on your server.</p>'; - - if (is_callable('exec') && !in_array('exec',$disablefunc)) { - // Image Magick Path - $im_path = $plugin->im_path; - if(!$im_path) $im_path = "/usr/bin/"; - $form_body .= "<p>" . elgg_echo('tidypics:settings:im_path') . "<br />"; - $form_body .= elgg_view("input/text",array('internalname' => 'params[im_path]', 'value' => $im_path)) . "</p>"; - } + // Main settings + $form_body = '<h3>' . elgg_echo('tidypics:settings:heading:main') . '</h3>'; // Tagging - $form_body .= '<h3>' . elgg_echo('tidypics:settings:heading:main') . '</h3>'; $tagging = $plugin->tagging; if(!$tagging) $tagging = "enabled"; $form_body .= '<p class="admin_debug">' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:tagging') => 'enabled'), 'internalname' => 'tagging', 'value' => $tagging )) . "</p>"; @@ -87,6 +60,38 @@ $form_body .= "<p>" . elgg_echo('tidypics:settings:quota') . "<br />"; $form_body .= elgg_view("input/text",array('internalname' => 'params[quota]', 'value' => $quota)) . "</p>"; + // Image Library + if (extension_loaded('imagick')) { + $img_lib_options['ImageMagickPHP'] = 'imagick PHP extension'; + } + + $disablefunc = explode(',', ini_get('disable_functions')); + if (is_callable('exec') && !in_array('exec',$disablefunc)) { + $img_lib_options['ImageMagick'] = 'ImageMagick Cmdline'; + } + + $img_lib_options['GD'] = 'GD'; + + $form_body .= '<h3>' . elgg_echo('tidypics:settings:heading:img_lib') . '</h3>'; + $image_lib = $plugin->image_lib; + if (!$image_lib) $image_lib = 'GD'; + $form_body .= '<p>' . elgg_echo('tidypics:settings:image_lib') . ': '; + $form_body .= elgg_view('input/pulldown', array( + 'internalname' => 'params[image_lib]', + 'options_values' => $img_lib_options, + 'value' => $image_lib + )); + $form_body .= '<br/>Note: If you want to select ImageMagick Command Line, first confirm that it is installed on your server.</p>'; + + if (is_callable('exec') && !in_array('exec',$disablefunc)) { + // Image Magick Path + $im_path = $plugin->im_path; + if(!$im_path) $im_path = "/usr/bin/"; + $form_body .= "<p>" . elgg_echo('tidypics:settings:im_path') . "<br />"; + $form_body .= elgg_view("input/text",array('internalname' => 'params[im_path]', 'value' => $im_path)) . "</p>"; + } + + // River Image options $form_body .= '<h3>' . elgg_echo('tidypics:settings:heading:river') . '</h3>'; $img_river_view = $plugin->img_river_view; |