ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
32function base()
33{
34 global $DIC;
35 $factory = $DIC->ui()->factory();
36 $renderer = $DIC->ui()->renderer();
37
38 $actions = $factory->dropdown()->standard(array(
39 $factory->button()->shy("ILIAS", "https://www.ilias.de"),
40 $factory->button()->shy("GitHub", "https://www.github.com")
41 ));
42
43 $legacy = $factory->legacy()->content("Legacy content");
44
45 $panel = $factory->panel()->secondary()->legacy(
46 "Legacy panel title",
47 $legacy
48 )->withActions($actions);
49
50 return $renderer->render($panel);
51}
$renderer
global $DIC
Definition: shib_login.php:26