1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-27 00:05:46 +02:00

XURL definitions added for facebook, twitter etc.

This commit is contained in:
Cameron
2013-03-11 02:32:19 -07:00
parent c89363e784
commit 14044fc25a
5 changed files with 45 additions and 29 deletions

View File

@@ -221,17 +221,17 @@ class e_form
}
}
if(vartrue($options['size']) && is_numeric($options['size']))
if(vartrue($options['size']) && !is_numeric($options['size']))
{
$options['class'] .= " input-".$options['size'];
unset($options['size']); // don't include in html 'size='.
}
$mlength = vartrue($maxlength) ? "maxlength=".$maxlength : "";
$options = $this->format_options('text', $name, $options);
//never allow id in format name-value for text fields
return "<input type='text' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
return "<input type='text' name='{$name}' value='{$value}' {$mlength} ".$this->get_attributes($options, $name)." />";
}