1
0
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:
Cameron
2014-07-01 18:32:14 -07:00
parent c935211e17
commit 4e4cc52215

View File

@@ -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)." />
"; ";