Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Procedural File: modifier.truncate.php

Source Location: /themes/smartyplugins/modifier.truncate.php



Page Details:

Smarty plugin



Tags:

filesource:  Source Code for this file








smarty_modifier_truncate [line 26]

string smarty_modifier_truncate( string $string, [integer $length = 80], [string $etc = '...'], [boolean $break_words = false], [string $divId = ''])

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.




Tags:



Parameters

string   $string  
integer   $length  
string   $etc  
boolean   $break_words  
string   $divId  
[ Top ]



Documentation generated on Wed, 29 Jul 2015 13:57:10 +0000 by phpDocumentor 1.5.0-lsces