28 $title = htmlspecialchars(
$entity->getDisplayName() ??
'', ENT_QUOTES,
'UTF-8',
false);
35 if (!isset(
$vars[
'width'])) {
38 if (!isset(
$vars[
'height'])) {
51 if (!empty(
$vars[
'width'])) {
55 if (!empty(
$vars[
'height'])) {
if(elgg_extract('use_link', $vars, true)) if(!isset($vars['width'])) if(!isset($vars['height'])) $img_params
if(elgg_extract('use_link', $vars, true)) if(!isset($vars['width'])) if(!isset($vars['height'])) if(!empty($img_class)) if(!empty($vars['width'])) if(!empty($vars['height'])) $img
elgg_get_icon_sizes($entity_type=null, $entity_subtype=null, $type= 'icon')
Returns a configuration array of icon sizes.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
if(!array_key_exists($size, $icon_sizes)) $vars['size']
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!$entity instanceof ElggEntity) $icon_sizes
$entity
Generic icon view.
elgg echo
Translates a string.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.