Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function display() |
||
20 | { |
||
21 | parent::display(); |
||
22 | |||
23 | App::$Alias->setCustomLibrary('css', '/vendor/phpffcms/language-flags/flags.css'); |
||
24 | |||
25 | $items = []; |
||
26 | foreach (App::$Translate->getAvailableLangs() as $lang) { |
||
27 | $items[] = [ |
||
28 | 'type' => 'text', |
||
29 | 'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" />', |
||
30 | 'html' => true, |
||
31 | '!secure' => true |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | return Listing::display([ |
||
36 | 'type' => 'ul', |
||
37 | 'property' => ['class' => 'list-inline'], |
||
38 | 'items' => $items |
||
39 | ]); |
||
40 | } |
||
41 | } |