ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
with_sections.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Card\Standard
;
22
30
function
with_sections
()
31
{
32
//Init Factory and Renderer
33
global
$DIC
;
34
$f
= $DIC->ui()->factory();
35
$renderer
= $DIC->ui()->renderer();
36
37
$content =
$f
->listing()->descriptive(
38
array(
39
"Entry 1"
=>
"Some text"
,
40
"Entry 2"
=>
"Some more text"
,
41
)
42
);
43
44
$image =
$f
->image()->responsive(
45
"./assets/images/logo/HeaderIcon.svg"
,
46
"Thumbnail Example"
47
);
48
49
$card =
$f
->card()->standard(
50
"Title"
,
51
$image
52
)->withSections(
53
array(
54
$content,
55
$content,
56
$content
57
)
58
);
59
60
//Render
61
return
$renderer
->render($card);
62
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Card\Standard\with_sections
with_sections()
expected output: > ILIAS shows a base ILIAS-Logo.
Definition:
with_sections.php:30
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\examples\Card\Standard
Definition:
base.php:21
components
ILIAS
UI
src
examples
Card
Standard
with_sections.php
Generated on Sun Aug 31 2025 23:04:09 for ILIAS by
1.8.13 (using
Doxyfile
)