ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
base.php
Go to the documentation of this file.
1<?php
2
3function base()
4{
5 global $DIC;
6 $factory = $DIC->ui()->factory();
7 $renderer = $DIC->ui()->renderer();
8
9 $actions = $factory->dropdown()->standard(array(
10 $factory->button()->shy("ILIAS", "https://www.ilias.de"),
11 $factory->button()->shy("GitHub", "https://www.github.com")
12 ));
13
14 $legacy = $factory->legacy("Legacy content");
15
16 $panel = $factory->panel()->secondary()->legacy(
17 "Legacy panel title",
18 $legacy
19 )->withActions($actions);
20
21 return $renderer->render($panel);
22}
base()
Definition: base.php:4
An exception for terminatinating execution or to throw for unit testing.
$factory
Definition: metadata.php:58
$DIC
Definition: xapitoken.php:46