two_sidebar.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Elgg 2 sidebar layout
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. *
  8. * @uses $vars['content'] The content string for the main column
  9. * @uses $vars['sidebar'] Optional content that is displayed in the sidebar
  10. * @uses $vars['sidebar_alt'] Optional content that is displayed in the alternate sidebar
  11. * @uses $vars['nav'] Optional override of the page nav (default: breadcrumbs)
  12. * @uses $vars['title'] Optional title for main content area
  13. * @uses $vars['header'] Optional override for the header
  14. * @uses $vars['footer'] Optional footer
  15. * @uses $vars['class'] Additional class to apply to layout
  16. */
  17. $class = 'elgg-layout elgg-layout-two-sidebar clearfix';
  18. if (isset($vars['class'])) {
  19. $class = "$class {$vars['class']}";
  20. }
  21. ?>
  22. <div class="<?php echo $class; ?>">
  23. <div class="elgg-sidebar">
  24. <?php
  25. echo elgg_view('page/elements/sidebar', $vars);
  26. ?>
  27. </div>
  28. <div class="elgg-sidebar-alt">
  29. <?php
  30. echo elgg_view('page/elements/sidebar_alt', $vars);
  31. ?>
  32. </div>
  33. <div class="elgg-main elgg-body">
  34. <?php
  35. echo elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
  36. echo elgg_view('page/layouts/elements/header', $vars);
  37. echo $vars['content'];
  38. // @deprecated 1.8
  39. if (isset($vars['area1'])) {
  40. echo $vars['area1'];
  41. }
  42. echo elgg_view('page/layouts/elements/footer', $vars);
  43. ?>
  44. </div>
  45. </div>