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 function base()
8 {
9  $examples = array(
10  1 => 'om',
11  2 => 'gk',
12  3 => 'bj',
13  4 => 'ea',
14  5 => 'mf',
15  6 => 'ob',
16  7 => 'bi',
17  8 => 'hu',
18  9 => 'fa',
19  10 => 'so',
20  11 => 'il',
21  12 => 'ut',
22  13 => 'ur',
23  14 => 'lt',
24  15 => 'kg',
25  16 => 'jl',
26  17 => 'qb',
27  18 => 'rq',
28  19 => 'ot',
29  20 => 'cq',
30  21 => 'rm',
31  22 => 'aj',
32  23 => 'li',
33  24 => 'er',
34  25 => 'ui',
35  26 => 'mi',
36  );
37 
38  global $DIC;
39  $f = $DIC->ui()->factory();
40  $r = $DIC->ui()->renderer();
41 
42  $avatars = [];
43  foreach ($examples as $abbreviation) {
44  $letter = $f->symbol()->avatar()->letter($abbreviation);
45  $avatars[] = $letter;
46  }
47 
48  return $r->render($avatars);
49 }
global $DIC
Definition: feed.php:28