ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
base.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
32
function
base
()
33
{
34
//Init Factory and Renderer
35
global
$DIC
;
36
$f
= $DIC->ui()->factory();
37
$renderer
= $DIC->ui()->renderer();
38
39
$content =
$f
->listing()->descriptive(
40
array(
41
"Entry 1"
=>
"Some text"
,
42
"Entry 2"
=>
"Some more text"
,
43
)
44
);
45
46
$image =
$f
->image()->responsive(
47
"./assets/images/logo/HeaderIcon.svg"
,
48
"Thumbnail Example"
49
);
50
51
$card =
$f
->card()->standard(
"Title"
, $image);
52
53
//Render
54
return
$renderer
->render($card);
55
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Card\Standard\base
base()
description: > Example for rendering a base card.
Definition:
base.php:32
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
base.php
Generated on Sun Aug 31 2025 23:04:08 for ILIAS by
1.8.13 (using
Doxyfile
)