Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
);
$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
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:277
Generated on Mon Dec 2 2024 00:03:26 for Elgg by
1.8.11