ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
16 function base()
17 {
18  global $DIC;
19  $factory = $DIC->ui()->factory();
20  $renderer = $DIC->ui()->renderer();
21 
22  $actions = $factory->dropdown()->standard(array(
23  $factory->button()->shy("ILIAS", "https://www.ilias.de"),
24  $factory->button()->shy("GitHub", "https://www.github.com")
25  ));
26 
27  $legacy = $factory->legacy("Legacy content");
28 
29  $panel = $factory->panel()->secondary()->legacy(
30  "Legacy panel title",
31  $legacy
32  )->withActions($actions);
33 
34  return $renderer->render($panel);
35 }
$renderer
base()
description: > Example for rendering a secondary legacy panel listing.
Definition: base.php:16
global $DIC
Definition: shib_login.php:25