/ Published in: PHP
Simple function to grab a gravatar image with a default placeholder set using placehold.it
Expand |
Embed | Plain Text
function get_gravatar($email, $size=128, $default="http://placehold.it/128x128"){ $grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; return $grav_url; }
You need to login to post a comment.
