Elgg
Version 6.0
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 Sat Nov 9 2024 00:00:24 for Elgg by
1.8.11