function display_avatar( array(
'type' => 'user', // Avatar type.
'id' => '', // Optional ID. Example: 'id' => 3,
// to display avatar of user/post/category/blog #3
'before' => '<div>', // Before image block.
'after' => '</div>', // After image block.
'style' => '', // Image style e.g. margin:5px.
));
So to use that look below
if ( isset($GLOBALS['avatars_Plugin']) )
{
$GLOBALS['avatars_Plugin']->display_avatar( array(
'type' => 'user',
));
}
if ( isset($GLOBALS['avatars_Plugin']) )
{
$GLOBALS['avatars_Plugin']->display_avatar( array(
'type' => 'post_author',
));
}
if ( isset($GLOBALS['avatars_Plugin']) )
{
$GLOBALS['avatars_Plugin']->display_avatar( array(
'type' => 'comment_author',
'comment' => $Comment,
));
// You can add optional paramethers to control gravatars and other visitor avatar types
// Example:
// 'default' => 'http://img_url.jpg',
// 'size' => '',
// 'rating' => '',
}
if ( isset($GLOBALS['avatars_Plugin']) )
{
$GLOBALS['avatars_Plugin']->display_avatar( array(
'type' => 'post',
));
}
if ( isset($GLOBALS['avatars_Plugin']) )
{
$GLOBALS['avatars_Plugin']->display_avatar( array(
'type' => 'category',
));
}
if ( isset($GLOBALS['avatars_Plugin']) )
{
$GLOBALS['avatars_Plugin']->display_avatar( array(
'type' => 'blog',
));
}