Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
walled_garden.php
Go to the documentation of this file.
1
<?php
12
$is_sticky_register
=
elgg_is_sticky_form
(
'register'
);
13
$wg_body_class
=
'elgg-body-walledgarden'
;
14
$inline_js
=
''
;
15
if
(
$is_sticky_register
) {
16
$wg_body_class
.=
' hidden'
;
17
$inline_js
= <<<__JS
18
<script
type
=
"text/javascript"
>
19
elgg
.register_hook_handler(
'init'
,
'system'
,
function
() {
20
$(
'.registration_link'
).trigger(
'click'
);
21
});
22
</script>
23
__JS;
24
}
25
26
// render content before head so that JavaScript and CSS can be loaded. See #4032
27
$messages
=
elgg_view
(
'page/elements/messages'
, array(
'object'
=>
$vars
[
'sysmessages'
]));
28
$content
=
$vars
[
"body"
];
29
30
$body
= <<<__BODY
31
<
div
class
=
"elgg-page elgg-page-walledgarden"
>
32
<div
class
=
"elgg-page-messages"
>
33
$messages
34
</div>
35
<div
class
=
"$wg_body_class"
>
36
$content
37
</div>
38
</div>
39
__BODY;
40
41
$body
.=
elgg_view
(
'page/elements/foot'
);
42
43
$body
.=
$inline_js
;
44
45
$head
=
elgg_view
(
'page/elements/head'
,
$vars
[
'head'
]);
46
47
echo
elgg_view
(
"page/elements/html"
, array(
"head"
=>
$head
,
"body"
=>
$body
));
elgg_is_sticky_form
elgg_is_sticky_form($form_name)
Has this form been made sticky?
Definition:
input.php:131
elgg
elgg
Definition:
install.js:23
$content
$content
Definition:
walled_garden.php:28
$wg_body_class
$wg_body_class
Definition:
walled_garden.php:13
$messages
if($is_sticky_register) $messages
Definition:
walled_garden.php:27
$is_sticky_register
$is_sticky_register
Walled garden page shell.
Definition:
walled_garden.php:12
div
fieldset div
Definition:
admin.php:470
$inline_js
$inline_js
Definition:
walled_garden.php:14
echo
elgg echo
Translates a string.
Definition:
languages.js:43
$body
$body
Definition:
walled_garden.php:30
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
$head
$head
Definition:
walled_garden.php:45
type
list style type
Definition:
admin.php:748
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Sat Sep 7 2024 00:00:48 for Elgg by
1.8.11