avatarManager->renderDefault($size);
} else {
$html = $this->avatarManager->render($user_id, $username, $name, $email, $avatar_path, $size);
}
return '
'.$html.'
';
}
public function dynamic($user_id, $username, $name, $email, $avatar_path, $css = '', $size)
{
return $this->dynamicRender($user_id, $username, $name, $email, $avatar_path, $css, $size);
}
public function currentUserDynamic($css = '')
{
$user = $this->userSession->getAll();
return $this->dynamic($user['id'], $user['username'], $user['name'], $user['email'], $user['avatar_path'], $css, $this->configModel->get('av_size', '20'));
}
public function boardDynamicRender($user_id, $username, $name, $email, $avatar_path, $css = 'avatar-left', $size = 48)
{
if (empty($user_id) && empty($username)) {
$html = $this->avatarManager->renderDefault($size);
} else {
$html = $this->avatarManager->render($user_id, $username, $name, $email, $avatar_path, $size);
}
return ''.$html.'
';
}
public function boardDynamic($user_id, $username, $name, $email, $avatar_path, $css = '', $size)
{
return $this->boardDynamicRender($user_id, $username, $name, $email, $avatar_path, $css, $size);
}
public function boardCurrentUserDynamic($css = '')
{
$user = $this->userSession->getAll();
return $this->boardDynamic($user['id'], $user['username'], $user['name'], $user['email'], $user['avatar_path'], $css, $this->configModel->get('b_av_size', '20'));
}
}