1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-24 23:16:28 +02:00

Signup and FAQs cleanup

This commit is contained in:
Cameron
2013-03-10 22:07:06 -07:00
parent 53eb60195e
commit 61616c95b0
7 changed files with 36 additions and 18 deletions

View File

@@ -176,6 +176,10 @@ class e_form
* @param $value
* @param $maxlength
* @param $options
* - size: mini, small, medium, large, xlarge, xxlarge
* - class:
* - typeahead: 'users'
*
*/
function text($name, $value, $maxlength = 80, $options= array())
{
@@ -183,7 +187,8 @@ class e_form
{
parse_str($options,$options);
}
/*
if(!vartrue($options['class']))
{
if($maxlength < 10)
@@ -205,6 +210,7 @@ class e_form
$options['class'] = 'tbox input-text';
}
}
*/
if(vartrue($options['typeahead']))
{
@@ -215,7 +221,12 @@ class e_form
}
}
if(vartrue($options['size']) && is_numeric($options['size']))
{
$options['class'] .= " input-".$options['size'];
unset($options['size']); // don't include in html 'size='.
}
$options = $this->format_options('text', $name, $options);