<?php 
    /* Sample to get the thumbnail instead the avatar.
          	if ( ak_get_object('akucom')->activeComponent('gallery') ) {
      	    	echo aoc_get_user_image($user['ID'], 'alignleft', true);  // Get thumnail.
           }
      	*/
    ?>
		<div class="image"><a href="<?php 
    echo $baselink . urlencode($user['user_login']);
    ?>
"><?php 
    echo get_avatar($user['ID'], $avatar_size);
    ?>
</a></div>
	<p><?php 
    echo $roles[ak_get_user_role($user['ID'])];
    if (empty($user['user_url']) || 'http://' == $user['user_url']) {
        echo '</p>';
    } else {
        ?>
        <br /><?php 
        _e('My site:', $i18n);
        ?>
	    <a href="<?php 
        echo $user['user_url'];
        ?>
" target="_blank"><?php 
        echo substr($user['user_url'], 7);
        ?>
</a></p>
	<?php 
 /**
  * Checks id a user is in an allowed role.
  *
  * @param int|object $user	User ID or user object to check
  * @return boolean	If the user can be shown or not.
  */
 public function canShowUser($user)
 {
     $roles = $this->getAllowedRoles();
     $user_role = ak_get_user_role($user);
     return in_array($user_role, $roles) ? true : false;
 }