mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 09:39:55 +02:00
Search page completed. Bootstrap3 template functional. e-expandit can now accept multiple target IDs using the data-target attribute.
This commit is contained in:
@@ -1104,13 +1104,13 @@ class e_form
|
||||
|
||||
$labelFound = vartrue($options['label']);
|
||||
unset($options['label']); // label attribute not valid in html5
|
||||
|
||||
|
||||
$options = $this->format_options('radio', $name, $options);
|
||||
$options['checked'] = $checked; //comes as separate argument just for convenience
|
||||
// $options['class'] = 'inline';
|
||||
$text = "";
|
||||
|
||||
|
||||
|
||||
|
||||
// return print_a($options,true);
|
||||
if($labelFound) // Bootstrap compatible markup
|
||||
@@ -1119,6 +1119,9 @@ class e_form
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$text .= "<input type='radio' name='{$name}' value='".$value."'".$this->get_attributes($options, $name, $value)." />";
|
||||
|
||||
if(vartrue($options['help']))
|
||||
@@ -1150,8 +1153,8 @@ class e_form
|
||||
|
||||
if(vartrue($options['class']) == 'e-expandit' || vartrue($options['expandit'])) // See admin->prefs 'Single Login' for an example.
|
||||
{
|
||||
$options_on = array('class' => 'e-expandit-on');
|
||||
$options_off = array('class' => 'e-expandit-off');
|
||||
$options_on = array_merge($options, array('class' => 'e-expandit-on'));
|
||||
$options_off = array_merge($options, array('class' => 'e-expandit-off'));
|
||||
}
|
||||
|
||||
$options_on['label'] = $label_enabled ? defset($label_enabled,$label_enabled) : LAN_ENABLED;
|
||||
|
Reference in New Issue
Block a user