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
35function base()
36{
37 global $DIC;
38 $f = $DIC->ui()->factory();
39 $renderer = $DIC->ui()->renderer();
40
41 $ico = $f->symbol()->icon()
42 ->standard('someExample', 'Example')
43 ->withAbbreviation('E')
44 ->withSize('medium');
45 $button = $f->button()->bulky($ico, 'Icon', '#');
46
47 $glyph = $f->symbol()->glyph()->briefcase();
48 $button2 = $f->button()->bulky($glyph, 'Glyph', '#');
49
50 $button3 = $f->button()->bulky($glyph, '', '#');
51 $button4 = $f->button()->bulky($ico, '', '#');
52
53 return $renderer->render([
54 $button,
55 $f->divider()->horizontal(),
56 $button2,
57 $f->divider()->horizontal(),
58 $button3,
59 $f->divider()->horizontal(),
60 $button4
61 ]);
62}
$renderer
global $DIC
Definition: shib_login.php:26