Merge branch 'MDL-36316-master' of git://github.com/danpoltawski/moodle
[moodle.git] / theme / bootstrapbase / config.php
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/>.
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  *
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
30  */
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(
42     'block' => array(
43         'html'
44     ),
45 );
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.
51     'base' => array(
52         'file' => 'columns1.php',
53         'regions' => array(),
54     ),
55     // Standard layout with blocks, this is recommended for most pages with general information.
56     'standard' => array(
57         'file' => 'columns3.php',
58         'regions' => array('side-pre', 'side-post'),
59         'defaultregion' => 'side-pre',
60     ),
61     // Main course page.
62     'course' => array(
63         'file' => 'columns3.php',
64         'regions' => array('side-pre', 'side-post'),
65         'defaultregion' => 'side-pre',
66         'options' => array('langmenu'=>true),
67     ),
68     'coursecategory' => array(
69         'file' => 'columns3.php',
70         'regions' => array('side-pre', 'side-post'),
71         'defaultregion' => 'side-pre',
72     ),
73     // part of course, typical for modules - default page layout if $cm specified in require_login().
74     'incourse' => array(
75         'file' => 'columns3.php',
76         'regions' => array('side-pre', 'side-post'),
77         'defaultregion' => 'side-pre',
78     ),
79     // The site home page.
80     'frontpage' => array(
81         'file' => 'columns3.php',
82         'regions' => array('side-pre', 'side-post'),
83         'defaultregion' => 'side-pre',
84         'options' => array('nonavbar'=>true),
85     ),
86     // Server administration scripts.
87     'admin' => array(
88         'file' => 'columns2.php',
89         'regions' => array('side-pre'),
90         'defaultregion' => 'side-pre',
91     ),
92     // My dashboard page.
93     'mydashboard' => array(
94         'file' => 'columns3.php',
95         'regions' => array('side-pre', 'side-post'),
96         'defaultregion' => 'side-pre',
97         'options' => array('langmenu'=>true),
98     ),
99     // My public page.
100     'mypublic' => array(
101         'file' => 'columns3.php',
102         'regions' => array('side-pre', 'side-post'),
103         'defaultregion' => 'side-pre',
104     ),
105     'login' => array(
106         'file' => 'columns1.php',
107         'regions' => array(),
108         'options' => array('langmenu'=>true),
109     ),
111     // Pages that appear in pop-up windows - no navigation, no blocks, no header.
112     'popup' => array(
113         'file' => 'columns1.php',
114         'regions' => array(),
115         'options' => array('nofooter'=>true, 'nonavbar'=>true),
116     ),
117     // No blocks and minimal footer - used for legacy frame layouts only!
118     'frametop' => array(
119         'file' => 'columns1.php',
120         'regions' => array(),
121         'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
122     ),
123     // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
124     'embedded' => array(
125         'file' => 'embedded.php',
126         'regions' => array()
127     ),
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),
135     ),
136     // Should display the content and basic headers only.
137     'print' => array(
138         'file' => 'columns1.php',
139         'regions' => array(),
140         'options' => array('nofooter'=>true, 'nonavbar'=>false),
141     ),
142     // The pagelayout used when a redirection is occuring.
143     'redirect' => array(
144         'file' => 'embedded.php',
145         'regions' => array(),
146     ),
147     // The pagelayout used for reports.
148     'report' => array(
149         'file' => 'columns2.php',
150         'regions' => array('side-pre'),
151         'defaultregion' => 'side-pre',
152     ),
153     // The pagelayout used for safebrowser and securewindow.
154     'secure' => array(
155         'file' => 'secure.php',
156         'regions' => array('side-pre', 'side-post'),
157         'defaultregion' => 'side-pre'
158     ),
159 );
161 $THEME->javascripts = array(
162 );
163 $THEME->javascripts_footer = array(
164     'moodlebootstrap',
165 );
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'
176 );