 Parent Directory
|
 Parent Directory
|  Revision Log
 Revision Log
no message
| 1 | <?php | 
| 2 | |
| 3 | /* | 
| 4 | * Smarty plugin | 
| 5 | * ------------------------------------------------------------- | 
| 6 | * Type: modifier | 
| 7 | * Name: indent | 
| 8 | * Purpose: indent lines of text | 
| 9 | * ------------------------------------------------------------- | 
| 10 | */ | 
| 11 | function smarty_modifier_indent($string,$chars=4,$char=" ") | 
| 12 | { | 
| 13 | return preg_replace('!^!m',str_repeat($char,$chars),$string); | 
| 14 | } | 
| 15 | |
| 16 | ?> | 
| MailToCvsAdmin">MailToCvsAdmin | ViewVC Help | 
| Powered by ViewVC 1.1.26 |  |