ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
mainbar.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
52function mainbar(): string
53{
54 global $DIC;
55 $f = $DIC['ui.factory'];
56 $renderer = $DIC['ui.renderer'];
57 $ctrl = $DIC['ilCtrl'];
58
59
60 $ctrl->setParameterByClass('ilsystemstyledocumentationgui', 'node_id', 'LayoutPageStandardStandard');
61 $ctrl->setParameterByClass('ilsystemstyledocumentationgui', 'new_ui', '1');
62 $url = $ctrl->getLinkTargetByClass('ilsystemstyledocumentationgui', 'entries');
63 $to_page = $f->link()->standard('Full Screen Page Layout', $url);
64 $txt = $f->legacy()->content('<p>Better head over to a preview of page to see a mainbar in its entire beauty...</p>');
65 return $renderer->render([
66 $txt,
67 $to_page
68 ]);
69}
$renderer
$txt
Definition: error.php:31
global $DIC
Definition: shib_login.php:26
$url
Definition: shib_logout.php:68