Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
forms
admin
site
set_maintenance_mode.php
Go to the documentation of this file.
1
<?php
6
$site
=
elgg_get_site_entity
();
7
$mode
= (int)
elgg_get_config
(
'elgg_maintenance_mode'
, null);
8
9
$message
=
$site
->getPrivateSetting(
'elgg_maintenance_message'
);
10
if
(!
$message
) {
11
$message
=
elgg_echo
(
'admin:maintenance_mode:default_message'
);
12
}
13
14
echo
'<p>'
.
elgg_echo
(
'admin:maintenance_mode:instructions'
) .
'</p>'
;
15
16
echo
'<div><label>'
.
elgg_echo
(
'admin:maintenance_mode:mode_label'
) .
': '
;
17
echo
elgg_view
(
'input/select'
, array(
18
'name'
=>
'mode'
,
19
'options_values'
=> array(
20
'1'
=>
elgg_echo
(
'on'
),
21
'0'
=>
elgg_echo
(
'off'
),
22
),
23
'value'
=>
$mode
,
24
));
25
echo
'</label></div>'
;
26
27
echo
'<div><label for="message">'
.
elgg_echo
(
'admin:maintenance_mode:message_label'
) .
':</label><br>'
;
28
echo
elgg_view
(
'input/longtext'
, array(
29
'name'
=>
'message'
,
30
'id'
=>
'message'
,
31
'value'
=>
$message
,
32
));
33
echo
'</div>'
;
34
35
echo
'<div class="elgg-foot">'
;
36
echo
elgg_view
(
'input/submit'
, array(
'value'
=>
elgg_echo
(
'save'
)));
37
echo
'</div>'
;
elgg_get_config
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
Definition:
configuration.php:86
elgg_get_site_entity
elgg_get_site_entity($site_guid=0)
Get an ElggSite entity (default is current site)
Definition:
sites.php:18
$mode
$mode
Configure site maintenance mode.
Definition:
set_maintenance_mode.php:6
$message
$message
Definition:
set_maintenance_mode.php:7
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
$site
$site
Definition:
set_maintenance_mode.php:9
Generated on Sat Dec 21 2024 00:00:34 for Elgg by
1.8.11