aboutsummaryrefslogtreecommitdiff
path: root/views/default/layouts/one_column_with_sidebar.php
blob: f2c70a02a10fd7e5c5b0d68badecf8da3e461a91 (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
27
28
29
30
<?php
/**
 * Elgg 1 column with sidebar layout
 *
 * @package Elgg
 * @subpackage Core
 *
 * @uses $vars['content'] The content string for the main column
 * @uses $vars['sidebar'] Optional content that is displayed in the sidebar
 */
?>
<div class="elgg-layout elgg-center elgg-width-classic clearfix">
	<div class="elgg-aside">
		<?php
			echo elgg_view('page_elements/sidebar', $vars);
		?>
	</div>
	
	<div id="elgg-page-contents" class="elgg-body clearfix">
		<?php
			// @todo deprecated so remove in Elgg 2.0
			if (isset($vars['area1'])) {
				echo $vars['area1'];
			}
			if (isset($vars['content'])) {
				echo $vars['content'];
			}
		?>
	</div>
</div>