SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /** | |
3 | - | echo 'http://www.gravatar.com/avatar/' . $hash . '?s=16'; |
3 | + | * Plugin Name: Zetravelerz |
4 | - | } |
4 | + | * Description: Fonctionnalités WP de zetravelerz.com |
5 | * Version: 1.0 | |
6 | * Author: Julien Maury | |
7 | - | // header.php |
7 | + | * Author URI: http://www.tweetpress.fr |
8 | - | <link rel="shortcut icon" href="<?php if( function_exists('_favicon_gravatar') ) _favicon_gravatar(); ?>" /> |
8 | + | */ |
9 | ||
10 | // Pas de load direct | |
11 | defined('ABSPATH') or die('Cheatin uh?'); | |
12 | ||
13 | add_action('wp_head','_favicon_gravatar'); | |
14 | function _favicon_gravatar() { | |
15 | $hash = md5(strtolower(trim('mail@gmail.com'))); | |
16 | echo '<link rel="shortcut icon" href="http://www.gravatar.com/avatar/' . $hash . '?s=16" />'; | |
17 | } |