ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
footer_with_modals.php
Go to the documentation of this file.
1 <?php
2 
4 {
5  global $DIC;
6  $f = $DIC->ui()->factory();
7  $renderer = $DIC->ui()->renderer();
8 
9  $url = 'src/UI/examples/MainControls/Footer/footer_with_modals.php?new_footer_2_ui=1';
10 
11  $page_demo = $f->button()->primary('See UI in fullscreen-mode', $url);
12 
13  return $renderer->render([
14  $page_demo
15  ]);
16 }
17 
19 {
20  global $DIC;
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 
37 if ($_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 
44  global $DIC;
45 
46  $f = $DIC->ui()->factory();
47  $renderer = $DIC->ui()->renderer();
48  $logo = $f->image()->responsive("templates/default/images/HeaderIcon.svg", "ILIAS");
49  $breadcrumbs = pageFooterDemoCrumbs($f);
50  $metabar = pageFooterDemoMetabar($f);
51  $mainbar = pageFooterDemoMainbar($f, $renderer);
52  $footer = pageFooterDemo2Footer($f);
53 
54  $entries = $mainbar->getEntries();
55  $tools = $mainbar->getToolEntries();
56  $content = pageFooterDemoContent($f, $renderer, $mainbar);
57 
58  $page = $f->layout()->page()->standard(
59  $content,
60  $metabar,
61  $mainbar,
62  $breadcrumbs,
63  $logo,
64  $footer,
65  'UI PAGE FOOTER DEMO', //page title
66  'ILIAS', //short title
67  'Std. Page Footer Demo' //view title
68  )->withUIDemo(true);
69 
70  echo $renderer->render($page);
71 }
$_GET["client_id"]
global $DIC
Definition: goto.php:24
if($_GET['new_ui']=='1') if($_GET['replaced']=='1') _initIliasForPreview()
Below are helpers for the construction of demo-content.
Definition: ui.php:71
$url