Merge branch 'MDL-41891_master' of https://github.com/nadavkav/moodle
[moodle.git] / theme / canvas / config.php
CommitLineData
b50ffc21 1<?php
374c0cca
PM
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/>.
16
17/**
18 * Configuration for Moodle's Canvas theme.
19 *
20 * This theme is special, and implements a minimalist theme with basic styles.
21 * It is intended to be used with Base as a starting point for other themes to build upon.
22 * It is not recommend to actually choose this theme for production sites!
23 *
ed5d13c0 24 * DO NOT COPY THIS TO START NEW THEMES!
374c0cca
PM
25 * Start with another theme, like "standard".
26 *
27 * For full information about creating Moodle themes, see:
728ebac7 28 * http://docs.moodle.org/dev/Themes_2.0
374c0cca 29 *
574909ef 30 * @package theme_canvas
374c0cca
PM
31 * @copyright 2010 Patrick Malley
32 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33 */
34
b50ffc21
PM
35$THEME->name = 'canvas';
36
37////////////////////////////////////////////////////
38// Name of the theme. Most likely the name of
ed5d13c0 39// the directory in which this file resides.
b50ffc21
PM
40////////////////////////////////////////////////////
41
4543168e 42$THEME->parents = array('base');
b50ffc21
PM
43
44/////////////////////////////////////////////////////
45// Which existing theme(s) in the /theme/ directory
ed5d13c0
PS
46// do you want this theme to extend. A theme can
47// extend any number of themes. Rather than
48// creating an entirely new theme and copying all
49// of the CSS, you can simply create a new theme,
50// extend the theme you like and just add the
b50ffc21
PM
51// changes you want to your theme.
52////////////////////////////////////////////////////
53
bc9ceb41 54$THEME->sheets = array(
367a75fa
SH
55 'pagelayout',
56 'text',
57 'core',
58 'course',
59 'mods',
60 'blocks',
61 'tabs',
62 'admin',
63 'tables',
64 'popups',
0bfe8218 65 'question',
bc9ceb41 66);
b50ffc21
PM
67
68////////////////////////////////////////////////////
ed5d13c0 69// Name of the stylesheet(s) you've including in
a0f76cb2 70// this theme's /styles/ directory.
b50ffc21
PM
71////////////////////////////////////////////////////
72
4543168e 73$THEME->parents_exclude_sheets = array();
b50ffc21
PM
74
75////////////////////////////////////////////////////
a0f76cb2
PM
76// An array of stylesheets not to inherit from the
77// themes parents
b50ffc21
PM
78////////////////////////////////////////////////////
79
80$THEME->layouts = array(
81 'base' => array(
b50ffc21
PM
82 'file' => 'general.php',
83 'regions' => array('side-pre', 'side-post'),
96e0e914 84 'defaultregion' => 'side-pre',
b50ffc21 85 ),
40a2b934 86 'standard' => array(
b50ffc21
PM
87 'file' => 'general.php',
88 'regions' => array('side-pre', 'side-post'),
96e0e914 89 'defaultregion' => 'side-pre',
b50ffc21
PM
90 ),
91 'course' => array(
b50ffc21
PM
92 'file' => 'general.php',
93 'regions' => array('side-pre', 'side-post'),
96e0e914 94 'defaultregion' => 'side-pre'
b50ffc21
PM
95 ),
96 'coursecategory' => array(
b50ffc21
PM
97 'file' => 'general.php',
98 'regions' => array('side-pre', 'side-post'),
96e0e914 99 'defaultregion' => 'side-pre',
b50ffc21
PM
100 ),
101 'incourse' => array(
b50ffc21
PM
102 'file' => 'general.php',
103 'regions' => array('side-pre', 'side-post'),
96e0e914 104 'defaultregion' => 'side-pre',
b50ffc21
PM
105 ),
106 'frontpage' => array(
b50ffc21
PM
107 'file' => 'frontpage.php',
108 'regions' => array('side-pre', 'side-post'),
96e0e914 109 'defaultregion' => 'side-pre',
b50ffc21
PM
110 ),
111 'admin' => array(
b50ffc21
PM
112 'file' => 'general.php',
113 'regions' => array('side-pre'),
114 'defaultregion' => 'side-pre',
115 ),
116 'mydashboard' => array(
b50ffc21
PM
117 'file' => 'general.php',
118 'regions' => array('side-pre', 'side-post'),
96e0e914 119 'defaultregion' => 'side-pre',
b50ffc21
PM
120 'options' => array('langmenu'=>true),
121 ),
122 'mypublic' => array(
b50ffc21
PM
123 'file' => 'general.php',
124 'regions' => array('side-pre', 'side-post'),
96e0e914 125 'defaultregion' => 'side-pre',
b50ffc21
PM
126 ),
127 'login' => array(
b50ffc21
PM
128 'file' => 'general.php',
129 'regions' => array(),
130 'options' => array('langmenu'=>true),
131 ),
132 'popup' => array(
b50ffc21
PM
133 'file' => 'general.php',
134 'regions' => array(),
fdd4b9a5 135 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
b50ffc21
PM
136 ),
137 'frametop' => array(
b50ffc21
PM
138 'file' => 'general.php',
139 'regions' => array(),
fdd4b9a5 140 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
b50ffc21
PM
141 ),
142 'maintenance' => array(
b50ffc21
PM
143 'file' => 'general.php',
144 'regions' => array(),
fdd4b9a5 145 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
b50ffc21
PM
146 ),
147 'embedded' => array(
b50ffc21
PM
148 'file' => 'embedded.php',
149 'regions' => array(),
fdd4b9a5 150 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
b50ffc21 151 ),
ed5d13c0
PS
152 // Should display the content and basic headers only.
153 'print' => array(
154 'file' => 'general.php',
155 'regions' => array(),
fdd4b9a5 156 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
ed5d13c0 157 ),
96321cf4
SH
158 // The pagelayout used when a redirection is occuring.
159 'redirect' => array(
160 'file' => 'embedded.php',
161 'regions' => array(),
fdd4b9a5 162 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
96321cf4 163 ),
367a75fa
SH
164 'report' => array(
165 'file' => 'report.php',
166 'regions' => array('side-pre'),
167 'defaultregion' => 'side-pre',
b5cd5f83
MV
168 ),
169 // The pagelayout used for safebrowser and securewindow.
170 'secure' => array(
171 'file' => 'general.php',
172 'regions' => array('side-pre', 'side-post'),
173 'defaultregion' => 'side-pre',
fdd4b9a5 174 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true, 'nocourseheaderfooter'=>true),
b5cd5f83 175 ),
b50ffc21
PM
176);
177
e1edeb40 178/////////////////////////////////////////////////////////
b50ffc21
PM
179// These are all of the possible layouts in Moodle. The
180// simplest way to do this is to keep the theme and file
181// variables the same for every layout. Including them
182// all in this way allows some flexibility down the road
183// if you want to add a different layout template to a
184// specific page.
e1edeb40
PM
185/////////////////////////////////////////////////////////
186
187$THEME->hidefromselector = true;
188
189/////////////////////////////////////////////////////
ed5d13c0
PS
190// We don't want the base theme to be shown on the
191// theme selection screen, by setting this to true
192// it will only be shown if theme designer mode is
e1edeb40
PM
193// switched on.
194/////////////////////////////////////////////////////
195
6f7cb98f 196$THEME->enable_dock = true;
b50ffc21
PM
197
198////////////////////////////////////////////////////
199// Do you want to use the new navigation dock?
200////////////////////////////////////////////////////
201
6f7cb98f 202$THEME->editor_sheets = array('editor');
b50ffc21
PM
203
204////////////////////////////////////////////////////
ed5d13c0 205// An array of stylesheets to include within the
b50ffc21
PM
206// body of the editor.
207////////////////////////////////////////////////////
208
209// $THEME->csspostprocess
ed5d13c0 210
b50ffc21 211////////////////////////////////////////////////////
ed5d13c0
PS
212// Allows the user to provide the name of a function
213// that all CSS should be passed to before being
b50ffc21
PM
214// delivered.
215////////////////////////////////////////////////////
216
ed5d13c0 217// $THEME->javascripts
b50ffc21
PM
218
219////////////////////////////////////////////////////
220// An array containing the names of JavaScript files
ed5d13c0 221// located in /javascript/ to include in the theme.
b50ffc21
PM
222// (gets included in the head)
223////////////////////////////////////////////////////
224
ed5d13c0 225// $THEME->javascripts_footer
b50ffc21
PM
226
227////////////////////////////////////////////////////
228// As above but will be included in the page footer.
229////////////////////////////////////////////////////
230
ed5d13c0 231// $THEME->larrow
b50ffc21
PM
232
233////////////////////////////////////////////////////
ed5d13c0 234// Overrides the left arrow image used throughout
b50ffc21
PM
235// Moodle
236////////////////////////////////////////////////////
237
ed5d13c0 238// $THEME->rarrow
b50ffc21
PM
239
240////////////////////////////////////////////////////
241// Overrides the right arrow image used throughout Moodle
242////////////////////////////////////////////////////
243
244// $THEME->parents_exclude_javascripts
245
246////////////////////////////////////////////////////
247// An array of JavaScript files NOT to inherit from
248// the themes parents
249////////////////////////////////////////////////////
250
251// $THEME->plugins_exclude_sheets
252
253////////////////////////////////////////////////////
ed5d13c0 254// An array of plugin sheets to ignore and not
b50ffc21
PM
255// include.
256////////////////////////////////////////////////////
257
92372aba 258// $THEME->rendererfactory
b50ffc21
PM
259
260////////////////////////////////////////////////////
ed5d13c0 261// Sets a custom render factory to use with the
b50ffc21 262// theme, used when working with custom renderers.
4543168e 263////////////////////////////////////////////////////