Elgg  Version 4.3
maintenance.php
Go to the documentation of this file.
1 <?php
2 
4 
5 $body = elgg_view_layout('maintenance', [
6  'message' => $site->getPrivateSetting('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_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
Definition: views.php:262
$site
Definition: maintenance.php:3
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:99
$body
Maintenance mode layout.
Definition: maintenance.php:8
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
Definition: views.php:380
elgg echo
Translates a string.
Definition: deprecated.js:530