Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
one_column.php
Go to the documentation of this file.
1 <?php
16 $class = 'elgg-layout elgg-layout-one-column clearfix';
17 if (isset($vars['class'])) {
18  $class = "$class {$vars['class']}";
19 }
20 
21 ?>
22 <div class="<?php echo $class; ?>">
23  <div class="elgg-body elgg-main">
24  <?php
25  echo elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
26 
27  echo elgg_view('page/layouts/elements/header', $vars);
28 
29  echo $vars['content'];
30 
31  // @deprecated 1.8
32  if (isset($vars['area1'])) {
33  echo $vars['area1'];
34  }
35 
36  echo elgg_view('page/layouts/elements/footer', $vars);
37  ?>
38  </div>
39 </div>
$vars['entity']
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1310
$class
Definition: one_column.php:16