Elgg  Version 6.2
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

◆ $entity

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

Definition at line 34 of file icon.php.

◆ $icon

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

Object icon.

@uses $vars['entity'] ElggEntity @uses $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. @uses $vars['icon_size'] The icon size to draw for the entity (default: small) @uses $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

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

Definition at line 24 of file icon.php.

◆ $icon_size

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

Definition at line 23 of file icon.php.

◆ $owner

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

Definition at line 44 of file icon.php.

◆ if

if(! $owner instanceof ElggEntity) ( ! $owner instanceof  ElggEntity)

Definition at line 45 of file icon.php.