ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
37function base()
38{
39 global $DIC;
40 $f = $DIC->ui()->factory();
41 $renderer = $DIC->ui()->renderer();
42
43 $target = new \ILIAS\Data\URI("https://ilias.de");
44
45 $ico = $f->symbol()->icon()
46 ->standard('someExample', 'Example')
47 ->withAbbreviation('E')
48 ->withSize('medium');
49 $link = $f->link()->bulky($ico, 'Link to ilias.de with Icon', $target);
50
51 $glyph = $f->symbol()->glyph()->briefcase();
52 $link2 = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target);
53
54 $link3 = $f->link()->bulky($glyph, '', $target);
55 $link4 = $f->link()->bulky($ico, '', $target);
56
57
58 return $renderer->render([
59 $link,
60 $f->divider()->horizontal(),
61 $link2,
62 $f->divider()->horizontal(),
63 $link3,
64 $f->divider()->horizontal(),
65 $link4,
66 ]);
67}
$renderer
global $DIC
Definition: shib_login.php:26