ILIAS  release_8 Revision v8.24
default_icon.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7function default_icon()
8{
9 global $DIC;
10 $f = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12
13 $buffer = array();
14
15 $ico = $f->symbol()->icon()->standard('someExample', 'Example');
16 $ico = $ico->withAbbreviation('E');
17
18 $buffer[] = $renderer->render($ico)
19 . ' Small Example with Short Abbreviation';
20
21 $buffer[] = $renderer->render($ico->withSize('medium'))
22 . ' Medium Example with Short Abbreviation';
23
24 $buffer[] = $renderer->render($ico->withSize('large'))
25 . ' Large Example with Short Abbreviation';
26
27
28 $ico = $f->symbol()->icon()->standard('someOtherExample', 'Example');
29 $ico = $ico->withAbbreviation('LA');
30
31 $buffer[] = $renderer->render($ico->withSize('small'))
32 . ' Small Example with Long Abbreviation';
33
34 $buffer[] = $renderer->render($ico->withSize('medium'))
35 . ' Medium Example with Long Abbreviation';
36
37 $buffer[] = $renderer->render($ico->withSize('large'))
38 . ' Large Example with Long Abbreviation';
39
40
41 return implode('<br><br>', $buffer);
42}
global $DIC
Definition: feed.php:28