Elgg  Version master
icon.php
Go to the documentation of this file.
1 <?php
8 $vars['class'] = elgg_extract_class($vars, ['elgg-icon']);
9 
10 echo elgg_format_element('span', $vars);
$vars['class']
Display an icon from the FontAwesome library.
Definition: icon.php:8
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:277