one_column.php 955 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Elgg one-column layout
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. *
  8. * @uses $vars['content'] Content string
  9. * @uses $vars['class'] Additional class to apply to layout
  10. * @uses $vars['nav'] Optional override of the page nav (default: breadcrumbs)
  11. * @uses $vars['title'] Optional title for main content area
  12. * @uses $vars['header'] Optional override for the header
  13. * @uses $vars['footer'] Optional footer
  14. */
  15. $class = 'elgg-layout elgg-layout-one-column clearfix';
  16. if (isset($vars['class'])) {
  17. $class = "$class {$vars['class']}";
  18. }
  19. ?>
  20. <div class="<?php echo $class; ?>">
  21. <div class="elgg-body elgg-main">
  22. <?php
  23. echo elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
  24. echo elgg_view('page/layouts/elements/header', $vars);
  25. echo $vars['content'];
  26. // @deprecated 1.8
  27. if (isset($vars['area1'])) {
  28. echo $vars['area1'];
  29. }
  30. echo elgg_view('page/layouts/elements/footer', $vars);
  31. ?>
  32. </div>
  33. </div>