$vars['class']
Display an icon from the FontAwesome library.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
$entity
Generic entity icon upload helper.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
if($entity instanceof ElggEntity) $content
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.