Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
admin.php
Go to the documentation of this file.
1
<?php
13
// render content before head so that JavaScript and CSS can be loaded. See #4032
14
15
$notices_html
=
''
;
16
$notices
=
elgg_get_admin_notices
();
17
if
(
$notices
) {
18
foreach
(
$notices
as
$notice
) {
19
$notices_html
.=
elgg_view_entity
($notice);
20
}
21
22
$notices_html
=
"<div class=\"elgg-admin-notices\">$notices_html</div>"
;
23
}
24
25
$header
=
elgg_view
(
'admin/header'
,
$vars
);
26
27
$messages
=
elgg_view
(
'page/elements/messages'
, array(
'object'
=>
$vars
[
'sysmessages'
]));
28
$messages
.=
$notices_html
;
29
30
$content
=
$vars
[
"body"
];
31
32
$footer
=
elgg_view
(
'admin/footer'
,
$vars
);
33
34
$body
= <<<__BODY
35
<
div
class
=
"elgg-page elgg-page-admin"
>
36
<div
class
=
"elgg-inner"
>
37
<div
class
=
"elgg-page-header"
>
38
<div
class
=
"elgg-inner clearfix"
>
39
$header
40
</div>
41
</div>
42
<div
class
=
"elgg-page-messages"
>
43
$messages
44
</div>
45
<div
class
=
"elgg-page-body"
>
46
<div
class
=
"elgg-inner"
>
47
$content
48
</div>
49
</div>
50
<div
class
=
"elgg-page-footer"
>
51
<div
class
=
"elgg-inner"
>
52
$footer
53
</div>
54
</div>
55
</div>
56
</div>
57
__BODY;
58
59
$body
.=
elgg_view
(
'page/elements/foot'
);
60
61
$head
=
elgg_view
(
'page/elements/head'
,
$vars
[
'head'
]);
62
63
echo
elgg_view
(
"page/elements/html"
, array(
"head"
=>
$head
,
"body"
=>
$body
));
$messages
$messages
Definition:
admin.php:27
$body
$body
Definition:
admin.php:34
$head
$head
Definition:
admin.php:61
elgg_get_admin_notices
elgg_get_admin_notices($limit=10)
Get admin notices.
Definition:
admin.php:104
$notice
$notice
Definition:
delete_admin_notice.php:7
$notices
$notices
Definition:
admin.php:16
$vars
$vars['type']
Install create admin account page.
Definition:
admin.php:8
elgg_view_entity
elgg_view_entity(\ElggEntity $entity, array $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
Definition:
views.php:873
div
fieldset div
Definition:
admin.css.php:485
echo
elgg echo
Translates a string.
Definition:
languages.js:48
$footer
$footer
Definition:
admin.php:32
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:336
$header
if($notices) $header
Definition:
admin.php:25
$content
$content
Definition:
admin.php:30
$notices_html
$notices_html
Definition:
admin.php:15
Generated on Sat Dec 21 2024 00:01:04 for Elgg by
1.8.11