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 theme_bootstrapbase
27 * @copyright 2013 Bas Brands. www.sonsbeekmedia.nl
29 * @author David Scotson
30 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33 $THEME->doctype
= 'html5';
34 $THEME->yuicssmodules
= array();
35 $THEME->name
= 'bootstrapbase';
36 $THEME->parents
= array();
37 $THEME->sheets
= array('moodle');
38 $THEME->supportscssoptimisation
= false;
39 $THEME->enable_dock
= false;
40 $THEME->editor_sheets
= array('editor');
42 $THEME->rendererfactory
= 'theme_overridden_renderer_factory';
44 $THEME->layouts
= array(
45 // Most backwards compatible layout without the blocks - this is the layout used by default.
47 'file' => 'columns1.php',
50 // Standard layout with blocks, this is recommended for most pages with general information.
52 'file' => 'columns3.php',
53 'regions' => array('side-pre', 'side-post'),
54 'defaultregion' => 'side-pre',
58 'file' => 'columns3.php',
59 'regions' => array('side-pre', 'side-post'),
60 'defaultregion' => 'side-pre',
61 'options' => array('langmenu' => true),
63 'coursecategory' => array(
64 'file' => 'columns3.php',
65 'regions' => array('side-pre', 'side-post'),
66 'defaultregion' => 'side-pre',
68 // Part of course, typical for modules - default page layout if $cm specified in require_login().
70 'file' => 'columns3.php',
71 'regions' => array('side-pre', 'side-post'),
72 'defaultregion' => 'side-pre',
74 // The site home page.
76 'file' => 'columns3.php',
77 'regions' => array('side-pre', 'side-post'),
78 'defaultregion' => 'side-pre',
79 'options' => array('nonavbar' => true),
81 // Server administration scripts.
83 'file' => 'columns2.php',
84 'regions' => array('side-pre'),
85 'defaultregion' => 'side-pre',
88 'mydashboard' => array(
89 'file' => 'columns3.php',
90 'regions' => array('side-pre', 'side-post'),
91 'defaultregion' => 'side-pre',
92 'options' => array('langmenu' => true),
96 'file' => 'columns3.php',
97 'regions' => array('side-pre', 'side-post'),
98 'defaultregion' => 'side-pre',
101 'file' => 'columns1.php',
102 'regions' => array(),
103 'options' => array('langmenu' => true),
106 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
108 'file' => 'popup.php',
109 'regions' => array(),
110 'options' => array('nofooter' => true, 'nonavbar' => true),
112 // No blocks and minimal footer - used for legacy frame layouts only!
114 'file' => 'columns1.php',
115 'regions' => array(),
116 'options' => array('nofooter' => true, 'nocoursefooter' => true),
118 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
120 'file' => 'embedded.php',
123 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
124 // This must not have any blocks, links, or API calls that would lead to database or cache interaction.
125 // Please be extremely careful if you are modifying this layout.
126 'maintenance' => array(
127 'file' => 'maintenance.php',
128 'regions' => array(),
130 // Should display the content and basic headers only.
132 'file' => 'columns1.php',
133 'regions' => array(),
134 'options' => array('nofooter' => true, 'nonavbar' => false),
136 // The pagelayout used when a redirection is occuring.
138 'file' => 'embedded.php',
139 'regions' => array(),
141 // The pagelayout used for reports.
143 'file' => 'columns2.php',
144 'regions' => array('side-pre'),
145 'defaultregion' => 'side-pre',
147 // The pagelayout used for safebrowser and securewindow.
149 'file' => 'secure.php',
150 'regions' => array('side-pre', 'side-post'),
151 'defaultregion' => 'side-pre'
155 $THEME->javascripts
= array(
157 $THEME->javascripts_footer
= array(
158 'moodlebootstrap', 'dock'
161 if (core_useragent
::is_ie() && !core_useragent
::check_ie_version('9.0')) {
162 $THEME->javascripts
[] = 'html5shiv';
165 $THEME->hidefromselector
= true;
167 $THEME->blockrtlmanipulations
= array(
168 'side-pre' => 'side-post',
169 'side-post' => 'side-pre'