ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_object_icon_and_progressmeter_mini.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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  $progressmeter = $f->chart()->progressMeter()->mini(100, 70);
42 
43  $content = $f->listing()->descriptive(
44  array(
45  "Entry 1" => "Some text",
46  "Entry 2" => "Some more text",
47  )
48  );
49 
50  $image = $f->image()->responsive(
51  "./assets/images/logo/HeaderIcon.svg",
52  "Thumbnail Example"
53  );
54 
55  $card = $f->card()->repositoryObject(
56  "Title",
57  $image
58  )->withObjectIcon(
59  $icon
60  )->withProgress(
61  $progressmeter
62  )->withSections(
63  array(
64  $content,
65  $content,
66  )
67  );
68 
69  //Render
70  return $renderer->render($card);
71 }
$renderer
with_object_icon_and_progressmeter_mini()
descriptions: > Example for rendering a repository card with an object icon and small progressmeter ...
global $DIC
Definition: shib_login.php:22