19{
21 $f =
$DIC->ui()->factory();
22 $renderer =
$DIC->ui()->renderer();
23
24 $text = 'Additional info:';
25 $links = [];
26 $links[] =
$f->link()->standard(
"Goto ILIAS",
"http://www.ilias.de");
27
28 $footer =
$f->mainControls()->footer($links, $text);
29
30 $roundTripModal =
$f->modal()->roundtrip(
'Withdrawal of Consent',
$f->legacy(
'Withdrawal of Consent ...'));
31 $shyButton =
$f->button()->shy(
'Terms Of Service',
'#');
32 $footer = $footer->withAdditionalModalAndTrigger($roundTripModal, $shyButton);
33
34 return $footer;
35}
36
37if (
$_GET[
'new_footer_2_ui'] ==
'1') {
38 chdir('../../../../../');
39 require_once('src/UI/examples/Layout/Page/Standard/ui.php');
40 require_once('src/UI/examples/MainControls/Footer/footer.php');
41
43
45
46 $f =
$DIC->ui()->factory();
47 $renderer =
$DIC->ui()->renderer();
48 $logo =
$f->image()->responsive(
"templates/default/images/HeaderIcon.svg",
"ILIAS");
53
54 $entries = $mainbar->getEntries();
55 $tools = $mainbar->getToolEntries();
57
58 $page =
$f->layout()->page()->standard(
59 $content,
60 $metabar,
61 $mainbar,
62 $breadcrumbs,
63 $logo,
64 $footer,
65 'UI PAGE FOOTER DEMO',
66 'ILIAS',
67 'Std. Page Footer Demo'
68 )->withUIDemo(true);
69
70 echo $renderer->render($page);
71}
if($_GET['new_ui']=='1') if( $_GET[ 'replaced']=='1') _initIliasForPreview()
Below are helpers for the construction of demo-content.