ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
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  $f = $DIC->ui()->factory();
36  $renderer = $DIC->ui()->renderer();
37 
38  $block = $f->panel()->standard(
39  "Panel Title",
40  $f->panel()->sub("Sub Panel Title", $f->legacy()->content("Some Content"))
41  );
42 
43  return $renderer->render($block);
44 }
$renderer
base()
description: > Example for rendering a sub panel.
Definition: base.php:32
global $DIC
Definition: shib_login.php:22