ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
headline.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
32 function headline()
33 {
34  //Loading factories
35  global $DIC;
36  $f = $DIC->ui()->factory();
37  $renderer = $DIC->ui()->renderer();
38 
39  //Genarating and rendering the mini progressmeter
40  $progressmeter = $f->chart()->progressMeter()->mini(100, 75);
41 
42  // render
43  return '<h3 style="display: inline-block;">Your Progress: </h3><div style="display: inline-block; padding-left: 20px">' .
44  $renderer->render($progressmeter) . '</div>';
45 }
$renderer
global $DIC
Definition: shib_login.php:22
headline()
description: > Example for rendering a mini Progress Meter as part of a headline ...
Definition: headline.php:32