ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 function base()
8 {
9  global $DIC;
10  $f = $DIC->ui()->factory();
11  $renderer = $DIC->ui()->renderer();
12 
13  $props = $f->listing()->property()
14  ->withProperty('Title', 'Some Title')
15  ->withProperty('number', '7')
16  ->withProperty(
17  'status',
18  $renderer->render(
19  $f->symbol()->icon()->custom('./templates/default/images/learning_progress/in_progress.svg', 'incomplete'),
20  ) . ' in progress',
21  false
22  );
23 
24  $props2 = $props->withItems([
25  ['a', "1"],
26  ['y', "25", false],
27  ['link', $f->link()->standard('Goto ILIAS', 'http://www.ilias.de')]
28  ]);
29 
30  return $renderer->render([
31  $props,
32  $f->divider()->horizontal(),
33  $props2
34  ]);
35 }
global $DIC
Definition: feed.php:28