6 * @subpackage PluginsModifierCompiler
10 * Smarty indent modifier plugin
13 * Purpose: indent lines of text
15 * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual)
18 * @param array $params parameters
20 * @return string with compiled code
23 function smarty_modifiercompiler_indent($params)
25 if (!isset($params[1])) {
28 if (!isset($params[2])) {
32 return 'preg_replace(\'!^!m\',str_repeat(' . $params[2] . ',' . $params[1] . '),' . $params[0] . ')';