ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
with_sections.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Card\Standard
;
6
14
function
with_sections
()
15
{
16
//Init Factory and Renderer
17
global
$DIC
;
18
$f
= $DIC->ui()->factory();
19
$renderer
= $DIC->ui()->renderer();
20
21
$content =
$f
->listing()->descriptive(
22
array(
23
"Entry 1"
=>
"Some text"
,
24
"Entry 2"
=>
"Some more text"
,
25
)
26
);
27
28
$image =
$f
->image()->responsive(
29
"./assets/images/logo/HeaderIcon.svg"
,
30
"Thumbnail Example"
31
);
32
33
$card =
$f
->card()->standard(
34
"Title"
,
35
$image
36
)->withSections(
37
array(
38
$content,
39
$content,
40
$content
41
)
42
);
43
44
//Render
45
return
$renderer
->render($card);
46
}
$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:14
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:25
ILIAS\UI\examples\Card\Standard
Definition:
base.php:5
components
ILIAS
UI
src
examples
Card
Standard
with_sections.php
Generated on Wed Sep 10 2025 15:16:44 for ILIAS by
1.8.13 (using
Doxyfile
)