mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Added missing css to $frm->email();
This commit is contained in:
@@ -340,6 +340,12 @@ class e_form
|
|||||||
function email($name, $value, $maxlength = 200, $options = array())
|
function email($name, $value, $maxlength = 200, $options = array())
|
||||||
{
|
{
|
||||||
$options = $this->format_options('text', $name, $options);
|
$options = $this->format_options('text', $name, $options);
|
||||||
|
|
||||||
|
if(deftrue('BOOTSTRAP') === 3)
|
||||||
|
{
|
||||||
|
$options['class'] .= ' form-control';
|
||||||
|
}
|
||||||
|
|
||||||
//never allow id in format name-value for text fields
|
//never allow id in format name-value for text fields
|
||||||
return "<input type='email' name='{$name}' value='{$value}' maxlength='{$maxlength}' ".$this->get_attributes($options, $name)." />
|
return "<input type='email' name='{$name}' value='{$value}' maxlength='{$maxlength}' ".$this->get_attributes($options, $name)." />
|
||||||
";
|
";
|
||||||
|
Reference in New Issue
Block a user