default.php 880 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Elgg default 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-default clearfix';
  16. if (isset($vars['class'])) {
  17. $class = "$class {$vars['class']}";
  18. }
  19. echo "<div class=\"$class\">";
  20. echo elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
  21. echo elgg_view('page/layouts/elements/header', $vars);
  22. echo $vars['content'];
  23. // @deprecated 1.8
  24. if (isset($vars['area1'])) {
  25. echo $vars['area1'];
  26. }
  27. echo elgg_view('page/layouts/elements/footer', $vars);
  28. echo '</div>';