ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.
5 function 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
$DIC
Definition: xapitoken.php:46