ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
39function base(): string
40{
41 global $DIC;
42 $factory = $DIC->ui()->factory();
43 $renderer = $DIC->ui()->renderer();
44
45 $icon = $factory->symbol()->icon()->standard('root', '')->withSize('large');
46 $target = new URI(
47 $DIC->http()->request()->getUri()->__toString() . '&new_ui=1'
48 );
49
50 return $renderer->render(
51 $factory->link()->bulky($icon, 'See UI in fullscreen-mode', $target),
52 );
53}
54
55global $DIC;
56$request_wrapper = $DIC->http()->wrapper()->query();
57$refinery = $DIC->refinery();
58
59if ($request_wrapper->has('new_ui')
60 && $request_wrapper->retrieve('new_ui', $refinery->kindlyTo()->int()) === 1
61) {
64 exit();
65}
66
68{
69 $factory = $dic->ui()->factory();
70 $renderer = $dic->ui()->renderer();
71 $dataFactory = new Factory();
72
73 $page = $factory->layout()->page()->mail(
74 'assets/ui-examples/css/mail_examples.css',
75 'data:image/svg+xml;base64,' . base64_encode(file_get_contents('assets/images/logo/HeaderIcon.svg')),
76 'ILIAS e-Learning',
77 $factory->legacy()->content('<h1>Mail Page Content</h1><p>Dear John Doe, ...<p/>'),
78 $dataFactory->link('https://www.ilias.de', $dataFactory->uri('https://www.ilias.de')),
79 );
80
81 return $renderer->render($page);
82}
$renderer
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Builds data types.
Definition: Factory.php:36
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration fil...
static initILIAS()
ilias initialisation
exit
$dic
Definition: ltiresult.php:33
if( $request_wrapper->has( 'new_ui') &&$request_wrapper->retrieve( 'new_ui', $refinery->kindlyTo() ->int())===1) renderFullDemoPage(Container $dic)
Definition: base.php:67