maintenance.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. // This file is part of The Bootstrap 3 Moodle theme
  3. //
  4. // Moodle is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // Moodle is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License
  15. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
  16. /**
  17. * This layout file is designed maintenance related tasks such as upgrade and installation of plugins.
  18. *
  19. * It's ultra important that this layout file makes no use of API's unless it absolutely needs to.
  20. * Under no circumstances should it use API calls that result in database or cache interaction.
  21. *
  22. * If you are modifying this file please be extremely careful, one wrong API call and you could end up
  23. * breaking installation or upgrade unwittingly.
  24. */
  25. $regions = bootstrap_grid(false, false);
  26. echo $OUTPUT->doctype() ?>
  27. <html <?php echo $OUTPUT->htmlattributes(); ?>>
  28. <head>
  29. <title><?php echo $OUTPUT->page_title(); ?></title>
  30. <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" />
  31. <?php echo $OUTPUT->standard_head_html() ?>
  32. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimal-ui">
  33. </head>
  34. <body <?php echo $OUTPUT->body_attributes(); ?>>
  35. <?php echo $OUTPUT->standard_top_of_body_html() ?>
  36. <div id="page" class="container-fluid">
  37. <header id="page-header" class="clearfix">
  38. <?php echo $OUTPUT->page_heading(); ?>
  39. </header>
  40. <div id="page-content" class="row">
  41. <section id="region-main" class="<?php echo $regions['content']; ?>">
  42. <?php echo $OUTPUT->main_content(); ?>
  43. </section>
  44. </div>
  45. <footer id="page-footer">
  46. <?php
  47. echo $OUTPUT->standard_footer_html();
  48. ?>
  49. </footer>
  50. <?php echo $OUTPUT->standard_end_of_body_html() ?>
  51. </div>
  52. </body>
  53. </html>