MDL-40670 Theme: Rescale headings overriding bootstrap defaults
[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 ),
45 'gradereport' => array(
46 'grader',
47 ),
48);
49
50$THEME->rendererfactory = 'theme_overridden_renderer_factory';
51
52$THEME->layouts = array(
67202e2f 53 // Most backwards compatible layout without the blocks - this is the layout used by default.
8903b17b 54 'base' => array(
8bfd530b 55 'file' => 'columns1.php',
67202e2f 56 'regions' => array(),
8903b17b 57 ),
67202e2f 58 // Standard layout with blocks, this is recommended for most pages with general information.
8903b17b 59 'standard' => array(
8bfd530b 60 'file' => 'columns3.php',
8903b17b
BB
61 'regions' => array('side-pre', 'side-post'),
62 'defaultregion' => 'side-pre',
63 ),
67202e2f 64 // Main course page.
8903b17b 65 'course' => array(
8bfd530b 66 'file' => 'columns3.php',
8903b17b 67 'regions' => array('side-pre', 'side-post'),
67202e2f
ME
68 'defaultregion' => 'side-pre',
69 'options' => array('langmenu'=>true),
8903b17b
BB
70 ),
71 'coursecategory' => array(
8bfd530b 72 'file' => 'columns3.php',
8903b17b
BB
73 'regions' => array('side-pre', 'side-post'),
74 'defaultregion' => 'side-pre',
75 ),
67202e2f 76 // part of course, typical for modules - default page layout if $cm specified in require_login()
8903b17b 77 'incourse' => array(
8bfd530b 78 'file' => 'columns3.php',
8903b17b
BB
79 'regions' => array('side-pre', 'side-post'),
80 'defaultregion' => 'side-pre',
81 ),
67202e2f 82 // The site home page.
8903b17b 83 'frontpage' => array(
8bfd530b 84 'file' => 'columns3.php',
67202e2f 85 'regions' => array('side-pre', 'side-post'),
8903b17b 86 'defaultregion' => 'side-pre',
67202e2f 87 'options' => array('nonavbar'=>true),
8903b17b 88 ),
67202e2f 89 // Server administration scripts.
8903b17b 90 'admin' => array(
8bfd530b 91 'file' => 'columns2.php',
8903b17b
BB
92 'regions' => array('side-pre'),
93 'defaultregion' => 'side-pre',
94 ),
67202e2f 95 // My dashboard page.
8903b17b 96 'mydashboard' => array(
8bfd530b 97 'file' => 'columns3.php',
8903b17b
BB
98 'regions' => array('side-pre', 'side-post'),
99 'defaultregion' => 'side-pre',
100 'options' => array('langmenu'=>true),
101 ),
67202e2f 102 // My public page.
8903b17b 103 'mypublic' => array(
8bfd530b 104 'file' => 'columns3.php',
8903b17b
BB
105 'regions' => array('side-pre', 'side-post'),
106 'defaultregion' => 'side-pre',
107 ),
108 'login' => array(
8bfd530b 109 'file' => 'columns1.php',
8903b17b
BB
110 'regions' => array(),
111 'options' => array('langmenu'=>true),
8903b17b 112 ),
67202e2f
ME
113
114 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
8903b17b 115 'popup' => array(
8bfd530b 116 'file' => 'columns1.php',
8903b17b 117 'regions' => array(),
8bfd530b 118 'options' => array('nofooter'=>true, 'nonavbar'=>true),
8903b17b 119 ),
67202e2f 120 // No blocks and minimal footer - used for legacy frame layouts only!
8903b17b 121 'frametop' => array(
8bfd530b 122 'file' => 'columns1.php',
8903b17b 123 'regions' => array(),
67202e2f 124 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
8903b17b 125 ),
67202e2f 126 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
8903b17b 127 'embedded' => array(
8903b17b 128 'file' => 'embedded.php',
8bfd530b 129 'regions' => array()
8903b17b 130 ),
67202e2f
ME
131 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
132 // This must not have any blocks, and it is good idea if it does not have links to
133 // other places - for example there should not be a home link in the footer...
134 'maintenance' => array(
8bfd530b 135 'file' => 'columns1.php',
67202e2f 136 'regions' => array(),
8bfd530b 137 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocoursefooter'=>true, 'nocourseheader'=>true),
67202e2f
ME
138 ),
139 // Should display the content and basic headers only.
8903b17b 140 'print' => array(
8bfd530b 141 'file' => 'columns1.php',
8903b17b 142 'regions' => array(),
8bfd530b 143 'options' => array('nofooter'=>true, 'nonavbar'=>false),
8903b17b 144 ),
67202e2f 145 // The pagelayout used when a redirection is occuring.
8903b17b 146 'redirect' => array(
67202e2f 147 'file' => 'embedded.php',
8903b17b 148 'regions' => array(),
8903b17b 149 ),
67202e2f 150 // The pagelayout used for reports.
8903b17b 151 'report' => array(
8bfd530b 152 'file' => 'columns2.php',
8903b17b
BB
153 'regions' => array('side-pre'),
154 'defaultregion' => 'side-pre',
155 ),
156 // The pagelayout used for safebrowser and securewindow.
157 'secure' => array(
8bfd530b 158 'file' => 'secure.php',
8903b17b 159 'regions' => array('side-pre', 'side-post'),
8bfd530b 160 'defaultregion' => 'side-pre'
8903b17b
BB
161 ),
162);
163
164$THEME->javascripts = array(
7e98ebd5
AN
165);
166$THEME->javascripts_footer = array(
8903b17b 167 'moodlebootstrap',
8903b17b
BB
168);
169
e807dadb 170if (check_browser_version('MSIE') && !check_browser_version('MSIE', '9.0')) {
8903b17b
BB
171 $THEME->javascripts[] = 'html5shiv';
172}
173
15153cf2 174$THEME->hidefromselector = true;
8bfd530b
SH
175
176$THEME->blockrtlmanipulations = array(
177 'side-pre' => 'side-post',
178 'side-post' => 'side-pre'
179);