ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
base.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
7
function
base
()
8
{
9
//Init Factory and Renderer
10
global
$DIC
;
11
$f
=
$DIC
->ui()->factory();
12
$renderer =
$DIC
->ui()->renderer();
13
14
$content =
$f
->listing()->descriptive(
15
array(
16
"Entry 1"
=>
"Some text"
,
17
"Entry 2"
=>
"Some more text"
,
18
)
19
);
20
21
$image =
$f
->image()->responsive(
22
"./templates/default/images/HeaderIcon.svg"
,
23
"Thumbnail Example"
24
);
25
26
$card =
$f
->card()->standard(
"Title"
, $image);
27
28
//Render
29
return
$renderer->render($card);
30
}
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\Card\Standard
Definition:
base.php:5
ILIAS\UI\examples\Card\Standard\base
base()
Definition:
base.php:7
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
src
UI
examples
Card
Standard
base.php
Generated on Sun Nov 2 2025 22:02:02 for ILIAS by
1.9.4 (using
Doxyfile
)