ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function base()
34{
35 global $DIC;
36 $ui_factory = $DIC['ui.factory'];
37 $renderer = $DIC['ui.renderer'];
38 $tpl = $DIC['tpl'];
39 $tpl->addCss('assets/ui-examples/css/alignment_examples.css');
40
41 $blocks = [
42 $ui_factory->legacy()->content('<div class="example_block fullheight blue">Example Block</div>'),
43 $ui_factory->legacy()->content('<div class="example_block fullheight green">Another Example Block</div>'),
44 $ui_factory->legacy()->content('<div class="example_block fullheight yellow">And a third block is also part of this group</div>')
45 ];
46
47 $vertical = $ui_factory->layout()->alignment()->vertical(...$blocks);
48 return $renderer->render($vertical);
49}
$renderer
global $DIC
Definition: shib_login.php:26