ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 //The Bulky Links in this example point to ilias.de
8 //Note the exact look of the Bulky Links is mostly defined by the
9 //surrounding container.
10 function base()
11 {
12  global $DIC;
13  $f = $DIC->ui()->factory();
14  $renderer = $DIC->ui()->renderer();
15 
16  $target = new \ILIAS\Data\URI("https://ilias.de");
17 
18  $ico = $f->symbol()->icon()
19  ->standard('someExample', 'Example')
20  ->withAbbreviation('E')
21  ->withSize('medium');
22  $link = $f->link()->bulky($ico, 'Link to ilias.de with Icon', $target);
23 
24  $glyph = $f->symbol()->glyph()->briefcase();
25  $link2 = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target);
26 
27  return $renderer->render([
28  $link,
29  $f->divider()->horizontal(),
30  $link2,
31  ]);
32 }
global $DIC
Definition: feed.php:28