31 lines
551 B
PHP
31 lines
551 B
PHP
<?php
|
|
/**
|
|
* Smarty plugin
|
|
* @package Smarty
|
|
* @subpackage plugins
|
|
*/
|
|
|
|
|
|
/**
|
|
* Smarty {counter} function plugin
|
|
*
|
|
* Type: function<br>
|
|
* Name: counter<br>
|
|
* Purpose: print out a counter value
|
|
* @author Monte Ohrt <monte at ohrt dot com>
|
|
* @link http://smarty.php.net/manual/en/language.function.counter.php {counter}
|
|
* (Smarty online manual)
|
|
* @param array parameters
|
|
* @param Smarty
|
|
* @return string|null
|
|
*/
|
|
function smarty_modifier_ereg($str, $params)
|
|
{
|
|
return ereg($str, $params);
|
|
|
|
}
|
|
|
|
/* vim: set expandtab: */
|
|
|
|
?>
|