22 $f = $this->dic->ui()->factory();
23 $txt =
function ($id) {
24 return $this->dic->language()->txt($id);
28 return $this->
if->identifier($id);
32 $children[] = $mb->linkItem($id(
'personal_profile'))
33 ->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToProfile")
34 ->withTitle(
$txt(
"personal_profile"))
38 $children[] = $mb->linkItem($id(
'personal_settings'))
39 ->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToSettings")
40 ->withTitle(
$txt(
"personal_settings"))
44 $children[] = $mb->linkItem($id(
'logout'))
45 ->withAction(
"logout.php?lang=" . $this->dic->user()->getCurrentLanguage())
47 ->withTitle(
$txt(
"logout"))
48 ->withSymbol(
$f->symbol()->glyph()->logout());
51 $item[] = $mb->topParentItem($id(
'user'))
52 ->withSymbol($this->dic->user()->getAvatar())
53 ->withTitle($this->dic->language()->txt(
"info_view_of_user"))
55 ->withVisibilityCallable($access_checks->isUserLoggedIn())
56 ->withChildren($children);
Interface IdentificationInterface.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)