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
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 = 'bootstrapbase';
35 $THEME->parents = array();
36 $THEME->sheets = array('moodle');
37 $THEME->supportscssoptimisation = false;
39 $THEME->editor_sheets = array('editor');
41 $THEME->plugins_exclude_sheets = array(
47 $THEME->rendererfactory = 'theme_overridden_renderer_factory';
49 $THEME->layouts = array(
50 // Most backwards compatible layout without the blocks - this is the layout used by default.
52 'file' => 'columns1.php',
55 // Standard layout with blocks, this is recommended for most pages with general information.
57 'file' => 'columns3.php',
58 'regions' => array('side-pre', 'side-post'),
59 'defaultregion' => 'side-pre',
63 'file' => 'columns3.php',
64 'regions' => array('side-pre', 'side-post'),
65 'defaultregion' => 'side-pre',
66 'options' => array('langmenu'=>true),
68 'coursecategory' => array(
69 'file' => 'columns3.php',
70 'regions' => array('side-pre', 'side-post'),
71 'defaultregion' => 'side-pre',
73 // part of course, typical for modules - default page layout if $cm specified in require_login().
75 'file' => 'columns3.php',
76 'regions' => array('side-pre', 'side-post'),
77 'defaultregion' => 'side-pre',
79 // The site home page.
81 'file' => 'columns3.php',
82 'regions' => array('side-pre', 'side-post'),
83 'defaultregion' => 'side-pre',
84 'options' => array('nonavbar'=>true),
86 // Server administration scripts.
88 'file' => 'columns2.php',
89 'regions' => array('side-pre'),
90 'defaultregion' => 'side-pre',
93 'mydashboard' => array(
94 'file' => 'columns3.php',
95 'regions' => array('side-pre', 'side-post'),
96 'defaultregion' => 'side-pre',
97 'options' => array('langmenu'=>true),
101 'file' => 'columns3.php',
102 'regions' => array('side-pre', 'side-post'),
103 'defaultregion' => 'side-pre',
106 'file' => 'columns1.php',
107 'regions' => array(),
108 'options' => array('langmenu'=>true),
111 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
113 'file' => 'columns1.php',
114 'regions' => array(),
115 'options' => array('nofooter'=>true, 'nonavbar'=>true),
117 // No blocks and minimal footer - used for legacy frame layouts only!
119 'file' => 'columns1.php',
120 'regions' => array(),
121 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
123 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
125 'file' => 'embedded.php',
128 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
129 // This must not have any blocks, and it is good idea if it does not have links to
130 // other places - for example there should not be a home link in the footer...
131 'maintenance' => array(
132 'file' => 'columns1.php',
133 'regions' => array(),
134 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocoursefooter'=>true, 'nocourseheader'=>true),
136 // Should display the content and basic headers only.
138 'file' => 'columns1.php',
139 'regions' => array(),
140 'options' => array('nofooter'=>true, 'nonavbar'=>false),
142 // The pagelayout used when a redirection is occuring.
144 'file' => 'embedded.php',
145 'regions' => array(),
147 // The pagelayout used for reports.
149 'file' => 'columns2.php',
150 'regions' => array('side-pre'),
151 'defaultregion' => 'side-pre',
153 // The pagelayout used for safebrowser and securewindow.
155 'file' => 'secure.php',
156 'regions' => array('side-pre', 'side-post'),
157 'defaultregion' => 'side-pre'
161 $THEME->javascripts = array(
163 $THEME->javascripts_footer = array(
167 if (core_useragent::is_ie() && !core_useragent::check_ie_version('9.0')) {
168 $THEME->javascripts[] = 'html5shiv';
171 $THEME->hidefromselector = true;
173 $THEME->blockrtlmanipulations = array(
174 'side-pre' => 'side-post',
175 'side-post' => 'side-pre'