ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
with_object_icon_and_certificate.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 {
9  //Init Factory and Renderer
10  global $DIC;
11  $f = $DIC->ui()->factory();
12  $renderer = $DIC->ui()->renderer();
13 
14  $icon = $f->symbol()->icon()->standard("crs", 'Course');
15 
16  $content = $f->listing()->descriptive(
17  array(
18  "Entry 1" => "Some text",
19  "Entry 2" => "Some more text",
20  )
21  );
22 
23  $image = $f->image()->responsive(
24  "./templates/default/images/HeaderIcon.svg",
25  "Thumbnail Example"
26  );
27 
28  $card = $f->card()->repositoryObject(
29  "Title",
30  $image
31  )->withObjectIcon(
32  $icon
33  )->withCertificateIcon(
34  true
35  )->withSections(
36  array(
37  $content,
38  $content,
39  )
40  );
41 
42  //Render
43  return $renderer->render($card);
44 }
global $DIC
Definition: feed.php:28