3 declare(strict_types=1);
12 $f = $DIC->ui()->factory();
13 $renderer = $DIC->ui()->renderer();
15 $url =
'src/UI/examples/MainControls/Metabar/base_metabar.php?new_metabar_ui=1';
17 The Metabar Example opens in Fullscreen to showcase the behaviour of the metabar best. 18 Note, an comprensive example for developers on how to access the JS API of the Metabar 19 feature bellow in the second example. 22 $page_demo =
$f->link()->standard(
'See UI in fullscreen-mode',
$url);
24 return $renderer->render([
32 $help = $f->button()->bulky($f->symbol()->glyph()->help(),
'Help',
'#');
33 $search = $f->button()->bulky($f->symbol()->glyph()->search(),
'Search',
'#');
34 $user = $f->button()->bulky($f->symbol()->glyph()->user(),
'User',
'#');
36 $notes = $f->mainControls()->slate()->legacy(
38 $f->symbol()->glyph()->notification(),
39 $f->legacy(
'some content')
42 return $f->mainControls()->metaBar()
43 ->withAdditionalEntry(
'search', $search)
44 ->withAdditionalEntry(
'help', $help)
45 ->withAdditionalEntry(
'notes', $notes)
46 ->withAdditionalEntry(
'user', $user);
52 if (basename(
$_SERVER[
"SCRIPT_FILENAME"]) ==
"base_metabar.php") {
53 chdir(
'../../../../../');
54 require_once(
"libs/composer/vendor/autoload.php");
67 $f = $dic->
ui()->factory();
68 $renderer = $dic->
ui()->renderer();
69 $logo =
$f->image()->responsive(
"templates/default/images/HeaderIcon.svg",
"ILIAS");
70 $responsive_logo =
$f->image()->responsive(
"templates/default/images/HeaderIconResponsive.svg",
"ILIAS");
75 $tc = $dic->
ui()->factory()->toast()->container();
79 $page =
$f->layout()->page()->standard(
86 "./templates/default/images/favicon.ico",
94 return $renderer->render($page);
101 $f->panel()->standard(
102 'All about the Meta Bar',
112 return $f->breadcrumbs([]);
117 return $f->mainControls()->mainBar();
125 return $f->mainControls()->footer($links, $text);
pageMetabarDemoFooter(\ILIAS\UI\Factory $f)
buildMetabar(\ILIAS\UI\Factory $f)
Class ChatMainBarProvider .
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.
static initILIAS()
ilias initialisation
pageMetabarDemoMainbar(\ILIAS\UI\Factory $f)
if(basename($_SERVER["SCRIPT_FILENAME"])=="base_metabar.php") if(isset($request_wrapper) &&isset($refinery) && $request_wrapper->has('new_metabar_ui') && $request_wrapper->retrieve('new_metabar_ui', $refinery->kindlyTo() ->string())=='1') renderMetaBarInFullscreenMode(Container $dic)
ui()
Get the interface to get services from UI framework.
Refinery Factory $refinery