void smarty_modifier_truncate(
mixed $string, [mixed $length = 80], [mixed $etc = '...'], [mixed $break_words = false])
|
|
Smarty plugin
------------------------------------------------------------- Type: modifier Name: truncate Purpose: Truncate a string to a certain length if necessary, optionally splitting in the middle of a word, and appending the $etc string. -------------------------------------------------------------