Elgg  Version 2.3
walled_garden.php
Go to the documentation of this file.
1 <?php
12 if (elgg_is_sticky_form('register')) {
13  // An error occurred while submitting the registration form in a lightbox
14  forward('register');
15 }
16 
17 // render content before head so that JavaScript and CSS can be loaded. See #4032
18 $messages = elgg_view('page/elements/messages', array('object' => $vars['sysmessages']));
19 $content = $vars["body"];
20 
21 ob_start(); ?>
22 <div class="elgg-page elgg-page-walledgarden">
23  <div class="elgg-page-messages">
24  <?php echo $messages ?>
25  </div>
26  <div class="elgg-body-walledgarden">
27  <?php echo $content ?>
28  </div>
29 </div>
30 <?php
31 $body = ob_get_clean();
32 
33 $body .= elgg_view('page/elements/foot');
34 
35 $head = elgg_view('page/elements/head', $vars['head']);
36 
37 echo elgg_view("page/elements/html", array("head" => $head, "body" => $body));
$content
if(elgg_is_sticky_form('register')) $messages
Walled garden page shell.
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:425
$vars['entity']
fieldset div
Definition: admin.css.php:485
elgg echo
Translates a string.
Definition: languages.js:48
$body
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
elgg_is_sticky_form($form_name)
Does form submission data exist for this form?
Definition: input.php:131
$head