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) ? "
".$helpLabel."
" : ''); } if(!$multi_line) return implode("  ", $text); - - return "
".implode("
", $text)."
"; + + // return implode("\n", $text); + return "
".implode("
", $text)."
"; } @@ -3107,16 +3151,32 @@ class e_form { $text .= ($trigger == 'submit') ? "
" : ""; $text .= $this->admin_button('etrigger_'.$trigger, $tdata[0], $tdata[1]); - $text .= ($trigger == 'submit' && $submitopt) ?' - ': ''; //FIXME Find better Bootstrap classes/styling. + + if($trigger == 'submit' && $submitopt) + { + + $text .= + ' + '; + } $text .= ($trigger == 'submit') ?"
" : ""; diff --git a/e107_themes/bootstrap/admin_style.css b/e107_themes/bootstrap/admin_style.css index b6494f125..4d2576cd1 100644 --- a/e107_themes/bootstrap/admin_style.css +++ b/e107_themes/bootstrap/admin_style.css @@ -651,7 +651,7 @@ i.e-breadcrumb { margin-top:3px; } -footer { padding-top:60px; color: rgb(153, 153, 153); } +footer { padding-top:150px; padding-bottom:20px; color: rgb(153, 153, 153); } #searchquery { padding-left:22px;