MDL-31365 Fix for safebrowser and securewindow
[moodle.git] / theme / base / config.php
1 <?php
3 // This file is part of Moodle - http://moodle.org/
4 //
5 // Moodle is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // Moodle is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
18 /**
19  * Configuration for Moodle's base theme.
20  *
21  * This theme is special, and implements a minimalist theme with only
22  * basic layout. It is intended as a base for other themes to build upon.
23  * It is not recommend to actually choose this theme for production sites!
24  *
25  * DO NOT COPY THIS TO START NEW THEMES!
26  * Start with another theme, like "standard".
27  *
28  * For full information about creating Moodle themes, see:
29  *  http://docs.moodle.org/dev/Themes_2.0
30  *
31  * @package   moodlecore
32  * @copyright 2009 Tim Hunt
33  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34  */
36 $THEME->name = 'base';
38 $THEME->parents = array();
40 $THEME->sheets = array(
41     'pagelayout',   /** Must come first: Page layout **/
42     'core',         /** Must come second: General styles **/
43     'admin',
44     'blocks',
45     'calendar',
46     'course',
47     'dock',
48     'grade',
49     'message',
50     'question',
51     'user',
52     'filemanager'
53 );
55 $THEME->editor_sheets = array('editor');
57 $THEME->layouts = array(
58     // Most backwards compatible layout without the blocks - this is the layout used by default
59     'base' => array(
60         'file' => 'general.php',
61         'regions' => array(),
62     ),
63     // Standard layout with blocks, this is recommended for most pages with general information
64     'standard' => array(
65         'file' => 'general.php',
66         'regions' => array('side-pre', 'side-post'),
67         'defaultregion' => 'side-pre',
68     ),
69     // Main course page
70     'course' => array(
71         'file' => 'general.php',
72         'regions' => array('side-pre', 'side-post'),
73         'defaultregion' => 'side-pre',
74         'options' => array('langmenu'=>true),
75     ),
76     'coursecategory' => array(
77         'file' => 'general.php',
78         'regions' => array('side-pre', 'side-post'),
79         'defaultregion' => 'side-pre',
80     ),
81     // part of course, typical for modules - default page layout if $cm specified in require_login()
82     'incourse' => array(
83         'file' => 'general.php',
84         'regions' => array('side-pre', 'side-post'),
85         'defaultregion' => 'side-pre',
86     ),
87     // The site home page.
88     'frontpage' => array(
89         'file' => 'frontpage.php',
90         'regions' => array('side-pre', 'side-post'),
91         'defaultregion' => 'side-pre',
92     ),
93     // Server administration scripts.
94     'admin' => array(
95         'file' => 'general.php',
96         'regions' => array('side-pre'),
97         'defaultregion' => 'side-pre',
98     ),
99     // My dashboard page
100     'mydashboard' => array(
101         'file' => 'general.php',
102         'regions' => array('side-pre', 'side-post'),
103         'defaultregion' => 'side-pre',
104         'options' => array('langmenu'=>true),
105     ),
106     // My public page
107     'mypublic' => array(
108         'file' => 'general.php',
109         'regions' => array('side-pre', 'side-post'),
110         'defaultregion' => 'side-pre',
111     ),
112     'login' => array(
113         'file' => 'general.php',
114         'regions' => array(),
115         'options' => array('langmenu'=>true),
116     ),
118     // Pages that appear in pop-up windows - no navigation, no blocks, no header.
119     'popup' => array(
120         'file' => 'general.php',
121         'regions' => array(),
122         'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true),
123     ),
124     // No blocks and minimal footer - used for legacy frame layouts only!
125     'frametop' => array(
126         'file' => 'general.php',
127         'regions' => array(),
128         'options' => array('nofooter'=>true),
129     ),
130     // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
131     'embedded' => array(
132         'file' => 'embedded.php',
133         'regions' => array(),
134         'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
135     ),
136     // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
137     // This must not have any blocks, and it is good idea if it does not have links to
138     // other places - for example there should not be a home link in the footer...
139     'maintenance' => array(
140         'file' => 'general.php',
141         'regions' => array(),
142         'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
143     ),
144     // Should display the content and basic headers only.
145     'print' => array(
146         'file' => 'general.php',
147         'regions' => array(),
148         'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
149     ),
150     // The pagelayout used when a redirection is occuring.
151     'redirect' => array(
152         'file' => 'embedded.php',
153         'regions' => array(),
154         'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
155     ),
156     // The pagelayout used for reports.
157     'report' => array(
158         'file' => 'report.php',
159         'regions' => array('side-pre'),
160         'defaultregion' => 'side-pre',
161     ),
162     // The pagelayout used for safebrowser and securewindow.
163     'secure' => array(
164         'file' => 'general.php',
165         'regions' => array(),
166         'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true),
167     ),
168 );
170 // We don't want the base theme to be shown on the theme selection screen, by setting
171 // this to true it will only be shown if theme designer mode is switched on.
172 $THEME->hidefromselector = true;
174 /** List of javascript files that need to included on each page */
175 $THEME->javascripts = array();
176 $THEME->javascripts_footer = array();