diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php
index 0818512df..ee327b0e9 100644
--- a/e107_handlers/form_handler.php
+++ b/e107_handlers/form_handler.php
@@ -269,7 +269,7 @@ class e_form
// eg.
// The button itself could be replaced with an icon just for this purpose.
return $this->imagepicker($name, $default, $label, 'media=_icon');
-
+ /*
$e107 = e107::getInstance();
$id = $this->name2id($name);
$sc_parameters .= '&id='.$id;
@@ -286,6 +286,7 @@ class e_form
";
return $ret;
+ */
}
/**
@@ -981,8 +982,26 @@ class e_form
$options = $this->format_options('radio', $name, $options);
$options['checked'] = $checked; //comes as separate argument just for convenience
// $options['class'] = 'inline';
- return "get_attributes($options, $name, $value)." />";
-
+ $text = "";
+
+ if(vartrue($options['label'])) // Bootstrap compatible markup
+ {
+ $text .= "";
+ }
+
+ return $text;
}
/**
@@ -1027,19 +1046,44 @@ class e_form
*/
function radio_multi($name, $elements, $checked, $multi_line = false, $help = null)
{
+ /* // Bootstrap Test.
+ return'
+
+
+ ';
+ */
+
+
$text = array();
if(is_string($elements)) parse_str($elements, $elements);
foreach ($elements as $value => $label)
{
$label = defset($label, $label);
+
$helpLabel = (is_array($help)) ? vartrue($help[$value]) : $help;
+
+ // Bootstrap Style Code - for use later.
+ // $options['label'] = $label;
+ // $options['help'] = $helpLabel;
+ // $text[] = $this->radio($name, $value, (string) $checked === (string) $value, $options);
+
$text[] = $this->radio($name, $value, (string) $checked === (string) $value)."".$this->label($label, $name, $value).(isset($helpLabel) ? "