Elgg  Version master
maintenance.php
Go to the documentation of this file.
1 <?php
2 
4 
5 $message = $site->elgg_maintenance_message ?: elgg_echo('admin:maintenance_mode:default_message');
6 
8 $body .= elgg_view('core/maintenance/login');
9 
10 echo elgg_view_page($site->getDisplayName(), ['content' => $body], 'maintenance');
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:101
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view_message(string $type, string $body, array $vars=[])
Wrapper function for the message display pattern.
Definition: views.php:940
elgg_view_page(string $title, string|array $body, string $page_shell='default', array $vars=[])
Assembles and outputs a full page.
Definition: views.php:235
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
Definition: views.php:156
$body
Definition: maintenance.php:17
$site
Definition: maintenance.php:3
$message
Definition: maintenance.php:5