Elgg  Version master
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Elgg user display. More...
 
if(! $entity instanceof ElggUser$size = elgg_extract('size', $vars, 'small')
 
if(elgg_get_context()=='gallery') $title = elgg_extract('title', $vars) ?: elgg_view_entity_url($entity)
 
 $params
 

Variable Documentation

◆ $entity

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

Elgg user display.

@uses $vars['entity'] ElggUser entity @uses $vars['size'] Size of the icon @uses $vars['title'] Optional override for the title

Definition at line 10 of file default.php.

◆ $params

$params
Initial value:
= [
'entity' => $entity,
'title' => $title,
'icon_entity' => $entity,
'icon_size' => $size,
'tags' => false,
]
$entity
Generic icon view.
Definition: default.php:13
$title
Definition: default.php:29
$size
Definition: default.php:20

Definition at line 24 of file default.php.

◆ $size

if (! $entity instanceof ElggUser) $size = elgg_extract('size', $vars, 'small')

Definition at line 15 of file default.php.

◆ $title

if (elgg_get_context()=='gallery') $title = elgg_extract('title', $vars) ?: elgg_view_entity_url($entity)

Definition at line 22 of file default.php.