ILIAS  release_8 Revision v8.23
with_object_icon_and_progressmeter_mini.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  $progressmeter = $f->chart()->progressMeter()->mini(100, 70);
16 
17  $content = $f->listing()->descriptive(
18  array(
19  "Entry 1" => "Some text",
20  "Entry 2" => "Some more text",
21  )
22  );
23 
24  $image = $f->image()->responsive(
25  "./templates/default/images/HeaderIcon.svg",
26  "Thumbnail Example"
27  );
28 
29  $card = $f->card()->repositoryObject(
30  "Title",
31  $image
32  )->withObjectIcon(
33  $icon
34  )->withProgress(
35  $progressmeter
36  )->withSections(
37  array(
38  $content,
39  $content,
40  )
41  );
42 
43  //Render
44  return $renderer->render($card);
45 }
global $DIC
Definition: feed.php:28