mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
e_menu.php introduced to replace legacy menu configuration file (config.php). See banner plugin for an example.
This commit is contained in:
@@ -450,7 +450,7 @@ class e_form
|
||||
|
||||
if(vartrue($options['size']) && !is_numeric($options['size']))
|
||||
{
|
||||
$options['class'] .= " input-".$options['size'];
|
||||
$options['class'] .= " input-".$options['size'];
|
||||
unset($options['size']); // don't include in html 'size='.
|
||||
}
|
||||
|
||||
@@ -477,7 +477,7 @@ class e_form
|
||||
|
||||
if(!empty($options['size']))
|
||||
{
|
||||
$options['class'] .= 'input-'.$options['size'];
|
||||
$options['class'] .= ' input-'.$options['size'];
|
||||
unset($options['size']);
|
||||
}
|
||||
|
||||
@@ -1379,6 +1379,10 @@ class e_form
|
||||
{
|
||||
parse_str($options, $options);
|
||||
}
|
||||
elseif(is_array($options))
|
||||
{
|
||||
// do nothing.
|
||||
}
|
||||
else // Assume it's a label.
|
||||
{
|
||||
$options = array('label'=>$options);
|
||||
@@ -4023,7 +4027,7 @@ class e_form
|
||||
$maxlength = vartrue($parms['maxlength'], 255);
|
||||
unset($parms['maxlength']);
|
||||
if(!vartrue($parms['size'])) $parms['size'] = 'mini';
|
||||
if(!vartrue($parms['class'])) $parms['class'] = 'tbox number e-spinner';
|
||||
if(!vartrue($parms['class'])) $parms['class'] = 'tbox number e-spinner ';
|
||||
if(!$value) $value = '0';
|
||||
$ret = vartrue($parms['pre']).$this->number($key, $value, $maxlength, $parms).vartrue($parms['post']);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user