Function smarty_modifier_truncate
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.
Package: Smarty\plugins
Author: Monte Ohrt <monte at ohrt dot com>
Link: truncate (Smarty online manual)
Located at xoops_trust_path/libs/smarty/plugins/modifier.truncate.php
Author: Monte Ohrt <monte at ohrt dot com>
Link: truncate (Smarty online manual)
Located at xoops_trust_path/libs/smarty/plugins/modifier.truncate.php
string
|
$string |
|
integer
|
$length = 80 |
|
string
|
$etc = '...' |
|
boolean
|
$break_words = false |
|
boolean
|
$middle = false |
string
|