modifier.indent.php
Plugin from smarty project and adapted for jtpl
Tags
Table of Contents
- jtpl_modifier_common_indent() : string
- Modifier plugin: indent lines of text
Functions
jtpl_modifier_common_indent()
Modifier plugin: indent lines of text
jtpl_modifier_common_indent(string $string[, int $chars = 4 ][, string $char = " " ]) : string
{$mytext|indent} {$mytext|indent:$number_of_spaces} {$mytext|indent:$number_of_chars:$chars_to_repeat}
Parameters
- $string : string
- $chars : int = 4
-
the value of the indentation
- $char : string = " "
-
the char to repeat