Get Gravatar

<?php

function get_avatar($email){
$hash = md5(strtolower(trim($email)));
echo "<img src="http://www.gravatar.com/avatar/" . $hash . "?s=60">";
}

/* References
https://en.gravatar.com/site/implement/images/
https://en.gravatar.com/site/implement/hash/
*/

?>

0 Comments

You must be logged in to post a comment.