gehe zum Quellcode dieser Datei
Namensbereiche | |
Smarty | |
Constant Groups | |
Smarty | |
Funktionen | |
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 | $string | input string |
integer | $length | length of truncated text |
string | $etc | end string |
boolean | $break_words | truncate at word boundary |
boolean | $middle | truncate in the middle of text |
Definiert in Zeile 28 der Datei modifier.truncate.php.
Benutzt Smarty\$_CHARSET, Smarty\$_MBSTRING und Smarty\$_UTF8_MODIFIER.