aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts/one_sidebar.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/page/layouts/one_sidebar.php')
-rw-r--r--views/default/page/layouts/one_sidebar.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/views/default/page/layouts/one_sidebar.php b/views/default/page/layouts/one_sidebar.php
new file mode 100644
index 000000000..53f065b3e
--- /dev/null
+++ b/views/default/page/layouts/one_sidebar.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ * Layout for main column with one sidebar
+ *
+ * @package Elgg
+ * @subpackage Core
+ *
+ * @uses $vars['content'] Content HTML for the main column
+ * @uses $vars['sidebar'] Optional content that is displayed in the sidebar
+ * @uses $vars['title'] Optional title for main content area
+ * @uses $vars['class'] Additional class to apply to layout
+ */
+
+$class = 'elgg-inner clearfix';
+if (isset($vars['class'])) {
+ $class = "$class {$vars['class']}";
+}
+
+?>
+
+<div class="<?php echo $class; ?>" id="elgg-layout-sidebar">
+ <div class="elgg-sidebar elgg-aside">
+ <?php
+ echo elgg_view('page/elements/sidebar', $vars);
+ ?>
+ </div>
+
+ <div class="elgg-main elgg-body">
+ <?php
+ if (isset($vars['title'])) {
+ echo elgg_view_title($vars['title']);
+ }
+ // @todo deprecated so remove in Elgg 2.0
+ if (isset($vars['area1'])) {
+ echo $vars['area1'];
+ }
+ if (isset($vars['content'])) {
+ echo $vars['content'];
+ }
+ ?>
+ </div>
+</div>