%s';
if (isset($_SESSION['USER'])) {
echo sprintf($li, BASE_URI.'/login/logout', $this->translate('labels.logout'));
$name = View::escape($_SESSION['USER']->getFullname());
echo sprintf('- '.sprintf($this->translate('messages.signed_in_as'), $name).'
');
}
else {
$return_url = View::escape($_SERVER['REQUEST_URI']);
echo sprintf($li, BASE_URI.'/login?return_url='.$return_url, $this->translate('labels.login'));
}
?>