+++ /dev/null
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * Smarty {strip}{/strip} block plugin\r
- *\r
- * Type: block function<br>\r
- * Name: strip<br>\r
- * Purpose: strip unwanted white space from text<br>\r
- * @link http://smarty.php.net/manual/en/language.function.strip.php {strip}\r
- * (Smarty online manual)\r
- * @param array unused, no parameters for this block\r
- * @param string content of {strip}{/strip} tags\r
- * @param Smarty clever method emulation\r
- * @return string $content stripped of whitespace\r
- */\r
-function smarty_block_strip($params, $content, &$this)\r
-{\r
- /* Reformat data between 'strip' and '/strip' tags, removing spaces, tabs and newlines. */\r
- $_strip_search = array(\r
- "![\t ]+$|^[\t ]+!m", // remove leading/trailing space chars\r
- '%[\r\n]+%m'); // remove CRs and newlines\r
- $_strip_replace = array(\r
- '',\r
- '');\r
- return preg_replace($_strip_search, $_strip_replace, $content);\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r