1
0
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:
Tijn Kuyper 2019-04-03 10:53:42 +02:00
parent 73c93449a6
commit 46828aaee1
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -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;
}