ILIAS  release_8 Revision v8.24
headline.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
10function headline()
11{
12 //Loading factories
13 global $DIC;
14 $f = $DIC->ui()->factory();
15 $renderer = $DIC->ui()->renderer();
16
17 //Genarating and rendering the mini progressmeter
18 $progressmeter = $f->chart()->progressMeter()->mini(100, 75);
19
20 // render
21 return '<h3 style="display: inline-block;">Your Progress: </h3><div style="display: inline-block; padding-left: 20px">' .
22 $renderer->render($progressmeter) . '</div>';
23}
global $DIC
Definition: feed.php:28
headline()
Example for rendering a mini Progress Meter as part of a headline.
Definition: headline.php:10