aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts/two_column_left_sidebar.php
blob: e395a5053d95a5ef2c4954d2c4b81ee069fa8ef1 (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 'admin'
if (elgg_get_context() == 'admin') {
	echo elgg_view('page/layouts/admin', $vars);
	return true;
}

echo elgg_view('page/layouts/one_sidebar', $vars);