ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
mainbar.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
36 function mainbar(): string
37 {
38  global $DIC;
39  $f = $DIC['ui.factory'];
40  $renderer = $DIC['ui.renderer'];
41  $ctrl = $DIC['ilCtrl'];
42 
43 
44  $ctrl->setParameterByClass('ilsystemstyledocumentationgui', 'node_id', 'LayoutPageStandardStandard');
45  $ctrl->setParameterByClass('ilsystemstyledocumentationgui', 'new_ui', '1');
46  $url = $ctrl->getLinkTargetByClass('ilsystemstyledocumentationgui', 'entries');
47  $to_page = $f->link()->standard('Full Screen Page Layout', $url);
48  $txt = $f->legacy('<p>Better head over to a preview of page to see a mainbar in its entire beauty...</p>');
49  return $renderer->render([
50  $txt,
51  $to_page
52  ]);
53 }
$renderer
$url
Definition: shib_logout.php:63
mainbar()
expected output: > ILIAS shows a link "Full Screen Page Layout".
Definition: mainbar.php:36
global $DIC
Definition: shib_login.php:25
$txt
Definition: error.php:30