ILIAS  release_7 Revision v7.30-3-g800a261c036
footer.php
Go to the documentation of this file.
1<?php
2
3function footer()
4{
5 global $DIC;
6 $f = $DIC->ui()->factory();
7 $renderer = $DIC->ui()->renderer();
8
9 $url = 'src/UI/examples/MainControls/Footer/footer.php?new_footer_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 $df = new \ILIAS\Data\Factory();
23 $renderer = $DIC->ui()->renderer();
24
25 $text = 'Additional info:';
26 $links = [];
27 $links[] = $f->link()->standard("Goto ILIAS", "http://www.ilias.de");
28 $links[] = $f->link()->standard("Goto Mantis", "http://mantis.ilias.de");
29
30 return $f->mainControls()->footer($links, $text)->withPermanentURL(
31 $df->uri(
32 (isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME']:"http") . '://'
33 . (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME']:"localhost") . ':'
34 . (isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT']:"80")
35 . (isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']:"")
36 . "?new_footer_ui=1"
37 )
38 );
39}
40
41
42if ($_GET['new_footer_ui'] == '1') {
43 chdir('../../../../../');
44 require_once('src/UI/examples/Layout/Page/Standard/ui.php');
46
47 global $DIC;
48
49 $f = $DIC->ui()->factory();
50 $renderer = $DIC->ui()->renderer();
51 $logo = $f->image()->responsive("templates/default/images/HeaderIcon.svg", "ILIAS");
52 $breadcrumbs = pageFooterDemoCrumbs($f);
53 $metabar = pageFooterDemoMetabar($f);
54 $mainbar = pageFooterDemoMainbar($f, $renderer);
55 $footer = pageFooterDemoFooter($f);
56
57 $entries = $mainbar->getEntries();
58 $tools = $mainbar->getToolEntries();
59 $content = pageFooterDemoContent($f, $renderer, $mainbar);
60
61 $page = $f->layout()->page()->standard(
62 $content,
63 $metabar,
64 $mainbar,
65 $breadcrumbs,
66 $logo,
67 $footer,
68 'UI PAGE FOOTER DEMO', //page title
69 'ILIAS', //short title
70 'Std. Page Footer Demo' //view title
71 )->withUIDemo(true);
72
73 echo $renderer->render($page);
74}
75
76
77function pageFooterDemoContent($f, $r, $mainbar)
78{
79 return array(
80 $f->panel()->standard(
81 'All about the Footer',
82 $f->legacy(
83 "See bellow"
84 )
85 ),
86 );
87}
88
90{
91 $help = $f->button()->bulky($f->symbol()->glyph()->help(), 'Help', '#');
92 return $f->mainControls()->metabar()->withAdditionalEntry('help', $help);
93}
94
96{
97 return $f->breadcrumbs([]);
98}
99
101{
102 return $f->mainControls()->mainbar();;
103}
104
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
if( $_GET[ 'new_footer_ui']=='1') pageFooterDemoContent($f, $r, $mainbar)
Definition: footer.php:77
pageFooterDemoMainbar($f, $r)
Definition: footer.php:100
pageFooterDemoFooter($f)
Definition: footer.php:18
pageFooterDemoMetabar($f)
Definition: footer.php:89
footer()
Definition: footer.php:3
pageFooterDemoCrumbs($f)
Definition: footer.php:95
global $DIC
Definition: goto.php:24
$url
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
if($_GET['new_ui']=='1') if( $_GET[ 'replaced']=='1') _initIliasForPreview()
Below are helpers for the construction of demo-content.
Definition: ui.php:71