2 // This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 * Configuration for Moodle's bootstrap theme.
20 * DO NOT MODIFY THIS THEME!
21 * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
23 * For full information about creating Moodle themes, see:
24 * http://docs.moodle.org/dev/Themes_2.0
26 * @package Moodle Bootstrap theme
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
32 $THEME->doctype = 'html5';
33 $THEME->yuicssmodules = array();
34 $THEME->name = 'bootstrap';
35 $THEME->parents = array('');
36 $THEME->sheets = array('generated');
37 $THEME->supportscssoptimisation = false;
39 $THEME->editor_sheets = array('editor');
41 $THEME->plugins_exclude_sheets = array(
47 'gradereport' => array(
52 $THEME->rendererfactory = 'theme_overridden_renderer_factory';
54 $THEME->layouts = array(
56 'file' => 'general.php',
57 'regions' => array('side-pre', 'side-post'),
58 'defaultregion' => 'side-pre',
61 'file' => 'general.php',
62 'regions' => array('side-pre', 'side-post'),
63 'defaultregion' => 'side-pre',
66 'file' => 'general.php',
67 'regions' => array('side-pre', 'side-post'),
68 'defaultregion' => 'side-pre'
70 'coursecategory' => array(
71 'file' => 'general.php',
72 'regions' => array('side-pre', 'side-post'),
73 'defaultregion' => 'side-pre',
76 'file' => 'general.php',
77 'regions' => array('side-pre', 'side-post'),
78 'defaultregion' => 'side-pre',
81 'file' => 'general.php',
82 'regions' => array('side-pre'),
83 'defaultregion' => 'side-pre',
84 'options' => array('nonavbar'=>true),
87 'file' => 'general.php',
88 'regions' => array('side-pre'),
89 'defaultregion' => 'side-pre',
91 'mydashboard' => array(
92 'file' => 'general.php',
93 'regions' => array('side-pre', 'side-post'),
94 'defaultregion' => 'side-pre',
95 'options' => array('langmenu'=>true),
98 'file' => 'general.php',
99 'regions' => array('side-pre', 'side-post'),
100 'defaultregion' => 'side-pre',
103 'file' => 'general.php',
104 'regions' => array(),
105 'options' => array('langmenu'=>true),
106 'options' => array('nonavbar'=>true, 'noheader'=>true),
109 'file' => 'general.php',
110 'regions' => array(),
111 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
114 'file' => 'general.php',
115 'regions' => array(),
116 'options' => array('nofooter'=>true),
118 'maintenance' => array(
119 'file' => 'general.php',
120 'regions' => array(),
121 'options' => array('nofooter'=>true, 'nonavbar'=>true),
125 'file' => 'embedded.php',
126 'regions' => array(),
127 'options' => array('nofooter'=>true, 'nonavbar'=>true),
130 'file' => 'general.php',
131 'regions' => array(),
132 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
135 'file' => 'general.php',
136 'regions' => array(),
137 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
140 'file' => 'general.php',
141 'regions' => array('side-pre'),
142 'defaultregion' => 'side-pre',
144 // The pagelayout used for safebrowser and securewindow.
146 'file' => 'general.php',
147 'regions' => array('side-pre', 'side-post'),
148 'defaultregion' => 'side-pre',
149 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true,
150 'nologinlinks'=>true, 'nocourseheaderfooter'=>true),
154 $THEME->javascripts = array(
156 $THEME->javascripts_footer = array(
161 if (!empty($_SERVER['HTTP_USER_AGENT'])) {
162 $useragent = $_SERVER['HTTP_USER_AGENT'];
164 if (strpos($useragent, 'MSIE 8') || strpos($useragent, 'MSIE 7')) {
165 $THEME->javascripts[] = 'html5shiv';
168 $THEME->hidefromselector = true;