ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
nested.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Layout\Alignment\Horizontal\EvenlyDistributed
;
6
7
function
nested
()
8
{
9
global
$DIC
;
10
$ui_factory = $DIC[
'ui.factory'
];
11
$renderer = $DIC[
'ui.renderer'
];
12
$tpl = $DIC[
'tpl'
];
13
$tpl->addCss(
'src/UI/examples/Layout/Alignment/alignment_examples.css'
);
14
15
$blocks = [
16
$ui_factory->legacy(
'<div class="example_block fullheight blue">D</div>'
),
17
$ui_factory->legacy(
'<div class="example_block fullheight green">E</div>'
),
18
$ui_factory->legacy(
'<div class="example_block fullheight yellow">F</div>'
)
19
];
20
21
$aligned = $ui_factory->layout()->alignment()->horizontal()->evenlyDistributed(
22
$ui_factory->legacy(
'<div class="example_block bluedark">A</div>'
),
23
$ui_factory->legacy(
'<div class="example_block greendark">B</div>'
),
24
$ui_factory->legacy(
'<div class="example_block yellowdark">C</div>'
)
25
);
26
27
return
$renderer->render(
28
$ui_factory->layout()->alignment()->horizontal()
29
->evenlyDistributed(
30
$aligned,
31
...$blocks
32
)
33
);
34
}
ILIAS\UI\examples\Layout\Alignment\Horizontal\EvenlyDistributed\nested
nested()
Definition:
nested.php:7
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\Layout\Alignment\Horizontal\EvenlyDistributed
Definition:
base.php:5
src
UI
examples
Layout
Alignment
Horizontal
EvenlyDistributed
nested.php
Generated on Wed Sep 10 2025 14:12:11 for ILIAS by
1.8.13 (using
Doxyfile
)