2009-11-01 11:00:00 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Smarty plugin
|
|
|
|
* @package Smarty
|
|
|
|
* @subpackage plugins
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Smarty plugin
|
|
|
|
*
|
|
|
|
* Type: modifier<br>
|
|
|
|
* Name: separenombre<br>
|
|
|
|
* Date: Aug 22, 2008
|
|
|
|
* Purpose: separe number
|
|
|
|
* Example: {$text|separenombre}
|
|
|
|
* @version 1.0
|
|
|
|
* @author Nemunaire <nemunaire at gmail dot com>
|
|
|
|
* @param string
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
function smarty_modifier_nom($string, $type)
|
|
|
|
{
|
2020-11-21 18:54:32 +00:00
|
|
|
global ${$type};
|
2009-11-01 11:00:00 +00:00
|
|
|
return ${$type}[$string];
|
|
|
|
}
|
|
|
|
|
|
|
|
/* vim: set expandtab: */
|