12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * Layout for main column with one sidebar
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['title'] Optional title for main content area
- * @uses $vars['content'] Content HTML for the main column
- * @uses $vars['sidebar'] Optional content that is added to the sidebar
- * @uses $vars['nav'] Optional override of the page nav (default: breadcrumbs)
- * @uses $vars['header'] Optional override for the header
- * @uses $vars['footer'] Optional footer
- * @uses $vars['class'] Additional class to apply to layout
- */
- $class = 'elgg-layout elgg-layout-one-sidebar clearfix';
- if (isset($vars['class'])) {
- $class = "$class {$vars['class']}";
- }
- ?>
- <div class="<?php echo $class; ?>">
- <div class="elgg-sidebar">
- <?php
- echo elgg_view('page/elements/sidebar', $vars);
- ?>
- </div>
- <div class="elgg-main elgg-body">
- <?php
- echo elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
- echo elgg_view('page/layouts/elements/header', $vars);
- // @todo deprecated so remove in Elgg 2.0
- if (isset($vars['area1'])) {
- echo $vars['area1'];
- }
- if (isset($vars['content'])) {
- echo $vars['content'];
- }
- echo elgg_view('page/layouts/elements/footer', $vars);
- ?>
- </div>
- </div>
|