ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
21 function base()
22 {
23  global $DIC;
24  $f = $DIC->ui()->factory();
25  $renderer = $DIC->ui()->renderer();
26 
27  $target = new \ILIAS\Data\URI("https://ilias.de");
28 
29  $ico = $f->symbol()->icon()
30  ->standard('someExample', 'Example')
31  ->withAbbreviation('E')
32  ->withSize('medium');
33  $link = $f->link()->bulky($ico, 'Link to ilias.de with Icon', $target);
34 
35  $glyph = $f->symbol()->glyph()->briefcase();
36  $link2 = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target);
37 
38  $link3 = $f->link()->bulky($glyph, '', $target);
39  $link4 = $f->link()->bulky($ico, '', $target);
40 
41 
42  return $renderer->render([
43  $link,
44  $f->divider()->horizontal(),
45  $link2,
46  $f->divider()->horizontal(),
47  $link3,
48  $f->divider()->horizontal(),
49  $link4,
50  ]);
51 }
$renderer
global $DIC
Definition: shib_login.php:25