aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/one_column_with_sidebar.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-07 02:47:31 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-07 02:47:31 +0000
commit9cd7ebd1ece016577c435b85f56d6c30545ff363 (patch)
tree47ef92f31014403699387797bc8498c64bdcffe2 /views/default/layout/shells/one_column_with_sidebar.php
parenta1d3c90fb72cd14f61b1209f9c0a0d3a106c71a8 (diff)
downloadelgg-9cd7ebd1ece016577c435b85f56d6c30545ff363.tar.gz
elgg-9cd7ebd1ece016577c435b85f56d6c30545ff363.tar.bz2
reorganized the layout views
git-svn-id: http://code.elgg.org/elgg/trunk@7553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/shells/one_column_with_sidebar.php')
-rw-r--r--views/default/layout/shells/one_column_with_sidebar.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/views/default/layout/shells/one_column_with_sidebar.php b/views/default/layout/shells/one_column_with_sidebar.php
new file mode 100644
index 000000000..e408c6c1c
--- /dev/null
+++ b/views/default/layout/shells/one_column_with_sidebar.php
@@ -0,0 +1,31 @@
+<?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-sidebar elgg-center elgg-width-classic clearfix">
+ <div class="elgg-sidebar elgg-aside">
+ <?php
+ echo elgg_view('page_elements/sidebar', $vars);
+ ?>
+ </div>
+
+ <div class="elgg-main elgg-body">
+ <?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>