3 declare(strict_types=1);
23 $f = $DIC->ui()->factory();
26 $url = $DIC->http()->request()->getUri()->__toString() .
'&new_metabar_ui=1';
28 The Metabar Example opens in Fullscreen to showcase the behaviour of the metabar best. 29 Note, an comprensive example for developers on how to access the JS API of the Metabar 30 feature bellow in the second example. 33 $page_demo =
$f->link()->standard(
'See UI in fullscreen-mode',
$url);
43 $help = $f->button()->bulky($f->symbol()->glyph()->help(),
'Help',
'#');
44 $search = $f->button()->bulky($f->symbol()->glyph()->search(),
'Search',
'#');
45 $user = $f->button()->bulky($f->symbol()->glyph()->user(),
'User',
'#');
47 $notes = $f->mainControls()->slate()->legacy(
49 $f->symbol()->glyph()->notification(),
50 $f->legacy(
'some content')
53 return $f->mainControls()->metaBar()
54 ->withAdditionalEntry(
'search', $search)
55 ->withAdditionalEntry(
'help', $help)
56 ->withAdditionalEntry(
'notes', $notes)
57 ->withAdditionalEntry(
'user', $user);
73 $f = $dic->
ui()->factory();
75 $logo =
$f->image()->responsive(
"assets/images/logo/HeaderIcon.svg",
"ILIAS");
76 $responsive_logo =
$f->image()->responsive(
"assets/images/logo/HeaderIconResponsive.svg",
"ILIAS");
81 $tc = $dic->
ui()->factory()->toast()->container();
85 $page =
$f->layout()->page()->standard(
92 "./assets/images/logo/favicon.ico",
107 $f->panel()->standard(
108 'All about the Meta Bar',
118 return $f->breadcrumbs([]);
123 return $f->mainControls()->mainBar();
130 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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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
This is how the factory for UI elements looks.
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.