Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
default.php
Go to the documentation of this file.
1
<?php
15
// backward compatability support for plugins that are not using the new approach
16
// of routing through admin. See reportedcontent plugin for a simple example.
17
if
(
elgg_get_context
() ==
'admin'
) {
18
if
(
get_input
(
'handler'
) !=
'admin'
) {
19
elgg_deprecated_notice
(
"admin plugins should route through 'admin'."
, 1.8);
20
}
21
_elgg_admin_add_plugin_settings_menu
();
22
elgg_unregister_css
(
'elgg'
);
23
echo
elgg_view
(
'page/admin'
,
$vars
);
24
return
true
;
25
}
26
27
// render content before head so that JavaScript and CSS can be loaded. See #4032
28
29
$messages
=
elgg_view
(
'page/elements/messages'
, array(
'object'
=>
$vars
[
'sysmessages'
]));
30
31
$header
=
elgg_view
(
'page/elements/header'
,
$vars
);
32
$content
=
elgg_view
(
'page/elements/body'
,
$vars
);
33
$footer
=
elgg_view
(
'page/elements/footer'
,
$vars
);
34
35
$body
= <<<__BODY
36
<
div
class
=
"elgg-page elgg-page-default"
>
37
<div
class
=
"elgg-page-messages"
>
38
$messages
39
</div>
40
__BODY;
41
42
$body
.=
elgg_view
(
'page/elements/topbar_wrapper'
,
$vars
);
43
44
$body
.= <<<__BODY
45
<div
class
=
"elgg-page-header"
>
46
<div
class
=
"elgg-inner"
>
47
$header
48
</div>
49
</div>
50
<div
class
=
"elgg-page-body"
>
51
<div
class
=
"elgg-inner"
>
52
$content
53
</div>
54
</div>
55
<div
class
=
"elgg-page-footer"
>
56
<div
class
=
"elgg-inner"
>
57
$footer
58
</div>
59
</div>
60
</div>
61
__BODY;
62
63
$body
.=
elgg_view
(
'page/elements/foot'
);
64
65
$head
=
elgg_view
(
'page/elements/head'
,
$vars
[
'head'
]);
66
67
$params
= array(
68
'head'
=>
$head
,
69
'body'
=>
$body
,
70
);
71
72
if
(isset(
$vars
[
'body_attrs'
])) {
73
$params
[
'body_attrs'
] =
$vars
[
'body_attrs'
];
74
}
75
76
echo
elgg_view
(
"page/elements/html"
,
$params
);
get_input
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition:
input.php:27
$header
$header
Definition:
default.php:31
$footer
$footer
Definition:
default.php:33
div
fieldset div
Definition:
admin.php:470
elgg_unregister_css
elgg_unregister_css($name)
Unregister a CSS file.
Definition:
elgglib.php:240
$params
$params
Definition:
default.php:39
$content
$content
Definition:
default.php:32
$messages
if(elgg_get_context()== 'admin') $messages
Definition:
default.php:29
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_get_context
elgg_get_context()
Get the current context.
Definition:
pageowner.php:213
elgg_deprecated_notice
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
Definition:
elgglib.php:1006
$vars
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition:
default.php:23
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
$body
$body
Definition:
default.php:29
_elgg_admin_add_plugin_settings_menu
_elgg_admin_add_plugin_settings_menu()
Create the plugin settings page menu.
Definition:
admin.php:439
$head
$head
Definition:
default.php:65
Generated on Sat Dec 21 2024 00:00:50 for Elgg by
1.8.11