ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
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 
35 function 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:22
base()
expected output: > ILIAS shows three colored text-blocks.
Definition: base.php:35