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