mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Tweak $frm->radio() method (BS check and spacing)
This commit is contained in:
parent
73c93449a6
commit
46828aaee1
@ -2698,14 +2698,12 @@ 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)." />";
|
||||
|
||||
@ -2716,10 +2714,8 @@ class e_form
|
||||
|
||||
if($labelFound)
|
||||
{
|
||||
$text .= "<span>".$labelFound."</span></label>";
|
||||
$text .= " <span>".$labelFound."</span></label>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user