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:
parent
9a022dc873
commit
aa0d2e8da4
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user