sidebar.php 713 B

1234567891011121314151617181920212223242526272829303132
  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. }