Elgg  Version 5.1
maintenance.php
Go to the documentation of this file.
1 <?php
2 
4 
5 $body = elgg_view_layout('maintenance', [
6  'message' => $site->elgg_maintenance_message ?: elgg_echo('admin:maintenance_mode:default_message'),
7  'filter' => false,
8 ]);
9 
10 echo elgg_view_page($site->getDisplayName(), $body, 'maintenance');
elgg_view_layout(string $layout_name, array $vars=[])
Displays a layout with optional parameters.
Definition: views.php:373
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view_page(string $title, string|array $body, string $page_shell= 'default', array $vars=[])
Assembles and outputs a full page.
Definition: views.php:256
$site
Definition: maintenance.php:3
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:98
$body
Maintenance mode layout.
Definition: maintenance.php:8