Migration SVN
This commit is contained in:
35
system/libs/smarty/plugins/modifier.money.php
Executable file
35
system/libs/smarty/plugins/modifier.money.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Smarty plugin
|
||||
*
|
||||
* Type: modifier<br>
|
||||
* Name: money<br>
|
||||
* Date: Jui 17, 2007
|
||||
* Purpose: convert to d.dd
|
||||
* Input:<br>
|
||||
* - contents = contents to replace
|
||||
* - preceed_test = if true, includes preceeding break tags
|
||||
* in replacement
|
||||
* Example: {$text|money}
|
||||
* @link
|
||||
* money (Smarty online manual)
|
||||
* @version 1.0
|
||||
* @author Julien Lacroix <julien at verygames dot net>
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
function smarty_modifier_money($string)
|
||||
{
|
||||
return money_format('%i', $string);
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user