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