19 declare(strict_types=1);
39 $f = $DIC->ui()->factory();
42 $url = $DIC->http()->request()->getUri()->__toString() .
'&new_metabar_ui=1';
43 $txt =
$f->legacy()->content(
'<p> 44 The Metabar Example opens in Fullscreen to showcase the behaviour of the metabar best. 45 Note, an comprensive example for developers on how to access the JS API of the Metabar 46 feature bellow in the second example. 49 $page_demo =
$f->link()->standard(
'See UI in fullscreen-mode',
$url);
59 $help = $f->button()->bulky($f->symbol()->glyph()->help(),
'Help',
'#');
60 $search = $f->button()->bulky($f->symbol()->glyph()->search(),
'Search',
'#');
61 $user = $f->button()->bulky($f->symbol()->glyph()->user(),
'User',
'#');
63 $notes = $f->mainControls()->slate()->legacy(
65 $f->symbol()->glyph()->notification(),
66 $f->legacy()->content(
'some content')
69 return $f->mainControls()->metaBar()
70 ->withAdditionalEntry(
'search', $search)
71 ->withAdditionalEntry(
'help', $help)
72 ->withAdditionalEntry(
'notes', $notes)
73 ->withAdditionalEntry(
'user', $user);
89 $f = $dic->
ui()->factory();
91 $logo =
$f->image()->responsive(
"assets/images/logo/HeaderIcon.svg",
"ILIAS");
92 $responsive_logo =
$f->image()->responsive(
"assets/images/logo/HeaderIconResponsive.svg",
"ILIAS");
97 $tc = $dic->
ui()->factory()->toast()->container();
101 $page =
$f->layout()->page()->standard(
108 "./assets/images/logo/favicon.ico",
113 'ILIAS Meta Bar Demo' 123 $f->panel()->standard(
124 'All about the Meta Bar',
125 $f->legacy()->content(
134 return $f->breadcrumbs([]);
139 return $f->mainControls()->mainBar();
146 return $f->mainControls()->footer()->withAdditionalText($text);
pageMetabarDemoFooter(\ILIAS\UI\Factory $f)
buildMetabar(\ILIAS\UI\Factory $f)
Interface Observer Contains several chained tasks and infos about them.
pageMetabarDemoCrumbs(\ILIAS\UI\Factory $f)
pageMetabarDemoContent(\ILIAS\UI\Factory $f)
Customizing of pimple-DIC for ILIAS.
if($request_wrapper->has('new_metabar_ui') && $request_wrapper->retrieve('new_metabar_ui', $refinery->kindlyTo() ->int())===1) renderMetaBarInFullscreenMode(Container $dic)
static initILIAS()
ilias initialisation
pageMetabarDemoMainbar(\ILIAS\UI\Factory $f)
base_metabar()
expected output: > ILIAS shows a link "See UI in fullscreen-mode".
ui()
Get the interface to get services from UI framework.
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...