two_sidebar.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 elgg-layout-two-sidebar clearfix';
  14. if (isset($vars['class'])) {
  15. $class = "$class {$vars['class']}";
  16. }
  17. ?>
  18. <div class="<?php echo $class; ?>">
  19. <div class="elgg-sidebar-alt">
  20. <?php
  21. echo elgg_view('page/elements/sidebar_alt', $vars);
  22. ?>
  23. </div>
  24. <div class="elgg-main elgg-body">
  25. <?php
  26. echo elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
  27. echo elgg_view('page/layouts/elements/header', $vars);
  28. echo $vars['content'];
  29. // @deprecated 1.8
  30. if (isset($vars['area1'])) {
  31. echo $vars['area1'];
  32. }
  33. echo elgg_view('page/layouts/elements/footer', $vars);
  34. ?>
  35. </div>
  36. <div class="elgg-sidebar">
  37. <?php
  38. // With the mobile experience in mind, the content order is changed in aalborg theme,
  39. // by moving sidebar below main content.
  40. // On smaller screens, blocks are stacked in left to right order: content, sidebar.
  41. echo elgg_view('page/elements/sidebar', $vars);
  42. ?>
  43. </div>
  44. </div>