XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Espaces de nommage | |
Smarty | |
Fonctions | |
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 <monte at ohrt dot com> string integer string boolean boolean string