* Name: math
* Purpose: handle math computations in template
* @link http://smarty.php.net/manual/en/language.function.math.php {math}
* (Smarty online manual)
* @author Monte Ohrt
* @param array
* @param Smarty
* @return string
*/
function smarty_function_fon($params, &$smarty)
{ $array = array("fon_body.jpg","fon_kite.jpg","dakine.jpg","fon_all.jpg");
$key = rand(0, 3);
return '.bg{background:url("/img/'.$array[$key].'") top center no-repeat;}';
}
/* vim: set expandtab: */
?>