Elgg  Version 3.0
default.php
Go to the documentation of this file.
1 <?php
11 $entity = elgg_extract('entity', $vars);
12 if (!$entity instanceof ElggEntity) {
13  return;
14 }
15 
16 if (!isset($vars['icon'])) {
17  $vars['icon'] = true;
18 }
19 
20 if (!isset($vars['title']) && empty($entity->getDisplayName())) {
21  $vars['title'] = get_class($entity);
22 }
23 
24 echo elgg_view('object/elements/summary', $vars);
elgg echo
Translates a string.
Definition: languages.js:43
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:27
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
$entity
Definition: default.php:16
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246