avatarManager->renderDefault($size);
} else {
$html = $this->avatarManager->render($user_id, $username, $name, $email, $size);
}
return '
'.$html.'
';
}
/**
* Render small user avatar
*
* @access public
* @param string $user_id
* @param string $username
* @param string $name
* @param string $email
* @return string
*/
public function small($user_id, $username, $name, $email, $css = '')
{
return $this->render($user_id, $username, $name, $email, $css, 20);
}
/**
* Get a small avatar for the current user
*
* @access public
* @return string
*/
public function currentUserSmall($css = '')
{
$user = $this->userSession->getAll();
return $this->small($user['id'], $user['username'], $user['name'], $user['email'], $css);
}
}