Elgg  Version 1.11
walled_garden.php
Go to the documentation of this file.
1 <?php
13 $wg_body_class = 'elgg-body-walledgarden';
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($form_name)
Has this form been made sticky?
Definition: input.php:131
elgg
Definition: install.js:23
$content
$wg_body_class
if($is_sticky_register) $messages
$is_sticky_register
Walled garden page shell.
fieldset div
Definition: admin.php:470
$inline_js
elgg echo
Translates a string.
Definition: languages.js:43
$body
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$head
list style type
Definition: admin.php:748
if(file_exists($welcome)) $vars
Definition: upgrade.php:93