Elgg
Version master
|
Go to the source code of this file.
Variables | |
$icon = elgg_extract('icon', $vars) | |
Object icon. More... | |
if($icon===false) if(isset($icon)&&$icon!==true) | $icon_size = elgg_extract('icon_size', $vars, 'small') |
$icon_entity = elgg_extract('icon_entity', $vars) | |
if($icon_entity instanceof ElggEntity) if($icon!==true) | $entity = elgg_extract('entity', $vars) |
if(!$entity instanceof ElggEntity) if($entity->hasIcon($icon_size)) | $owner = $entity->getOwnerEntity() |
if (!$owner instanceof ElggEntity) | |
if ($icon_entity instanceof ElggEntity) if ($icon!==true) $entity = elgg_extract('entity', $vars) |
$icon = elgg_extract('icon', $vars) |
Object icon.
$vars['entity'] ElggEntity $vars['icon'] Object icon. If false no icon will be shown, true will try entity icon with a fallback to owner icon, anything else will just be drawn. $vars['icon_size'] The icon size to draw for the entity (default: small) $vars['icon_entity'] The entity to draw the icon for. This can be different from the listed entity (eg owner of a blog) If provided no fallback logic will be applied
$icon_entity = elgg_extract('icon_entity', $vars) |
if ($icon===false) if (isset($icon)&&$icon!==true) $icon_size = elgg_extract('icon_size', $vars, 'small') |
if (!$entity instanceof ElggEntity) if ($entity->hasIcon($icon_size)) $owner = $entity->getOwnerEntity() |
if(!$owner instanceof ElggEntity) |