default.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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/topbar_wrapper', $vars);
  24. $header .= elgg_view('page/elements/header', $vars);
  25. $content = elgg_view('page/elements/body', $vars);
  26. $footer = elgg_view('page/elements/footer', $vars);
  27. $body = "<div class='elgg-page elgg-page-default'>";
  28. $body .= "<div class='elgg-page-messages'>";
  29. $body .= $messages;
  30. $body .= "</div>";
  31. $body .= "<div class='elgg-page-header'>";
  32. $body .= $header;
  33. $body .= "</div>";
  34. $body .= "<div class='elgg-page-body'>";
  35. $body .= "<div id='page'>";
  36. $body .= "<div class='container'>";
  37. $body .= "<div class='row'>";
  38. $body .= $content;
  39. $body .= "</div>";
  40. $body .= "</div>";
  41. $body .= "</div>";
  42. $body .= "</div>";
  43. $body .= "<div class='elgg-page-footer'>";
  44. $body .= "<div class='container'>";
  45. $body .= $footer;
  46. $body .= "</div>";
  47. $body .= "</div>";
  48. $body .= "</div>";
  49. $body .= elgg_view('page/elements/foot');
  50. $head = elgg_view('page/elements/head', $vars['head']);
  51. $params = array(
  52. 'head' => $head,
  53. 'body' => $body,
  54. );
  55. if (isset($vars['body_attrs'])) {
  56. $params['body_attrs'] = $vars['body_attrs'];
  57. }
  58. echo elgg_view("page/elements/html", $params);