ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
with_object_icon_and_certificate.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Card\RepositoryObject
;
22
32
function
with_object_icon_and_certificate
()
33
{
34
//Init Factory and Renderer
35
global
$DIC
;
36
$f
=
$DIC
->ui()->factory();
37
$renderer
=
$DIC
->ui()->renderer();
38
39
$icon =
$f
->symbol()->icon()->standard(
"crs"
,
'Course'
);
40
41
$content =
$f
->listing()->descriptive(
42
array(
43
"Entry 1"
=>
"Some text"
,
44
"Entry 2"
=>
"Some more text"
,
45
)
46
);
47
48
$image =
$f
->image()->responsive(
49
"./assets/images/logo/HeaderIcon.svg"
,
50
"Thumbnail Example"
51
);
52
53
$card =
$f
->card()->repositoryObject(
54
"Title"
,
55
$image
56
)->withObjectIcon(
57
$icon
58
)->withCertificateIcon(
59
true
60
)->withSections(
61
array(
62
$content,
63
$content,
64
)
65
);
66
67
//Render
68
return
$renderer
->render($card);
69
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Card\RepositoryObject
Definition:
base.php:21
ILIAS\UI\examples\Card\RepositoryObject\with_object_icon_and_certificate
with_object_icon_and_certificate()
Definition:
with_object_icon_and_certificate.php:32
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Card
RepositoryObject
with_object_icon_and_certificate.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)