default.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. if (elgg_get_context() == 'admin') {
  14. if (get_input('handler') != 'admin') {
  15. elgg_deprecated_notice("admin plugins should route through 'admin'.", 1.8);
  16. }
  17. _elgg_admin_add_plugin_settings_menu();
  18. elgg_unregister_css('elgg');
  19. echo elgg_view('page/admin', $vars);
  20. return true;
  21. }
  22. $messages = elgg_view('page/elements/messages', array('object' => $vars['sysmessages']));
  23. $header = elgg_view('page/elements/header', $vars);
  24. $content = elgg_view('page/elements/body', $vars);
  25. $footer = elgg_view('page/elements/footer', $vars);
  26. $body = "<div class='elgg-page elgg-page-default'>";
  27. $body .= "<div class='elgg-page-messages'>";
  28. $body .= $messages;
  29. $body .= "</div>";
  30. $body .= "<div class='elgg-page-header'>";
  31. $body .= $header;
  32. $body .= "</div>";
  33. $body .= "<div class='elgg-page-body'>";
  34. $body .= "<div id='page'>";
  35. $body .= "<div class='container'>";
  36. $body .= "<div class='row'>";
  37. $body .= $content;
  38. $body .= "</div>";
  39. $body .= "</div>";
  40. $body .= "</div>";
  41. $body .= "</div>";
  42. $body .= "<div class='elgg-page-footer'>";
  43. $body .= "<div class='container'>";
  44. $body .= $footer;
  45. $body .= "</div>";
  46. $body .= "</div>";
  47. $body .= "</div>";
  48. $body .= elgg_view('page/elements/foot');
  49. $head = elgg_view('page/elements/head', $vars['head']);
  50. $params = array(
  51. 'head' => $head,
  52. 'body' => $body,
  53. );
  54. if (isset($vars['body_attrs'])) {
  55. $params['body_attrs'] = $vars['body_attrs'];
  56. }
  57. echo elgg_view("page/elements/html", $params);