Elgg  Version 4.x
full.php
Go to the documentation of this file.
1 <?php
2 
17 $entity = elgg_extract('entity', $vars);
18 if (!$entity instanceof ElggEntity) {
19  return;
20 }
21 
22 $class = elgg_extract_class($vars, ['elgg-listing-full', 'elgg-content', 'clearfix']);
23 unset($vars['class']);
24 
25 $content = elgg_view('object/elements/full/header', $vars);
26 $content .= elgg_view('object/elements/full/body', $vars);
27 $content .= elgg_view('object/elements/full/attachments', $vars);
28 if (elgg_extract('show_navigation', $vars, false)) {
29  $content .= elgg_view('object/elements/full/navigation', $vars);
30 }
31 $content .= elgg_view('object/elements/full/responses', $vars);
32 
34  'class' => $class,
35  'data-guid' => $entity->guid,
36 ], $content);
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:708
$entity
Object full view.
Definition: full.php:17
$content
Definition: full.php:25
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:134
if(!$entity instanceof ElggEntity) $class
Definition: full.php:22
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
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:205