* Name: capitalize
* Purpose: capitalize words in the string
* @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE
* capitalize (Smarty online manual)
* @author Monte Ohrt
* @param string
* @return string
*/
function smarty_modifier_countdown($timer)
{
if ($timer > 3600) {
return intVal($timer/3600) . ":" . intVal(($timer%3600)/60) . ":" . ($timer%3600)%60;
} else {
return intVal($timer/60) . ":" . $timer%60;
}
}