aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts/two_column_left_sidebar.php
blob: 97f4d2719e7f009d1595432ef960e9dc489004a2 (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('page/layouts/admin', $vars);
	return true;
}

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