ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
footer.php File Reference

Go to the source code of this file.

Functions

 footer ()
 
 pageFooterDemoFooter ($f)
 
if($_GET['new_footer_ui']=='1') pageFooterDemoContent ($f, $r, $mainbar)
 
 pageFooterDemoMetabar ($f)
 
 pageFooterDemoCrumbs ($f)
 
 pageFooterDemoMainbar ($f, $r)
 

Function Documentation

◆ footer()

footer ( )

Definition at line 3 of file footer.php.

References $DIC, Vendor\Package\$f, and $url.

Referenced by ilWorkspaceAccessGUI\__construct(), ILIAS\UI\Implementation\Component\Layout\Page\Standard\__construct(), ILIAS\UI\Implementation\Component\Layout\Page\Standard\hasFooter(), ilPanelGUI\setFooter(), FooterTest\testRendering(), FooterTest\testRenderingModalsWithTriggers(), FooterTest\testRenderingNoLinks(), and FooterTest\testRenderingPermUrl().

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 }
global $DIC
Definition: goto.php:24
$url
+ Here is the caller graph for this function:

◆ pageFooterDemoContent()

if ( $_GET[ 'new_footer_ui']=='1') pageFooterDemoContent (   $f,
  $r,
  $mainbar 
)

Definition at line 77 of file footer.php.

References Vendor\Package\$f.

Referenced by pageFooterDemo2Footer(), and pageFooterDemoFooter().

78 {
79  return array(
80  $f->panel()->standard(
81  'All about the Footer',
82  $f->legacy(
83  "See bellow"
84  )
85  ),
86  );
87 }
+ Here is the caller graph for this function:

◆ pageFooterDemoCrumbs()

pageFooterDemoCrumbs (   $f)

Definition at line 95 of file footer.php.

References Vendor\Package\$f.

Referenced by pageFooterDemo2Footer(), and pageFooterDemoFooter().

96 {
97  return $f->breadcrumbs([]);
98 }
+ Here is the caller graph for this function:

◆ pageFooterDemoFooter()

pageFooterDemoFooter (   $f)

Definition at line 18 of file footer.php.

References $_GET, $_SERVER, $DIC, Vendor\Package\$f, _initIliasForPreview(), pageFooterDemoContent(), pageFooterDemoCrumbs(), pageFooterDemoMainbar(), and pageFooterDemoMetabar().

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 
42 if ($_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 }
$_GET["client_id"]
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
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
+ Here is the call graph for this function:

◆ pageFooterDemoMainbar()

pageFooterDemoMainbar (   $f,
  $r 
)

Definition at line 100 of file footer.php.

References Vendor\Package\$f.

Referenced by pageFooterDemo2Footer(), and pageFooterDemoFooter().

101 {
102  return $f->mainControls()->mainbar();;
103 }
+ Here is the caller graph for this function:

◆ pageFooterDemoMetabar()

pageFooterDemoMetabar (   $f)

Definition at line 89 of file footer.php.

References Vendor\Package\$f.

Referenced by pageFooterDemo2Footer(), and pageFooterDemoFooter().

90 {
91  $help = $f->button()->bulky($f->symbol()->glyph()->help(), 'Help', '#');
92  return $f->mainControls()->metabar()->withAdditionalEntry('help', $help);
93 }
+ Here is the caller graph for this function: