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