MDL-41398 bootstrap: added a maintenance layout
This commit is contained in:
committed by
Marina Glancy
parent
5076c6dd17
commit
e45ef9ec88
@@ -129,12 +129,11 @@ $THEME->layouts = array(
|
||||
'regions' => array()
|
||||
),
|
||||
// Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
|
||||
// This must not have any blocks, and it is good idea if it does not have links to
|
||||
// other places - for example there should not be a home link in the footer...
|
||||
// This must not have any blocks, links, or API calls that would lead to database or cache interaction.
|
||||
// Please be extremely careful if you are modifying this layout.
|
||||
'maintenance' => array(
|
||||
'file' => 'columns1.php',
|
||||
'file' => 'maintenance.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocoursefooter'=>true, 'nocourseheader'=>true),
|
||||
),
|
||||
// Should display the content and basic headers only.
|
||||
'print' => array(
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* This layout file is designed maintenance related tasks such as upgrade and installation of plugins.
|
||||
*
|
||||
* It's ultra important that this layout file makes no use of API's unless it absolutely needs to.
|
||||
* Under no circumstances should it use API calls that result in database or cache interaction.
|
||||
*
|
||||
* If you are modifying this file please be extremely careful, one wrong API call and you could end up
|
||||
* breaking installation or upgrade unwittingly.
|
||||
*/
|
||||
|
||||
echo $OUTPUT->doctype() ?>
|
||||
<html <?php echo $OUTPUT->htmlattributes(); ?>>
|
||||
<head>
|
||||
<title><?php echo $OUTPUT->page_title(); ?></title>
|
||||
<link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" />
|
||||
<?php echo $OUTPUT->standard_head_html() ?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
|
||||
<body <?php echo $OUTPUT->body_attributes(); ?>>
|
||||
|
||||
<?php echo $OUTPUT->standard_top_of_body_html() ?>
|
||||
|
||||
<div id="page" class="container-fluid">
|
||||
|
||||
<header id="page-header" class="clearfix">
|
||||
<?php echo $OUTPUT->page_heading(); ?>
|
||||
</header>
|
||||
|
||||
<div id="page-content" class="row-fluid">
|
||||
<section id="region-main" class="span12">
|
||||
<?php echo $OUTPUT->main_content(); ?>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer id="page-footer">
|
||||
<?php
|
||||
echo $OUTPUT->standard_footer_html();
|
||||
?>
|
||||
</footer>
|
||||
|
||||
<?php echo $OUTPUT->standard_end_of_body_html() ?>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
This file describes API changes in /theme/bootstrapbase
|
||||
information provided here is intended especially for theme designers.
|
||||
|
||||
=== 2.5.3 ===
|
||||
Notes:
|
||||
* A new maintenance layout file was introduced.
|
||||
If you have a theme based upon bootstrapbase that implements its own layouts but
|
||||
does not define the maintenance layout in its config.php then you may want to
|
||||
create your own maintenance layout file and apply your customisations to that.
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Get the HTML for the settings bits.
|
||||
$html = theme_clean_get_html_for_settings($OUTPUT, $PAGE);
|
||||
|
||||
echo $OUTPUT->doctype() ?>
|
||||
<html <?php echo $OUTPUT->htmlattributes(); ?>>
|
||||
<head>
|
||||
<title><?php echo $OUTPUT->page_title(); ?></title>
|
||||
<link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" />
|
||||
<?php echo $OUTPUT->standard_head_html() ?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
|
||||
<body <?php echo $OUTPUT->body_attributes(); ?>>
|
||||
|
||||
<?php echo $OUTPUT->standard_top_of_body_html() ?>
|
||||
|
||||
<div id="page" class="container-fluid">
|
||||
|
||||
<header id="page-header" class="clearfix">
|
||||
<?php echo $html->heading; ?>
|
||||
</header>
|
||||
|
||||
<div id="page-content" class="row-fluid">
|
||||
<section id="region-main" class="span12">
|
||||
<?php echo $OUTPUT->main_content(); ?>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer id="page-footer">
|
||||
<?php
|
||||
echo $OUTPUT->standard_footer_html();
|
||||
?>
|
||||
</footer>
|
||||
|
||||
<?php echo $OUTPUT->standard_end_of_body_html() ?>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,6 +1,11 @@
|
||||
This files describes API changes in /theme/* themes,
|
||||
information provided here is intended especially for theme designer.
|
||||
|
||||
=== 2.5.3 ===
|
||||
|
||||
Notes:
|
||||
* For themes based on bootstrapbase please also read theme/bootstrapbase/upgrade.txt
|
||||
|
||||
=== 2.5.1 ===
|
||||
|
||||
Notes:
|
||||
|
||||
Reference in New Issue
Block a user