From 4e4cc5221526f5f932c66ec1772f431bf7497c45 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 1 Jul 2014 18:32:14 -0700 Subject: [PATCH] Added missing css to $frm->email(); --- e107_handlers/form_handler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index a233fdd1d..f620f7632 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -340,8 +340,14 @@ class e_form function email($name, $value, $maxlength = 200, $options = array()) { $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 - return "get_attributes($options, $name)." /> + return "get_attributes($options, $name)." /> "; }