diff options
Diffstat (limited to 'views/default/layouts')
-rw-r--r-- | views/default/layouts/main_content.php | 4 | ||||
-rw-r--r-- | views/default/layouts/one_sidebar.php | 31 |
2 files changed, 33 insertions, 2 deletions
diff --git a/views/default/layouts/main_content.php b/views/default/layouts/main_content.php index 7c42065b0..908197a39 100644 --- a/views/default/layouts/main_content.php +++ b/views/default/layouts/main_content.php @@ -47,7 +47,7 @@ $footer = elgg_view('content/footer', $params); $body = $nav . $header . $filter . $content . $footer; $params = array( - 'content' => $body, + 'body' => $body, 'sidebar' => $sidebar, ); -echo elgg_view_layout('one_column_with_sidebar', $params); +echo elgg_view_layout('one_sidebar', $params); diff --git a/views/default/layouts/one_sidebar.php b/views/default/layouts/one_sidebar.php new file mode 100644 index 000000000..d0bb3879f --- /dev/null +++ b/views/default/layouts/one_sidebar.php @@ -0,0 +1,31 @@ +<?php +/** + * Elgg main column with one sidebar layout + * + * @package Elgg + * @subpackage Core + * + * @uses $vars['body'] Content HTML 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['body'])) { + echo $vars['body']; + } + ?> + </div> +</div> |