|
XOOPS 2.5.6
Final
|
Go to the source code of this file.
Namespaces | |
| namespace | Smarty |
Functions | |
| smarty_modifier_truncate ($string, $length=80, $etc= '...', $break_words=false, $middle=false) | |
| smarty_modifier_truncate | ( | $string, | |
$length = 80, |
|||
$etc = '...', |
|||
$break_words = false, |
|||
$middle = false |
|||
| ) |
Smarty truncate modifier 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 or inserting $etc into the middle. truncate (Smarty online manual) Monte Ohrt
| string | |
| integer | |
| string | |
| boolean | |
| boolean |
Definition at line 27 of file modifier.truncate.php.