MDL-31365 Fix for safebrowser and securewindow
[moodle.git] / theme / base / config.php
CommitLineData
78946b9b
PS
1<?php
2
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/>.
17
78946b9b 18/**
91266444 19 * Configuration for Moodle's base theme.
78946b9b 20 *
91266444
MD
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!
78946b9b 24 *
ed5d13c0 25 * DO NOT COPY THIS TO START NEW THEMES!
91266444 26 * Start with another theme, like "standard".
78946b9b 27 *
91266444 28 * For full information about creating Moodle themes, see:
728ebac7 29 * http://docs.moodle.org/dev/Themes_2.0
78946b9b
PS
30 *
31 * @package moodlecore
32 * @copyright 2009 Tim Hunt
33 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34 */
35
90723839 36$THEME->name = 'base';
78946b9b
PS
37
38$THEME->parents = array();
39
40$THEME->sheets = array(
90723839
SH
41 'pagelayout', /** Must come first: Page layout **/
42 'core', /** Must come second: General styles **/
43 'admin',
78946b9b 44 'blocks',
90723839 45 'calendar',
78946b9b 46 'course',
7e4617f7 47 'dock',
90723839
SH
48 'grade',
49 'message',
50 'question',
b5e7b638
MG
51 'user',
52 'filemanager'
78946b9b
PS
53);
54
ca194849 55$THEME->editor_sheets = array('editor');
78946b9b
PS
56
57$THEME->layouts = array(
191b267b
PS
58 // Most backwards compatible layout without the blocks - this is the layout used by default
59 'base' => array(
191b267b
PS
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(
78946b9b
PS
65 'file' => 'general.php',
66 'regions' => array('side-pre', 'side-post'),
96e0e914 67 'defaultregion' => 'side-pre',
78946b9b 68 ),
191b267b 69 // Main course page
78946b9b 70 'course' => array(
78946b9b
PS
71 'file' => 'general.php',
72 'regions' => array('side-pre', 'side-post'),
96e0e914 73 'defaultregion' => 'side-pre',
244a32c6 74 'options' => array('langmenu'=>true),
191b267b
PS
75 ),
76 'coursecategory' => array(
191b267b
PS
77 'file' => 'general.php',
78 'regions' => array('side-pre', 'side-post'),
96e0e914 79 'defaultregion' => 'side-pre',
191b267b
PS
80 ),
81 // part of course, typical for modules - default page layout if $cm specified in require_login()
82 'incourse' => array(
191b267b
PS
83 'file' => 'general.php',
84 'regions' => array('side-pre', 'side-post'),
96e0e914 85 'defaultregion' => 'side-pre',
78946b9b
PS
86 ),
87 // The site home page.
191b267b 88 'frontpage' => array(
191b267b 89 'file' => 'frontpage.php',
78946b9b 90 'regions' => array('side-pre', 'side-post'),
96e0e914 91 'defaultregion' => 'side-pre',
78946b9b
PS
92 ),
93 // Server administration scripts.
94 'admin' => array(
78946b9b
PS
95 'file' => 'general.php',
96 'regions' => array('side-pre'),
191b267b 97 'defaultregion' => 'side-pre',
78946b9b 98 ),
191b267b
PS
99 // My dashboard page
100 'mydashboard' => array(
78946b9b
PS
101 'file' => 'general.php',
102 'regions' => array('side-pre', 'side-post'),
96e0e914 103 'defaultregion' => 'side-pre',
244a32c6 104 'options' => array('langmenu'=>true),
78946b9b 105 ),
191b267b
PS
106 // My public page
107 'mypublic' => array(
191b267b
PS
108 'file' => 'general.php',
109 'regions' => array('side-pre', 'side-post'),
96e0e914 110 'defaultregion' => 'side-pre',
191b267b
PS
111 ),
112 'login' => array(
78946b9b
PS
113 'file' => 'general.php',
114 'regions' => array(),
244a32c6 115 'options' => array('langmenu'=>true),
78946b9b 116 ),
191b267b 117
78946b9b
PS
118 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
119 'popup' => array(
78946b9b
PS
120 'file' => 'general.php',
121 'regions' => array(),
7941cb21 122 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true),
78946b9b
PS
123 ),
124 // No blocks and minimal footer - used for legacy frame layouts only!
125 'frametop' => array(
78946b9b
PS
126 'file' => 'general.php',
127 'regions' => array(),
00db2a35 128 'options' => array('nofooter'=>true),
78946b9b 129 ),
191b267b 130 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
78946b9b 131 'embedded' => array(
78946b9b
PS
132 'file' => 'embedded.php',
133 'regions' => array(),
d2dbd0c0 134 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
78946b9b
PS
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(
78946b9b
PS
140 'file' => 'general.php',
141 'regions' => array(),
d2dbd0c0 142 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
78946b9b 143 ),
ed5d13c0
PS
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 ),
96321cf4
SH
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 ),
2d0e682d 156 // The pagelayout used for reports.
367a75fa
SH
157 'report' => array(
158 'file' => 'report.php',
159 'regions' => array('side-pre'),
160 'defaultregion' => 'side-pre',
161 ),
2d0e682d
MV
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 ),
78946b9b
PS
168);
169
4d56ee95
SH
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;
173
358c13cb 174/** List of javascript files that need to included on each page */
9d897331 175$THEME->javascripts = array();
91266444 176$THEME->javascripts_footer = array();