ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
32 function 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
base()
description: > Example for rendering a secondary legacy panel listing.
Definition: base.php:32
global $DIC
Definition: shib_login.php:22