Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
components
column
icon.php
Go to the documentation of this file.
1
<?php
11
$item
=
elgg_extract
(
'item'
,
$vars
);
12
if
(!
$item
instanceof
ElggEntity
) {
13
return
;
14
}
15
16
$size
=
elgg_extract
(
'size'
,
$vars
,
'small'
);
17
unset(
$vars
[
'item'
]);
18
unset(
$vars
[
'size'
]);
19
20
echo
elgg_view_entity_icon
(
$item
,
$size
,
$vars
);
$size
if(!$item instanceof ElggEntity) $size
Definition:
icon.php:16
$vars
$vars['class']
Display an icon from the FontAwesome library.
Definition:
icon.php:8
$item
$item
Render an icon.
Definition:
icon.php:11
elgg_extract
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:256
elgg_view_entity_icon
elgg_view_entity_icon(\ElggEntity $entity, string $size= 'medium', array $vars=[])
View the icon of an entity.
Definition:
views.php:542
ElggEntity
Definition:
ElggEntity.php:52
Generated on Wed Dec 4 2024 00:00:22 for Elgg by
1.8.11