Location: PHPKode > projects > phpMyVisites > phpmv2/core/include/smarty_plugins/modifier.print_percent.php
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

function smarty_modifier_print_percent($string)
{
	if(substr($string, 0, 1) === '-')
	{
		$span = "negatif";
	}
	else
	{
		$span = "positif";
	}
	return "<span class=\"$span\">$string</span>";
}

?>
Return current item: phpMyVisites