two_column_left_sidebar.php 570 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Deprecated layout from 1.0-1.7
  4. *
  5. * Use one_sidebar instead
  6. */
  7. if (!isset($vars['content'])) {
  8. $vars['content'] = $vars['area2'];
  9. }
  10. if (!isset($vars['content'])) {
  11. $vars['sidebar'] = $vars['area1'] . $vars['area3'];
  12. }
  13. unset($vars['area1']);
  14. unset($vars['area2']);
  15. unset($vars['area3']);
  16. // backward compatability support for plugins that are not using the new approach
  17. // of routing through 'admin'
  18. if (elgg_get_context() == 'admin') {
  19. echo elgg_view('page/layouts/admin', $vars);
  20. return true;
  21. }
  22. echo elgg_view('page/layouts/one_sidebar', $vars);