Elgg  Version master
default.php
Go to the documentation of this file.
1 <?php
10 $entity = elgg_extract('entity', $vars);
11 if (!$entity instanceof ElggUser) {
12  return;
13 }
14 
15 $size = elgg_extract('size', $vars, 'small');
16 
17 if (elgg_get_context() == 'gallery') {
19  return;
20 }
21 
23 
25  'entity' => $entity,
26  'title' => $title,
27  'icon_entity' => $entity,
28  'icon_size' => $size,
29  'tags' => false,
30 ];
32 
33 echo elgg_view('user/elements/summary', $params);
elgg_get_context()
Get the current context.
Definition: context.php:41
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_view_entity_icon(\ElggEntity $entity, string $size= 'medium', array $vars=[])
View the icon of an entity.
Definition: views.php:542
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:25
$size
Definition: default.php:20
$entity
Generic icon view.
Definition: default.php:13
$title
Definition: default.php:29
$params
Definition: default.php:50
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.
Definition: views.php:1444