ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
base.php
Go to the documentation of this file.
1<?php
2//The Bulky Links in this example point to ilias.de
3//Note the exact look of the Bulky Links is mostly defined by the
4//surrounding container.
5function base()
6{
7 global $DIC;
8 $f = $DIC->ui()->factory();
9 $renderer = $DIC->ui()->renderer();
10
11 $target = new \ILIAS\Data\URI("https://ilias.de");
12
13 $ico = $f->symbol()->icon()
14 ->standard('someExample', 'Example')
15 ->withAbbreviation('E')
16 ->withSize('medium');
17 $link = $f->link()->bulky($ico, 'Link to ilias.de with Icon', $target);
18
19 $glyph = $f->symbol()->glyph()->briefcase();
20 $link2 = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target);
21
22 return $renderer->render([
23 $link,
24 $f->divider()->horizontal(),
25 $link2,
26 ]);
27}
base()
Definition: base.php:4
An exception for terminatinating execution or to throw for unit testing.
$DIC
Definition: xapitoken.php:46