Welcome to mirror list, hosted at ThFree Co, Russian Federation.

modifier.money.php « SmartyPlugins « core - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52acffd4fd9693e1bbe44fbdaf3c348541b12179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * Piwik - Open source web analytics
 * 
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
 * @version $Id$
 * 
 * @category Piwik
 * @package SmartyPlugins
 */

/**
 * Prints money, given the currency symbol.
 *  
 * @return string The amount with the currency symbol
 */
function smarty_modifier_money($amount)
{
	if(func_num_args() != 2)
	{
		throw new Exception('the smarty modifier money expects one parameter: the idSite.');
	}
	$idSite = func_get_args();
	$idSite = $idSite[1];
	return Piwik::getPrettyMoney($amount, $idSite);
}