Elgg  Version 4.x
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_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=[])
View the icon of an entity.
Definition: views.php:593
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:24
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:686
$size
Definition: default.php:20
$entity
Generic icon view.
Definition: default.php:13
$title
Definition: default.php:28
$params
Definition: default.php:50
elgg echo
Translates a string.
Definition: deprecated.js:530
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:205
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.
Definition: views.php:2056