MDL-56439 course: added missing require
[moodle.git] / theme / canvas / config.php
blob7b188650b2422d37ac4716ff0f39dfe105176d81
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.
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 Canvas theme.
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!
24 * DO NOT COPY THIS TO START NEW THEMES!
25 * Start with another theme, like "standard".
27 * For full information about creating Moodle themes, see:
28 * http://docs.moodle.org/dev/Themes_2.0
30 * @package theme_canvas
31 * @copyright 2010 Patrick Malley
32 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35 $THEME->name = 'canvas';
37 ////////////////////////////////////////////////////
38 // Name of the theme. Most likely the name of
39 // the directory in which this file resides.
40 ////////////////////////////////////////////////////
42 $THEME->parents = array('base');
44 /////////////////////////////////////////////////////
45 // Which existing theme(s) in the /theme/ directory
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
51 // changes you want to your theme.
52 ////////////////////////////////////////////////////
54 $THEME->sheets = array(
55 'pagelayout',
56 'text',
57 'core',
58 'course',
59 'mods',
60 'blocks',
61 'tabs',
62 'admin',
63 'tables',
64 'popups',
67 ////////////////////////////////////////////////////
68 // Name of the stylesheet(s) you've including in
69 // this theme's /styles/ directory.
70 ////////////////////////////////////////////////////
72 $THEME->parents_exclude_sheets = array();
74 ////////////////////////////////////////////////////
75 // An array of stylesheets not to inherit from the
76 // themes parents
77 ////////////////////////////////////////////////////
79 $THEME->layouts = array(
80 'base' => array(
81 'file' => 'general.php',
82 'regions' => array('side-pre', 'side-post'),
83 'defaultregion' => 'side-pre',
85 'standard' => array(
86 'file' => 'general.php',
87 'regions' => array('side-pre', 'side-post'),
88 'defaultregion' => 'side-pre',
90 'course' => array(
91 'file' => 'general.php',
92 'regions' => array('side-pre', 'side-post'),
93 'defaultregion' => 'side-pre'
95 'coursecategory' => array(
96 'file' => 'general.php',
97 'regions' => array('side-pre', 'side-post'),
98 'defaultregion' => 'side-pre',
100 'incourse' => array(
101 'file' => 'general.php',
102 'regions' => array('side-pre', 'side-post'),
103 'defaultregion' => 'side-pre',
105 'frontpage' => array(
106 'file' => 'frontpage.php',
107 'regions' => array('side-pre', 'side-post'),
108 'defaultregion' => 'side-pre',
110 'admin' => array(
111 'file' => 'general.php',
112 'regions' => array('side-pre'),
113 'defaultregion' => 'side-pre',
115 'mydashboard' => array(
116 'file' => 'general.php',
117 'regions' => array('side-pre', 'side-post'),
118 'defaultregion' => 'side-pre',
119 'options' => array('langmenu'=>true),
121 'mypublic' => array(
122 'file' => 'general.php',
123 'regions' => array('side-pre', 'side-post'),
124 'defaultregion' => 'side-pre',
126 'login' => array(
127 'file' => 'general.php',
128 'regions' => array(),
129 'options' => array('langmenu'=>true),
131 'popup' => array(
132 'file' => 'general.php',
133 'regions' => array(),
134 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
136 'frametop' => array(
137 'file' => 'general.php',
138 'regions' => array(),
139 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
141 'maintenance' => array(
142 'file' => 'general.php',
143 'regions' => array(),
144 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
146 'embedded' => array(
147 'file' => 'embedded.php',
148 'regions' => array(),
149 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
151 // Should display the content and basic headers only.
152 'print' => array(
153 'file' => 'general.php',
154 'regions' => array(),
155 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
157 // The pagelayout used when a redirection is occuring.
158 'redirect' => array(
159 'file' => 'embedded.php',
160 'regions' => array(),
161 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
163 'report' => array(
164 'file' => 'report.php',
165 'regions' => array('side-pre'),
166 'defaultregion' => 'side-pre',
168 // The pagelayout used for safebrowser and securewindow.
169 'secure' => array(
170 'file' => 'general.php',
171 'regions' => array('side-pre', 'side-post'),
172 'defaultregion' => 'side-pre',
173 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true, 'nocourseheaderfooter'=>true),
177 /////////////////////////////////////////////////////////
178 // These are all of the possible layouts in Moodle. The
179 // simplest way to do this is to keep the theme and file
180 // variables the same for every layout. Including them
181 // all in this way allows some flexibility down the road
182 // if you want to add a different layout template to a
183 // specific page.
184 /////////////////////////////////////////////////////////
186 $THEME->hidefromselector = true;
188 /////////////////////////////////////////////////////
189 // We don't want the base theme to be shown on the
190 // theme selection screen, by setting this to true
191 // it will only be shown if theme designer mode is
192 // switched on.
193 /////////////////////////////////////////////////////
195 $THEME->enable_dock = true;
197 ////////////////////////////////////////////////////
198 // Do you want to use the new navigation dock?
199 ////////////////////////////////////////////////////
201 $THEME->editor_sheets = array('editor');
203 ////////////////////////////////////////////////////
204 // An array of stylesheets to include within the
205 // body of the editor.
206 ////////////////////////////////////////////////////
208 // $THEME->csspostprocess
210 ////////////////////////////////////////////////////
211 // Allows the user to provide the name of a function
212 // that all CSS should be passed to before being
213 // delivered.
214 ////////////////////////////////////////////////////
216 // $THEME->javascripts
218 ////////////////////////////////////////////////////
219 // An array containing the names of JavaScript files
220 // located in /javascript/ to include in the theme.
221 // (gets included in the head)
222 ////////////////////////////////////////////////////
224 // $THEME->javascripts_footer
226 ////////////////////////////////////////////////////
227 // As above but will be included in the page footer.
228 ////////////////////////////////////////////////////
230 // $THEME->larrow
232 ////////////////////////////////////////////////////
233 // Overrides the left arrow image used throughout
234 // Moodle
235 ////////////////////////////////////////////////////
237 // $THEME->rarrow
239 ////////////////////////////////////////////////////
240 // Overrides the right arrow image used throughout Moodle
241 ////////////////////////////////////////////////////
243 // $THEME->parents_exclude_javascripts
245 ////////////////////////////////////////////////////
246 // An array of JavaScript files NOT to inherit from
247 // the themes parents
248 ////////////////////////////////////////////////////
250 // $THEME->plugins_exclude_sheets
252 ////////////////////////////////////////////////////
253 // An array of plugin sheets to ignore and not
254 // include.
255 ////////////////////////////////////////////////////
257 // $THEME->rendererfactory
259 ////////////////////////////////////////////////////
260 // Sets a custom render factory to use with the
261 // theme, used when working with custom renderers.
262 ////////////////////////////////////////////////////