MDL-29614 theme_formal_white: Change the way Formal White theme shrinks pages
[moodle.git] / theme / formal_white / config.php
CommitLineData
57bfc29a
AB
1<?php
2
4afb01db 3defined('MOODLE_INTERNAL') || die();
4
9deebbda
AB
5// This file is part of Moodle - http://moodle.org/
6//
7// Moodle is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11//
12// Moodle is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
19
20/**
21 * Configuration for Moodle's nonzero theme.
22 *
23 * DO NOT MODIFY THIS THEME!
24 * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
25 *
26 * For full information about creating Moodle themes, see:
728ebac7 27 * http://docs.moodle.org/dev/Themes_2.0
9deebbda
AB
28 *
29 * @package moodlecore
30 * @copyright Mediatouch 2000 (http://mediatouch.it/)
31 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32 */
57bfc29a 33
4afb01db 34
57bfc29a 35$THEME->name = 'formal_white';
9deebbda
AB
36////////////////////////////////////////////////////
37// Name of the theme. Most likely the name of
38// the directory in which this file resides.
39////////////////////////////////////////////////////
57bfc29a 40
4afb01db 41
42$THEME->parents = array('base','canvas');
9deebbda
AB
43/////////////////////////////////////////////////////
44// Which existing theme(s) in the /theme/ directory
45// do you want this theme to extend. A theme can
46// extend any number of themes. Rather than
47// creating an entirely new theme and copying all
48// of the CSS, you can simply create a new theme,
49// extend the theme you like and just add the
50// changes you want to your theme.
51////////////////////////////////////////////////////
57bfc29a 52
57bfc29a 53
9deebbda 54$THEME->parents_exclude_sheets = array(
9c3ad72f 55 'canvas'=>array(
4afb01db 56 'core',
57 'pagelayout',
9c3ad72f 58 'tabs',
5e911b2e 59 'tables',
9c3ad72f 60 ),
9deebbda 61);
4afb01db 62////////////////////////////////////////////////////
63// An array of stylesheets not to inherit from the
64// themes parents
65////////////////////////////////////////////////////
66
67
68$THEME->sheets = array('frame' ,'menu', 'course',
69 'pagelayout','core', 'calendar',
712dee7a 70 'tabs' ,'quiz', 'forum',
71 'formal_white');
4afb01db 72////////////////////////////////////////////////////
73// Name of the stylesheet(s) you've including in
74// this theme's /styles/ directory.
75////////////////////////////////////////////////////
76
77
78$THEME->enable_dock = true;
79////////////////////////////////////////////////////
80// Do you want to use the new navigation dock?
81////////////////////////////////////////////////////
57bfc29a 82
57bfc29a 83
4afb01db 84$THEME->editor_sheets = array('editor');
85////////////////////////////////////////////////////
86// An array of stylesheets to include within the
87// body of the editor.
88////////////////////////////////////////////////////
57bfc29a 89
57bfc29a 90
57bfc29a 91$THEME->layouts = array(
57bfc29a 92 'base' => array(
9deebbda 93 'file' => 'general.php',
4afb01db 94 'regions' => array('side-pre', 'side-post'),
95 'defaultregion' => 'side-post',
57bfc29a 96 ),
4afb01db 97 'general' => array(
9deebbda 98 'file' => 'general.php',
4afb01db 99 'regions' => array('side-pre', 'side-post'),
100 'defaultregion' => 'side-post',
57bfc29a 101 ),
57bfc29a 102 'course' => array(
9deebbda 103 'file' => 'general.php',
57bfc29a 104 'regions' => array('side-pre', 'side-post'),
4afb01db 105 'defaultregion' => 'side-post',
106 'options' => array('langmenu'=>true),
57bfc29a 107 ),
57bfc29a 108 'coursecategory' => array(
9deebbda 109 'file' => 'general.php',
57bfc29a 110 'regions' => array('side-pre', 'side-post'),
4afb01db 111 'defaultregion' => 'side-post',
57bfc29a
AB
112 ),
113 'incourse' => array(
9deebbda 114 'file' => 'general.php',
57bfc29a 115 'regions' => array('side-pre', 'side-post'),
4afb01db 116 'defaultregion' => 'side-post',
57bfc29a
AB
117 ),
118 'frontpage' => array(
4afb01db 119 'file' => 'frontpage.php',
57bfc29a 120 'regions' => array('side-pre', 'side-post'),
4afb01db 121 'defaultregion' => 'side-post',
122 'options' => array('langmenu'=>true),
57bfc29a
AB
123 ),
124 'admin' => array(
9deebbda 125 'file' => 'general.php',
57bfc29a 126 'regions' => array('side-pre'),
4afb01db 127 'defaultregion' => 'side-pre',
57bfc29a
AB
128 ),
129 'mydashboard' => array(
9deebbda 130 'file' => 'general.php',
57bfc29a 131 'regions' => array('side-pre', 'side-post'),
4afb01db 132 'defaultregion' => 'side-post',
133 'options' => array('langmenu'=>true),
57bfc29a
AB
134 ),
135 'mypublic' => array(
9deebbda 136 'file' => 'general.php',
57bfc29a 137 'regions' => array('side-pre', 'side-post'),
4afb01db 138 'defaultregion' => 'side-post',
57bfc29a
AB
139 ),
140 'login' => array(
9deebbda 141 'file' => 'general.php',
4afb01db 142 'regions' => array(),
143 'options' => array('langmenu'=>true),
57bfc29a
AB
144 ),
145 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
146 'popup' => array(
110e6876 147 'file' => 'general.php',
57bfc29a 148 'regions' => array(),
4afb01db 149 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
57bfc29a
AB
150 ),
151 // No blocks and minimal footer - used for legacy frame layouts only!
152 'frametop' => array(
9deebbda 153 'file' => 'general.php',
57bfc29a 154 'regions' => array(),
4afb01db 155 'options' => array('nofooter'=>true),
57bfc29a 156 ),
4afb01db 157 // Embeded pages, like iframe embeded in moodleform (chat)
57bfc29a 158 'embedded' => array(
4afb01db 159 'file' => 'embedded.php',
57bfc29a 160 'regions' => array(),
4afb01db 161 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
57bfc29a
AB
162 ),
163 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
164 // This must not have any blocks, and it is good idea if it does not have links to
165 // other places - for example there should not be a home link in the footer...
166 'maintenance' => array(
9deebbda 167 'file' => 'general.php',
57bfc29a 168 'regions' => array(),
4afb01db 169 'options' => array('nofooter'=>true, 'nonavbar'=>true),
ed5d13c0
PS
170 ),
171 // Should display the content and basic headers only.
172 'print' => array(
173 'file' => 'general.php',
174 'regions' => array(),
175 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
176 ),
367a75fa 177 'report' => array(
1bc47427 178 'file' => 'report.php',
367a75fa 179 'regions' => array('side-pre'),
4afb01db 180 'defaultregion' => 'side-pre',
367a75fa 181 ),
57bfc29a 182);
4afb01db 183///////////////////////////////////////////////////////////////
184// These are all of the possible layouts in Moodle. The
185// simplest way to do this is to keep the theme and file
186// variables the same for every layout. Including them
187// all in this way allows some flexibility down the road
188// if you want to add a different layout template to a
189// specific page.
190///////////////////////////////////////////////////////////////
57bfc29a 191
57bfc29a 192
4afb01db 193$THEME->csspostprocess = 'formal_white_user_settings';
194////////////////////////////////////////////////////
195// Allows the user to provide the name of a function
196// that all CSS should be passed to before being
197// delivered.
198////////////////////////////////////////////////////
199
200
4afb01db 201// $THEME->javascripts
202////////////////////////////////////////////////////
203// An array containing the names of JavaScript files
204// located in /javascript/ to include in the theme.
205// (gets included in the head)
206////////////////////////////////////////////////////
207
208
209// $THEME->javascripts_footer
210////////////////////////////////////////////////////
211// As above but will be included in the page footer.
212////////////////////////////////////////////////////
213
214
215//$THEME->larrow = "&#60";
216////////////////////////////////////////////////////
217// Overrides the left arrow image used throughout
218// Moodle
219////////////////////////////////////////////////////
220
221
222//$THEME->rarrow = "&#62";
223////////////////////////////////////////////////////
224// Overrides the right arrow image used throughout Moodle
225////////////////////////////////////////////////////
226
227
228// $THEME->layouts
229////////////////////////////////////////////////////
230// An array setting the layouts for the theme
231////////////////////////////////////////////////////
232
233
234// $THEME->parents_exclude_javascripts
235////////////////////////////////////////////////////
236// An array of JavaScript files NOT to inherit from
237// the themes parents
238////////////////////////////////////////////////////
239
240
241// $THEME->parents_exclude_sheets
242////////////////////////////////////////////////////
243// An array of stylesheets not to inherit from the
244// themes parents
245////////////////////////////////////////////////////
246
247
248// $THEME->plugins_exclude_sheets
249////////////////////////////////////////////////////
250// An array of plugin sheets to ignore and not
251// include.
252////////////////////////////////////////////////////
253
254
255// $THEME->rendererfactory
256////////////////////////////////////////////////////
257// Sets a custom render factory to use with the
258// theme, used when working with custom renderers.
b396e167 259////////////////////////////////////////////////////