one_sidebar.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Modbash Clean Elgg Theme
  4. *
  5. * Copyright (c) 2015 ModBash
  6. *
  7. * @author Shane Barron <admin@modbash.com>
  8. * @copyright 2015 SocialApparatus
  9. * @license GNU General Public License (GPL) version 2
  10. * @version 1
  11. * @link http://modbash.com
  12. */
  13. $class = 'elgg-layout clearfix';
  14. if (isset($vars['class'])) {
  15. $class = "$class {$vars['class']}";
  16. }
  17. ?>
  18. <div class="<?php echo $class; ?>">
  19. <div>
  20. <?php
  21. echo elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
  22. echo elgg_view('page/layouts/elements/header', $vars);
  23. // @todo deprecated so remove in Elgg 2.0
  24. if (isset($vars['area1'])) {
  25. echo $vars['area1'];
  26. }
  27. if (isset($vars['content'])) {
  28. echo $vars['content'];
  29. }
  30. echo elgg_view('page/layouts/elements/footer', $vars);
  31. ?>
  32. </div>
  33. <div class="elgg-sidebar">
  34. <?php
  35. // With the mobile experience in mind, the content order is changed in aalborg theme,
  36. // by moving sidebar below main content.
  37. // On smaller screens, blocks are stacked in left to right order: content, sidebar.
  38. echo elgg_view('page/elements/sidebar', $vars);
  39. ?>
  40. </div>
  41. </div>