Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
two_column_left_sidebar.php
Go to the documentation of this file.
1 <?php
8 if (!isset($vars['content'])) {
9  $vars['content'] = $vars['area2'];
10 }
11 if (!isset($vars['content'])) {
12  $vars['sidebar'] = $vars['area1'] . $vars['area3'];
13 }
14 
15 unset($vars['area1']);
16 unset($vars['area2']);
17 unset($vars['area3']);
18 
19 // backward compatability support for plugins that are not using the new approach
20 // of routing through 'admin'
21 if (elgg_get_context() == 'admin') {
22  echo elgg_view('page/layouts/admin', $vars);
23  return true;
24 }
25 
26 echo elgg_view('page/layouts/one_sidebar', $vars);
$vars['entity']
elgg_get_context()
Get the current context.
Definition: pageowner.php:204
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342