1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

re-enable e_parse html wrap method, UI wrap option for text fields added

This commit is contained in:
secretr 2010-11-15 09:03:54 +00:00
parent 9a022dc873
commit aa0d2e8da4
2 changed files with 5 additions and 1 deletions

View File

@ -685,7 +685,7 @@ class e_parse
*/
//TODO handle htmlwrap somehow
return $str;
//return $str;
// Don't wrap if non-numeric width
$width = intval($width);

View File

@ -1313,6 +1313,10 @@ class e_form
{
$value = $tp->html_truncate($value, $parms['htmltruncate'], '...');
}
if(vartrue($parms['wrap']))
{
$value = $tp->htmlwrap($value, (int)$parms['wrap'], varset($parms['wrapChar'], ' '));
}
$value = vartrue($parms['pre']).$value.vartrue($parms['post']);
break;