Elgg
Version master
views
default
output
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
);
elgg_extract_class
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:279
$vars
$vars['class']
Display an icon from the FontAwesome library.
Definition:
icon.php:8
elgg_format_element
elgg_format_element(string $tag_name, array $attributes=[], string $text='', array $options=[])
Format an HTML element.
Definition:
output.php:145
Generated on Fri Aug 29 2025 00:01:59 for Elgg by
1.9.1