Elgg  Version 5.1
Go to the documentation of this file.
1 <?php
8 $body = elgg_format_element('h1', [], elgg_get_site_entity()->getDisplayName());
9 $body .= elgg_view('output/longtext', ['value' => elgg_extract('message', $vars)]);
10 $body .= elgg_view('core/maintenance/login');
12 echo elgg_view_module('maintenance', '', $body);
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:940
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:177
Get the current site entity.
Definition: entities.php:98
Maintenance mode layout.
Definition: maintenance.php:8
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145