ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
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  $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
global $DIC
Definition: shib_login.php:22
base()
expected output: > ILIAS shows three colored text-blocks.
Definition: base.php:32