diff options
Diffstat (limited to 'smartyplugins/modifier.quoted.php')
| -rw-r--r-- | smartyplugins/modifier.quoted.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/smartyplugins/modifier.quoted.php b/smartyplugins/modifier.quoted.php new file mode 100644 index 0000000..f529375 --- /dev/null +++ b/smartyplugins/modifier.quoted.php @@ -0,0 +1,24 @@ +<?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + +/** + * Smarty plugin + * ------------------------------------------------------------- + * Type: modifier + * Name: spacify + * Purpose: add spaces between characters in a string + * ------------------------------------------------------------- + */ +function smarty_modifier_quoted($string) +{ + $string = str_replace("\n","\n>",$string); + return '>'.$string; +} + +/* vim: set expandtab: */ + +?> |
