mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Tweak $frm->radio() method (BS check and spacing)
This commit is contained in:
@@ -2698,15 +2698,13 @@ class e_form
|
||||
// return print_a($options,true);
|
||||
if($labelFound) // Bootstrap compatible markup
|
||||
{
|
||||
$defaultClass = (deftrue('BOOTSTRAP') === 3) ? 'radio-inline' : 'radio inline';
|
||||
$defaultClass = (deftrue('BOOTSTRAP')) ? 'radio-inline' : 'radio inline';
|
||||
$dis = (!empty($options['disabled'])) ? " disabled" : "";
|
||||
$text .= "<label class='{$defaultClass}{$dis}'>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$text .= "<input type='radio' name='{$name}' value='".$value."'".$this->get_attributes($options, $name, $value)." />";
|
||||
|
||||
if(vartrue($options['help']))
|
||||
@@ -2716,11 +2714,9 @@ class e_form
|
||||
|
||||
if($labelFound)
|
||||
{
|
||||
$text .= "<span>".$labelFound."</span></label>";
|
||||
$text .= " <span>".$labelFound."</span></label>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user