So I have this function Gravatar() in my pagecontroller. How would I access it in my template? I always seem to get parse errors when using arguments?
function Gravatar($email= "")
{
$size = 40;
$grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($email)."&size=".$size;
$img = "<img src='$grav_url' alt='A member picture' />";
return $img;
}
I'm probably doing it the wrong way...?