diff --git a/core/ext/image.ext.php b/core/ext/image.ext.php
index ed97c2a0..42243077 100644
--- a/core/ext/image.ext.php
+++ b/core/ext/image.ext.php
@@ -27,8 +27,7 @@ class ImageIO extends Extension {
$thumbers['ImageMagick'] = "convert";
$sb = new SetupBlock("Thumbnailing");
- $sb->add_label("Engine: ");
- $sb->add_choice_option("thumb_engine", $thumbers);
+ $sb->add_choice_option("thumb_engine", $thumbers, "Engine: ");
$sb->add_label("
Size ");
$sb->add_int_option("thumb_width");
@@ -38,9 +37,8 @@ class ImageIO extends Extension {
$sb->add_int_option("thumb_quality");
$sb->add_label(" % quality ");
- $sb->add_label("
Max GD memory use: ");
- $sb->add_shorthand_int_option("thumb_gd_mem_limit");
-
+ $sb->add_shorthand_int_option("thumb_gd_mem_limit", "
Max GD memory use: ");
+
$event->panel->add_main_block($sb);
}
if(is_a($event, 'ConfigSaveEvent')) {
diff --git a/core/ext/index.ext.php b/core/ext/index.ext.php
index 4571abb9..898823e5 100644
--- a/core/ext/index.ext.php
+++ b/core/ext/index.ext.php
@@ -62,8 +62,7 @@ class Index extends Extension {
$sb->add_int_option("index_height");
$sb->add_label(" images");
- $sb->add_label("
Image tooltip ");
- $sb->add_text_option("image_tip");
+ $sb->add_text_option("image_tip", "
Image tooltip ");
$event->panel->add_main_block($sb, 20);
}
diff --git a/core/ext/setup.ext.php b/core/ext/setup.ext.php
index 42e4d229..3c683102 100644
--- a/core/ext/setup.ext.php
+++ b/core/ext/setup.ext.php
@@ -36,42 +36,67 @@ class SetupBlock extends Block {
public function add_label($text) {
$this->body .= $text;
}
- public function add_text_option($name) {
+
+ public function add_text_option($name, $label=null) {
global $config;
$val = $config->get_string($name);
- $this->body .= "\n";
+ if(!is_null($label)) {
+ $this->body .= "";
+ }
+ $this->body .= "\n";
}
- public function add_longtext_option($name) {
+
+ public function add_longtext_option($name, $label=null) {
global $config;
$val = $config->get_string($name);
- $this->body .= "\n";
+ if(!is_null($label)) {
+ $this->body .= "";
+ }
+ $this->body .= "\n";
$this->body .= "\n"; // setup page auto-layout counts
tags
}
- public function add_bool_option($name) {
+
+ public function add_bool_option($name, $label=null) {
global $config;
$checked = $config->get_bool($name) ? " checked" : "";
- $this->body .= "\n";
+ if(!is_null($label)) {
+ $this->body .= "";
+ }
+ $this->body .= "\n";
}
- public function add_hidden_option($name) {
+
+ public function add_hidden_option($name, $label=null) {
global $config;
$val = $config->get_string($name);
- $this->body .= "";
+ $this->body .= "";
}
- public function add_int_option($name) {
+
+ public function add_int_option($name, $label=null) {
global $config;
$val = $config->get_string($name);
- $this->body .= "\n";
+ if(!is_null($label)) {
+ $this->body .= "";
+ }
+ $this->body .= "\n";
}
- public function add_shorthand_int_option($name) {
+
+ public function add_shorthand_int_option($name, $label=null) {
global $config;
$val = to_shorthand_int($config->get_string($name));
- $this->body .= "\n";
+ if(!is_null($label)) {
+ $this->body .= "";
+ }
+ $this->body .= "\n";
}
- public function add_choice_option($name, $options) {
+
+ public function add_choice_option($name, $options, $label=null) {
global $config;
$current = $config->get_string($name);
- $html = "