mirror of
https://github.com/e107inc/e107.git
synced 2025-10-10 20:44:48 +02:00
re-enable e_parse html wrap method, UI wrap option for text fields added
This commit is contained in:
@@ -685,7 +685,7 @@ class e_parse
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//TODO handle htmlwrap somehow
|
//TODO handle htmlwrap somehow
|
||||||
return $str;
|
//return $str;
|
||||||
|
|
||||||
// Don't wrap if non-numeric width
|
// Don't wrap if non-numeric width
|
||||||
$width = intval($width);
|
$width = intval($width);
|
||||||
|
@@ -1313,6 +1313,10 @@ class e_form
|
|||||||
{
|
{
|
||||||
$value = $tp->html_truncate($value, $parms['htmltruncate'], '...');
|
$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']);
|
$value = vartrue($parms['pre']).$value.vartrue($parms['post']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user