Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
maintenance.php
Go to the documentation of this file.
1
<?php
10
// render content before head so that JavaScript and CSS can be loaded. See #4032
11
$messages
=
elgg_view
(
'page/elements/messages'
, array(
'object'
=>
$vars
[
'sysmessages'
]));
12
$content
=
$vars
[
'body'
];
13
14
$title
=
elgg_extract
(
'title'
,
$vars
,
elgg_get_site_entity
()->
name
);
15
$favicon
=
elgg_view
(
'page/elements/shortcut_icon'
,
$vars
);
16
$css
=
elgg_get_simplecache_url
(
'maintenance.css'
);
17
$head
= <<<__HEAD
18
<meta http-equiv=
"Content-Type"
content
=
"text/html; charset=utf-8"
/>
19
<
title
>
$title
</
title
>
20
$favicon
21
<link href=
"$css"
rel=
"stylesheet"
>
22
__HEAD;
23
24
$body
= <<<__BODY
25
<
div
class
=
"elgg-page elgg-page-maintenance"
id
=
"elgg-maintenance-page-wrapper"
>
26
<div
class
=
"elgg-page-messages"
>
27
$messages
28
</div>
29
<div
class
=
"elgg-body-maintenance"
>
30
$content
31
</div>
32
</div>
33
__BODY;
34
35
echo
elgg_view
(
"page/elements/html"
, array(
'head'
=>
$head
,
'body'
=>
$body
));
36
elgg_get_site_entity
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
Definition:
sites.php:18
elgg_get_simplecache_url
elgg_get_simplecache_url($view, $subview= '')
Get the URL for the cached view.
Definition:
cache.php:136
$head
$head
Definition:
maintenance.php:17
$vars
$vars['entity']
Definition:
plugin_settings.php:15
$css
$css
Definition:
maintenance.php:16
$messages
$messages
Maintenance mode page shell.
Definition:
maintenance.php:11
title
ui datepicker title
Definition:
admin.css.php:662
div
fieldset div
Definition:
admin.css.php:485
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:336
elgg_extract
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1375
$body
$body
Maintenance mode layout.
Definition:
maintenance.php:9
name
$site name
Definition:
update_basic.php:22
$title
$title
Definition:
maintenance.php:14
$content
$content
Definition:
maintenance.php:12
content
elgg widget content
Definition:
admin.css.php:1305
$favicon
$favicon
Definition:
maintenance.php:15
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11