Elgg  Version 1.11
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);
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_context()
Get the current context.
Definition: pageowner.php:213
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
if(file_exists($welcome)) $vars
Definition: upgrade.php:93