MDL-41398 bootstrap: added a maintenance layout
[moodle.git] / theme / bootstrapbase / config.php
CommitLineData
8903b17b
BB
1<?php
2// This file is part of Moodle - http://moodle.org/
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/**
18 * Configuration for Moodle's bootstrap theme.
19 *
20 * DO NOT MODIFY THIS THEME!
21 * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
22 *
23 * For full information about creating Moodle themes, see:
24 * http://docs.moodle.org/dev/Themes_2.0
25 *
574909ef 26 * @package theme_bootstrapbase
8903b17b
BB
27 * @copyright 2013 Bas Brands. www.sonsbeekmedia.nl
28 * @authors Bas Brands, David Scotson
29 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30 */
31
32$THEME->doctype = 'html5';
33$THEME->yuicssmodules = array();
4f100820 34$THEME->name = 'bootstrapbase';
8bfd530b 35$THEME->parents = array();
36f33e3c 36$THEME->sheets = array('moodle');
8903b17b
BB
37$THEME->supportscssoptimisation = false;
38
39$THEME->editor_sheets = array('editor');
40
8903b17b
BB
41$THEME->plugins_exclude_sheets = array(
42 'block' => array(
8903b17b
BB
43 'html'
44 ),
8903b17b
BB
45);
46
47$THEME->rendererfactory = 'theme_overridden_renderer_factory';
48
49$THEME->layouts = array(
67202e2f 50 // Most backwards compatible layout without the blocks - this is the layout used by default.
8903b17b 51 'base' => array(
8bfd530b 52 'file' => 'columns1.php',
67202e2f 53 'regions' => array(),
8903b17b 54 ),
67202e2f 55 // Standard layout with blocks, this is recommended for most pages with general information.
8903b17b 56 'standard' => array(
8bfd530b 57 'file' => 'columns3.php',
8903b17b
BB
58 'regions' => array('side-pre', 'side-post'),
59 'defaultregion' => 'side-pre',
60 ),
67202e2f 61 // Main course page.
8903b17b 62 'course' => array(
8bfd530b 63 'file' => 'columns3.php',
8903b17b 64 'regions' => array('side-pre', 'side-post'),
67202e2f
ME
65 'defaultregion' => 'side-pre',
66 'options' => array('langmenu'=>true),
8903b17b
BB
67 ),
68 'coursecategory' => array(
8bfd530b 69 'file' => 'columns3.php',
8903b17b
BB
70 'regions' => array('side-pre', 'side-post'),
71 'defaultregion' => 'side-pre',
72 ),
c3d2fbf9 73 // part of course, typical for modules - default page layout if $cm specified in require_login().
8903b17b 74 'incourse' => array(
8bfd530b 75 'file' => 'columns3.php',
8903b17b
BB
76 'regions' => array('side-pre', 'side-post'),
77 'defaultregion' => 'side-pre',
78 ),
67202e2f 79 // The site home page.
8903b17b 80 'frontpage' => array(
8bfd530b 81 'file' => 'columns3.php',
67202e2f 82 'regions' => array('side-pre', 'side-post'),
8903b17b 83 'defaultregion' => 'side-pre',
67202e2f 84 'options' => array('nonavbar'=>true),
8903b17b 85 ),
67202e2f 86 // Server administration scripts.
8903b17b 87 'admin' => array(
8bfd530b 88 'file' => 'columns2.php',
8903b17b
BB
89 'regions' => array('side-pre'),
90 'defaultregion' => 'side-pre',
91 ),
67202e2f 92 // My dashboard page.
8903b17b 93 'mydashboard' => array(
8bfd530b 94 'file' => 'columns3.php',
8903b17b
BB
95 'regions' => array('side-pre', 'side-post'),
96 'defaultregion' => 'side-pre',
97 'options' => array('langmenu'=>true),
98 ),
67202e2f 99 // My public page.
8903b17b 100 'mypublic' => array(
8bfd530b 101 'file' => 'columns3.php',
8903b17b
BB
102 'regions' => array('side-pre', 'side-post'),
103 'defaultregion' => 'side-pre',
104 ),
105 'login' => array(
8bfd530b 106 'file' => 'columns1.php',
8903b17b
BB
107 'regions' => array(),
108 'options' => array('langmenu'=>true),
8903b17b 109 ),
67202e2f
ME
110
111 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
8903b17b 112 'popup' => array(
8bfd530b 113 'file' => 'columns1.php',
8903b17b 114 'regions' => array(),
8bfd530b 115 'options' => array('nofooter'=>true, 'nonavbar'=>true),
8903b17b 116 ),
67202e2f 117 // No blocks and minimal footer - used for legacy frame layouts only!
8903b17b 118 'frametop' => array(
8bfd530b 119 'file' => 'columns1.php',
8903b17b 120 'regions' => array(),
67202e2f 121 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
8903b17b 122 ),
c3d2fbf9 123 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
8903b17b 124 'embedded' => array(
8903b17b 125 'file' => 'embedded.php',
8bfd530b 126 'regions' => array()
8903b17b 127 ),
67202e2f 128 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
c7b6b27d
SH
129 // This must not have any blocks, links, or API calls that would lead to database or cache interaction.
130 // Please be extremely careful if you are modifying this layout.
67202e2f 131 'maintenance' => array(
c7b6b27d 132 'file' => 'maintenance.php',
67202e2f 133 'regions' => array(),
67202e2f
ME
134 ),
135 // Should display the content and basic headers only.
8903b17b 136 'print' => array(
8bfd530b 137 'file' => 'columns1.php',
8903b17b 138 'regions' => array(),
8bfd530b 139 'options' => array('nofooter'=>true, 'nonavbar'=>false),
8903b17b 140 ),
67202e2f 141 // The pagelayout used when a redirection is occuring.
8903b17b 142 'redirect' => array(
67202e2f 143 'file' => 'embedded.php',
8903b17b 144 'regions' => array(),
8903b17b 145 ),
67202e2f 146 // The pagelayout used for reports.
8903b17b 147 'report' => array(
8bfd530b 148 'file' => 'columns2.php',
8903b17b
BB
149 'regions' => array('side-pre'),
150 'defaultregion' => 'side-pre',
151 ),
152 // The pagelayout used for safebrowser and securewindow.
153 'secure' => array(
8bfd530b 154 'file' => 'secure.php',
8903b17b 155 'regions' => array('side-pre', 'side-post'),
8bfd530b 156 'defaultregion' => 'side-pre'
8903b17b
BB
157 ),
158);
159
160$THEME->javascripts = array(
7e98ebd5
AN
161);
162$THEME->javascripts_footer = array(
8903b17b 163 'moodlebootstrap',
8903b17b
BB
164);
165
378b3eac 166if (core_useragent::is_ie() && !core_useragent::check_ie_version('9.0')) {
8903b17b
BB
167 $THEME->javascripts[] = 'html5shiv';
168}
169
15153cf2 170$THEME->hidefromselector = true;
8bfd530b
SH
171
172$THEME->blockrtlmanipulations = array(
173 'side-pre' => 'side-post',
174 'side-post' => 'side-pre'
175);