Elgg  Version 3.0
column.php
Go to the documentation of this file.
1 <?php
10 $entity = elgg_extract('entity', $vars);
11 if (!$entity instanceof ElggEntity) {
12  return;
13 }
14 
15 $size = elgg_extract('size', $vars, 'small');
16 
18 
20 if (!$title) {
21  $title = elgg_view('output/url', [
22  'href' => $entity->getUrl(),
23  'text' => $entity->getDisplayName(),
24  ]);
25 }
26 
28  'entity' => $entity,
29  'title' => $title,
30 ];
31 $list_body = elgg_view('user/elements/summary', $params);
32 
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=[])
View the icon of an entity.
Definition: views.php:899
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
Definition: views.php:1177
if(!$title) $params
Definition: column.php:27
elgg echo
Translates a string.
Definition: languages.js:43
if(!$title) $list_body
Definition: column.php:31
$icon
Definition: column.php:17
$entity
Elgg user display.
Definition: column.php:10
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:1131
$title
Definition: column.php:19
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246
if(!$entity instanceof ElggEntity) $size
Definition: column.php:15