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 
17 function base()
18 {
19  global $DIC;
20  $ui_factory = $DIC['ui.factory'];
21  $renderer = $DIC['ui.renderer'];
22  $tpl = $DIC['tpl'];
23  $tpl->addCss('assets/ui-examples/css/alignment_examples.css');
24 
25  $blocks = [
26  $ui_factory->legacy('<div class="example_block fullheight blue">Example Block</div>'),
27  $ui_factory->legacy('<div class="example_block fullheight green">Another Example Block</div>'),
28  $ui_factory->legacy('<div class="example_block fullheight yellow">And a third block is also part of this group</div>')
29  ];
30 
31  $vertical = $ui_factory->layout()->alignment()->vertical(...$blocks);
32  return $renderer->render($vertical);
33 }
$renderer
global $DIC
Definition: shib_login.php:25
base()
expected output: > ILIAS shows three colored sections with text.
Definition: base.php:17