Elgg  Version master
body.php
Go to the documentation of this file.
1 <?php
11 $result = elgg_view('page/layouts/elements/breadcrumbs', $vars);
12 $result .= elgg_view('page/layouts/elements/header', $vars);
13 $result .= elgg_view('page/layouts/elements/filter', $vars);
14 $result .= elgg_view('page/layouts/elements/content', $vars);
15 $result .= elgg_view('page/layouts/elements/footer', $vars);
16 
17 $tag_name = elgg_extract('entity', $vars) instanceof \ElggEntity ? 'article' : 'div';
18 
19 echo elgg_format_element($tag_name, ['class' => 'elgg-layout-body'], $result);
elgg
Definition: install.js:27
$result
Layout body.
Definition: body.php:11
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
$tag_name
Definition: body.php:17
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145