aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/two_column_left_sidebar.php
blob: 247ba920b18fb998f5fd1bcca5ed972600ae5fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Deprecated layout from 1.0-1.7
 *
 * Use one_sidebar instead
 */

if (!isset($vars['content'])) {
	$vars['content'] = $vars['area2'];
}
if (!isset($vars['content'])) {
	$vars['sidebar'] = $vars['area1'] . $vars['area3'];
}

unset($vars['area1']);
unset($vars['area2']);
unset($vars['area3']);

// backward compatability support for plugins that are not using the new approach
// of routing through pg/admin
if (elgg_get_context() == 'admin') {
	echo elgg_view('layout/shells/admin', $vars);
	return true;
}

echo elgg_view('layout/shells/one_sidebar', $vars);