jmlapam

Untitled

Feb 9th, 2014
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function _favicon_gravatar() {
  2. $hash = md5(strtolower(trim('mail@gmail.com')));
  3. echo 'http://www.gravatar.com/avatar/' . $hash . '?s=16';
  4. }
  5.  
  6.  
  7. // header.php
  8. <link rel="shortcut icon" href="<?php if( function_exists('_favicon_gravatar') ) _favicon_gravatar(); ?>" />
RAW Paste Data