+++ /dev/null
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * Smarty count_sentences modifier plugin\r
- *\r
- * Type: modifier<br>\r
- * Name: count_sentences\r
- * Purpose: count the number of sentences in a text\r
- * @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php\r
- * count_sentences (Smarty online manual)\r
- * @param string\r
- * @return integer\r
- */\r
-function smarty_modifier_count_sentences($string)\r
-{\r
- // find periods with a word before but not after.\r
- return preg_match_all('/[^\s]\.(?!\w)/', $string, $match);\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r