Go to the source code of this file.
◆ with_image_action()
Definition at line 5 of file with_image_action.php.
6{
7
10 $renderer =
$DIC->ui()->renderer();
11
12 $icon =
$f->icon()->standard(
"crs",
'Course')->withIsOutlined(
true);
13
14 $image =
$f->image()->responsive(
15 "./templates/default/images/HeaderIcon.svg",
16 "Thumbnail Example"
17 );
18
19 $url =
"http://ilias.de";
20
21 $content =
$f->listing()->descriptive(
22 array(
23 "Entry 1" => "Some text",
24 "Entry 2" => "Some more text",
25 )
26 );
27
28 $card =
$f->card()->repositoryObject(
29 "Title",
30 $image
31 )->withObjectIcon(
32 $icon
33 )->withSections(
34 array(
35 $content,
36 $content
37 )
38 )->withImageAction(
40 );
41
42 return $renderer->render($card);
43}
References $DIC, $f, and $url.