Elgg  Version master
Variables
icon.php File Reference

Go to the source code of this file.

Variables

 $icon = elgg_extract('icon', $vars, '')
 Relationship icon. More...
 
if($icon===false) if($icon !=='') $icon_size = elgg_extract('icon_size', $vars, 'small')
 
 $icon_entity = elgg_extract('icon_entity', $vars)
 
if($icon_entity instanceof ElggEntity$relationship = elgg_extract('relationship', $vars)
 
if(! $relationship instanceof ElggRelationship$entity_one = get_entity($relationship->guid_one)
 
 if (! $entity_one instanceof ElggEntity)
 

Variable Documentation

◆ $entity_one

if (! $relationship instanceof ElggRelationship) $entity_one = get_entity($relationship->guid_one)

Definition at line 34 of file icon.php.

◆ $icon

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

Relationship icon.

@uses $vars['relationship'] ElggRelationship @uses $vars['icon'] Relationship icon. If false no icon will be shown, '' for default icon. @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 12 of file icon.php.

◆ $icon_entity

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

Definition at line 23 of file icon.php.

◆ $icon_size

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

Definition at line 22 of file icon.php.

◆ $relationship

if ( $icon_entity instanceof ElggEntity) $relationship = elgg_extract('relationship', $vars)

Definition at line 29 of file icon.php.

◆ if

if(! $entity_one instanceof ElggEntity) ( ! $entity_one instanceof  ElggEntity)

Definition at line 35 of file icon.php.