ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
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 
33 function 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:22
base()
expected output: > ILIAS shows three colored sections with text.
Definition: base.php:33