From 994774afb56e3474b84a15c16f8e36b7f0457fcb Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 1 May 2010 19:24:58 +0000 Subject: Users cannot change the 2 smallest thumbnails from square now - less confusing interface --- views/default/tidypics/forms/settings.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'views/default/tidypics') diff --git a/views/default/tidypics/forms/settings.php b/views/default/tidypics/forms/settings.php index 6cfed661f..21b85b83f 100644 --- a/views/default/tidypics/forms/settings.php +++ b/views/default/tidypics/forms/settings.php @@ -26,9 +26,10 @@ // Image Library + $form_body = '

' . elgg_echo('tidypics:settings:heading:img_lib') . '

'; $image_lib = $plugin->image_lib; if (!$image_lib) $image_lib = 'GD'; - $form_body = '

' . elgg_echo('tidypics:settings:image_lib') . ': '; + $form_body .= '

' . elgg_echo('tidypics:settings:image_lib') . ': '; $form_body .= elgg_view('input/pulldown', array( 'internalname' => 'params[image_lib]', 'options_values' => $img_lib_options, @@ -45,6 +46,7 @@ } // Tagging + $form_body .= '

' . elgg_echo('tidypics:settings:heading:main') . '

'; $tagging = $plugin->tagging; if(!$tagging) $tagging = "enabled"; $form_body .= '

' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:tagging') => 'enabled'), 'internalname' => 'tagging', 'value' => $tagging )) . "

"; @@ -86,6 +88,7 @@ $form_body .= elgg_view("input/text",array('internalname' => 'params[quota]', 'value' => $quota)) . "

"; // River Image options + $form_body .= '

' . elgg_echo('tidypics:settings:heading:river') . '

'; $img_river_view = $plugin->img_river_view; if (!$img_river_view) $img_river_view = '1'; $form_body .= '

' . elgg_echo('tidypics:settings:img_river_view'); @@ -115,6 +118,8 @@ $form_body .= '

'; // Thumbnail sizes + $form_body .= '

' . elgg_echo('tidypics:settings:heading:sizes') . '

'; + $form_body .= "
You must edit the css if you change the default sizes
"; $image_sizes = $plugin->image_sizes; if(!$image_sizes) { $image_sizes = array(); // set default values @@ -127,15 +132,18 @@ $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 .= 'width and height:    '; + //$form_body .= 'height:

'; + $form_body .= "

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

'; + $form_body .= 'width and height:    '; + //$form_body .= 'height:

'; // Group permission override + $form_body .= '

' . elgg_echo('tidypics:settings:heading:groups') . '

'; $grp_perm_override = $plugin->grp_perm_override; if(!$grp_perm_override) $grp_perm_override = "enabled"; $form_body .= '

' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:grp_perm_override') => 'enabled'), 'internalname' => 'grp_perm_override', 'value' => $grp_perm_override )) . "

"; -- cgit v1.2.3