Elgg  Version 3.0
Go to the documentation of this file.
1 <?php
9 $class = elgg_extract_class($vars, ['elgg-icon']);
11 $convert = elgg_extract('convert', $vars, true);
12 unset($vars['convert']);
16 echo elgg_format_element('span', $vars, '');
Definition: icon.php:14
_elgg_map_icon_glyph_class(array $classes, $map_sprites=true)
Maps legacy sprite classes and FontAwesome 4 classes to FontAwesome 5 classes.
Definition: views.php:2015
Display an icon from the FontAwesome library.
Definition: icon.php:9
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
Definition: icon.php:11
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131