5 * @subpackage PluginsModifierCompiler
\r
9 * Smarty indent modifier plugin
\r
11 * Type: modifier<br>
\r
13 * Purpose: indent lines of text
\r
15 * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual)
\r
17 * @param array $params parameters
\r
18 * @return string with compiled code
\r
21 function smarty_modifiercompiler_indent($params, $compiler)
\r
23 if (!isset($params[1])) {
\r
26 if (!isset($params[2])) {
\r
29 return 'preg_replace(\'!^!m\',str_repeat(' . $params[2] . ',' . $params[1] . '),' . $params[0] . ')';
\r