ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_object_icon_and_certificate.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
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
global $DIC
Definition: shib_login.php:26