Elgg  Version 3.0
icon.php
Go to the documentation of this file.
1 <?php
9 $class = elgg_extract_class($vars, ['elgg-icon']);
10 
11 $convert = elgg_extract('convert', $vars, true);
12 unset($vars['convert']);
13 
15 
16 echo elgg_format_element('span', $vars, '');
$vars['class']
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
$class
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
$convert
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