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
35function base()
36{
37 global $DIC;
38 $ui_factory = $DIC['ui.factory'];
39 $renderer = $DIC['ui.renderer'];
40 $tpl = $DIC['tpl'];
41 $tpl->addCss('assets/ui-examples/css/alignment_examples.css');
42
43 $blocks = [
44 $ui_factory->legacy()->content('<div class="example_block fullheight blue">Example Block</div>'),
45 $ui_factory->legacy()->content('<div class="example_block fullheight green">Another Example Block</div>'),
46 $ui_factory->legacy()->content('<div class="example_block fullheight yellow">And a third block is also part of this group</div>')
47 ];
48
49 return $renderer->render(
50 $ui_factory->layout()->alignment()->horizontal()
51 ->dynamicallyDistributed(...$blocks)
52 );
53}
$renderer
global $DIC
Definition: shib_login.php:26