Initial commit
This commit is contained in:
commit
998d011cd3
233 changed files with 36893 additions and 0 deletions
30
onyx/modules/templates/smarty/plugins/modifier.nom.php
Normal file
30
onyx/modules/templates/smarty/plugins/modifier.nom.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?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)
|
||||
{
|
||||
global ${$type};
|
||||
return ${$type}[$string];
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
Reference in a new issue