diff --git a/e107_admin/menus.php b/e107_admin/menus.php index 32fdf7245..019c829b7 100644 --- a/e107_admin/menus.php +++ b/e107_admin/menus.php @@ -140,7 +140,8 @@ if(strpos(e_QUERY, 'configure') !== FALSE || vartrue($_GET['enc'])) e107::css('inline'," .column { width:100%; padding-bottom: 100px; } - .regularMenu { border:1px dotted silver; margin-bottom:6px; padding-left:3px; padding-right:3px } + + .regularMenu { border-bottom:1px dotted silver; margin-bottom:6px; padding-left:3px; padding-right:3px } .portlet { margin: 0 1em 1em 0; } .portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; cursor:move } diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index ef66325c1..ce8a5d4d6 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -901,18 +901,13 @@ class e_form $text = ""; - if(vartrue($options['label'])) // Bootstrap compatible markup - { - $text .= ""; - } - return $text; + return $pre.$text.$post; } function checkbox_label($label_title, $name, $value, $checked = false, $options = array()) @@ -981,8 +976,23 @@ class e_form return $this->_uc->uc_get_classname($classnum); } + /** + * A Radio Button Form Element + * @param $name + * @param @value array pair-values|string - auto-detected. + * @param $checked boolean + * @param $options + */ function radio($name, $value, $checked = false, $options = array()) { + + if(!is_array($options)) parse_str($options, $options); + + if(is_array($value)) + { + return $this->radio_multi($name, $value, $checked, $options); + } + $options = $this->format_options('radio', $name, $options); $options['checked'] = $checked; //comes as separate argument just for convenience // $options['class'] = 'inline'; @@ -1042,6 +1052,7 @@ class e_form /** + * XXX INTERNAL ONLY - Use radio() with the 'multiple=1' option instead of using this directly. * @param string $name * @param array $elements = arrays value => label * @param string/integer $checked = current value @@ -1050,6 +1061,9 @@ class e_form */ function radio_multi($name, $elements, $checked, $multi_line = false, $help = null) { + + + /* // Bootstrap Test. return'