decompiler |
Aug 25, 2014 10:09 AM |
[SOLVED] I would like to contribute the code to support Gravatar images in the byline
Heya,
I've been updating bfa_postinfo.php manually for a while, and have seen several other users request this functionality. I was wondering if you could possibly include the following (or equivalent version that fits your standards) in the theme proper:
PHP Code:
// Author Gravatar
if (strpos($postinfo_string, '%gravatar%') !== FALSE) {
$gravatar = get_avatar(get_the_author_meta('ID'), 30);
$postinfo = str_replace("%gravatar%", $gravatar, $postinfo);
}
I place this in bfa_postinfo.php just below the if() that handles the "Author Yahoo IM ID", but (obviously) you could put it just about anywhere you want in that method.
Thanks!
|