modifier.wordwrap.php
Plugin from smarty project and adapted for jtpl
Tags
Table of Contents
- jtpl_modifier_common_wordwrap() : string
- modifier plugin : wrap a string of text at a given length. Same parameters as the php wordwrap function <pre>{$mytext|wordwrap} {$mytext|wordwrap:40} {$mytext|wordwrap:45:"\n"} {$mytext|wordwrap:60:"\n":true} </pre>
Functions
jtpl_modifier_common_wordwrap()
modifier plugin : wrap a string of text at a given length. Same parameters as the php wordwrap function <pre>{$mytext|wordwrap} {$mytext|wordwrap:40} {$mytext|wordwrap:45:"\n"} {$mytext|wordwrap:60:"\n":true} </pre>
jtpl_modifier_common_wordwrap(string $string[, int $length = 80 ][, string $break = "
" ][, bool $cut = false ]) : string
Parameters
- $string : string
- $length : int = 80
- $break : string = " "
- $cut : bool = false