sidebar.php 714 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Elgg sidebar contents
  4. *
  5. * @uses $vars['sidebar'] Optional content that is displayed at the bottom of sidebar
  6. */
  7. echo elgg_view_menu('extras', array(
  8. 'sort_by' => 'priority',
  9. 'class' => 'elgg-menu-hz',
  10. ));
  11. echo elgg_view('page/elements/owner_block', $vars);
  12. echo elgg_view_menu('page', array('sort_by' => 'name'));
  13. // optional 'sidebar' parameter
  14. if (isset($vars['sidebar'])) {
  15. echo $vars['sidebar'];
  16. }
  17. // @todo deprecated so remove in Elgg 2.0
  18. // optional second parameter of elgg_view_layout
  19. if (isset($vars['area2'])) {
  20. echo $vars['area2'];
  21. }
  22. // @todo deprecated so remove in Elgg 2.0
  23. // optional third parameter of elgg_view_layout
  24. if (isset($vars['area3'])) {
  25. echo $vars['area3'];
  26. }