ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
with_object_icon_and_certificate.php File Reference

Go to the source code of this file.

Functions

 with_object_icon_and_certificate ()
 

Function Documentation

◆ with_object_icon_and_certificate()

with_object_icon_and_certificate ( )

Definition at line 5 of file with_object_icon_and_certificate.php.

6{
7 //Init Factory and Renderer
8 global $DIC;
9 $f = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
11
12 $icon = $f->symbol()->icon()->standard("crs", 'Course')->withIsOutlined(true);
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()->repositoryObject(
27 "Title",
28 $image
29 )->withObjectIcon(
30 $icon
31 )->withCertificateIcon(
32 true
33 )->withSections(
34 array(
35 $content,
36 $content,
37 )
38 );
39
40 //Render
41 return $renderer->render($card);
42}
$DIC
Definition: xapitoken.php:46

References $DIC, and Vendor\Package\$f.