diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-04 19:49:24 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-04 19:49:24 +0000 |
commit | b2c08a52541a12050ae12bac2dbc8e1f0563c2b0 (patch) | |
tree | f5994aea1e556a1143e1a201402c6d5cd9c69348 /views/default/layouts | |
parent | 58e7394e2dabe3bcf92b5efdc1c3917973cdf943 (diff) | |
download | elgg-b2c08a52541a12050ae12bac2dbc8e1f0563c2b0.tar.gz elgg-b2c08a52541a12050ae12bac2dbc8e1f0563c2b0.tar.bz2 |
using classes for page level divs
git-svn-id: http://code.elgg.org/elgg/trunk@7529 36083f99-b078-4883-b0ff-0f9b5a30f544
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> |