ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_object_icon.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
34{
35 //Init Factory and Renderer
36 global $DIC;
37 $f = $DIC->ui()->factory();
38 $renderer = $DIC->ui()->renderer();
39
40 $icon = $f->symbol()->icon()->standard("crs", 'Course');
41
42 $image = $f->image()->responsive(
43 "./assets/images/logo/HeaderIcon.svg",
44 "Thumbnail Example"
45 );
46
47 $content = $f->listing()->descriptive(
48 array(
49 "Entry 1" => "Some text",
50 "Entry 2" => "Some more text",
51 )
52 );
53
54 $card = $f->card()->repositoryObject(
55 "Title",
56 $image
57 )->withObjectIcon(
58 $icon
59 )->withSections(
60 array(
61 $content,
62 $content
63 )
64 );
65 //Render
66 return $renderer->render($card);
67}
$renderer
global $DIC
Definition: shib_login.php:26