Elgg  Version 6.1
Variables
icon.php File Reference

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)
 

Variable Documentation

if ($icon_entity instanceof ElggEntity) if ($icon!==true) $entity = elgg_extract('entity', $vars)

Definition at line 34 of file icon.php.

$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

Definition at line 13 of file icon.php.

$icon_entity = elgg_extract('icon_entity', $vars)

Definition at line 24 of file icon.php.

if ($icon===false) if (isset($icon)&&$icon!==true) $icon_size = elgg_extract('icon_size', $vars, 'small')

Definition at line 23 of file icon.php.

if (!$entity instanceof ElggEntity) if ($entity->hasIcon($icon_size)) $owner = $entity->getOwnerEntity()

Definition at line 44 of file icon.php.

if(!$owner instanceof ElggEntity)

Definition at line 45 of file icon.php.