Commit | Line | Data |
---|---|---|
dc38e364 S |
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 | ||
18 | /** | |
dc38e364 | 19 | * |
ed5d13c0 PS |
20 | * |
21 | * DO NOT MODIFY THIS THEME! | |
dc38e364 S |
22 | * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. |
23 | * | |
24 | * For full information about creating Moodle themes, see: | |
728ebac7 | 25 | * http://docs.moodle.org/dev/Themes_2.0 |
dc38e364 S |
26 | * |
27 | * @package moodlecore | |
28 | */ | |
29 | ||
30 | $THEME->name = 'sky_high'; | |
31 | ||
32 | //////////////////////////////////////////////////// | |
33 | // Name of the theme. Most likely the name of | |
ed5d13c0 | 34 | // the directory in which this file resides. |
dc38e364 S |
35 | //////////////////////////////////////////////////// |
36 | ||
37 | ||
38 | $THEME->parents = array( | |
367a75fa SH |
39 | 'canvas', |
40 | 'base', | |
dc38e364 S |
41 | ); |
42 | ||
43 | ///////////////////////////////////////////////////// | |
44 | // Which existing theme(s) in the /theme/ directory | |
ed5d13c0 PS |
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 | |
dc38e364 S |
50 | // changes you want to your theme. |
51 | //////////////////////////////////////////////////// | |
52 | ||
53 | ||
54 | $THEME->sheets = array( | |
367a75fa SH |
55 | 'core', |
56 | 'pagelayout', | |
e580c659 ME |
57 | 'menu', |
58 | 'report' | |
dc38e364 S |
59 | ); |
60 | ||
61 | //////////////////////////////////////////////////// | |
ed5d13c0 | 62 | // Name of the stylesheet(s) you've including in |
dc38e364 S |
63 | // this theme's /styles/ directory. |
64 | //////////////////////////////////////////////////// | |
65 | ||
66 | $THEME->parents_exclude_sheets = array( | |
367a75fa SH |
67 | 'base'=>array( |
68 | 'pagelayout', | |
69 | ), | |
70 | 'canvas'=>array( | |
71 | 'pagelayout', | |
72 | ), | |
dc38e364 S |
73 | ); |
74 | ||
75 | ||
76 | $THEME->enable_dock = true; | |
77 | ||
78 | //////////////////////////////////////////////////// | |
79 | // Do you want to use the new navigation dock? | |
80 | //////////////////////////////////////////////////// | |
81 | ||
82 | ||
6c0fb99b | 83 | $THEME->editor_sheets = array('editor'); |
dc38e364 S |
84 | |
85 | //////////////////////////////////////////////////// | |
ed5d13c0 | 86 | // An array of stylesheets to include within the |
dc38e364 S |
87 | // body of the editor. |
88 | //////////////////////////////////////////////////// | |
89 | ||
90 | $THEME->layouts = array( | |
91 | 'base' => array( | |
92 | 'file' => 'general.php', | |
93 | 'regions' => array('side-pre', 'side-post'), | |
94 | 'defaultregion' => 'side-post', | |
95 | ), | |
96 | 'standard' => array( | |
97 | 'file' => 'general.php', | |
98 | 'regions' => array('side-pre', 'side-post'), | |
99 | 'defaultregion' => 'side-post', | |
100 | ), | |
101 | 'course' => array( | |
102 | 'file' => 'general.php', | |
103 | 'regions' => array('side-pre', 'side-post'), | |
104 | 'defaultregion' => 'side-post' | |
105 | ), | |
106 | 'coursecategory' => array( | |
107 | 'file' => 'general.php', | |
108 | 'regions' => array('side-pre', 'side-post'), | |
109 | 'defaultregion' => 'side-post', | |
110 | ), | |
111 | 'incourse' => array( | |
112 | 'file' => 'general.php', | |
113 | 'regions' => array('side-pre', 'side-post'), | |
114 | 'defaultregion' => 'side-post', | |
115 | ), | |
116 | 'frontpage' => array( | |
117 | 'file' => 'frontpage.php', | |
118 | 'regions' => array('side-pre', 'side-post'), | |
119 | 'defaultregion' => 'side-post', | |
120 | ), | |
121 | 'admin' => array( | |
122 | 'file' => 'general.php', | |
123 | 'regions' => array('side-pre'), | |
124 | 'defaultregion' => 'side-pre', | |
125 | ), | |
126 | 'mydashboard' => array( | |
127 | 'file' => 'general.php', | |
128 | 'regions' => array('side-pre', 'side-post'), | |
129 | 'defaultregion' => 'side-post', | |
130 | 'options' => array('langmenu'=>true), | |
131 | ), | |
132 | 'mypublic' => array( | |
133 | 'file' => 'general.php', | |
134 | 'regions' => array('side-pre', 'side-post'), | |
135 | 'defaultregion' => 'side-post', | |
136 | ), | |
137 | 'login' => array( | |
138 | 'file' => 'general.php', | |
139 | 'regions' => array(), | |
140 | 'options' => array('langmenu'=>true), | |
141 | ), | |
142 | 'popup' => array( | |
143 | 'file' => 'general.php', | |
144 | 'regions' => array(), | |
145 | 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true), | |
146 | ), | |
147 | 'frametop' => array( | |
148 | 'file' => 'general.php', | |
149 | 'regions' => array(), | |
150 | 'options' => array('nofooter'=>true), | |
151 | ), | |
152 | 'maintenance' => array( | |
153 | 'file' => 'general.php', | |
154 | 'regions' => array(), | |
155 | 'options' => array('nofooter'=>true, 'nonavbar'=>true), | |
156 | ), | |
157 | 'embedded' => array( | |
367a75fa | 158 | 'theme' => 'canvas', |
dc38e364 S |
159 | 'file' => 'embedded.php', |
160 | 'regions' => array(), | |
161 | 'options' => array('nofooter'=>true, 'nonavbar'=>true), | |
162 | ), | |
ed5d13c0 PS |
163 | // Should display the content and basic headers only. |
164 | 'print' => array( | |
165 | 'file' => 'general.php', | |
166 | 'regions' => array(), | |
167 | 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true), | |
168 | ), | |
367a75fa | 169 | 'report' => array( |
e580c659 ME |
170 | 'theme' => 'base', |
171 | 'file' => 'report.php', | |
367a75fa SH |
172 | 'regions' => array('side-pre'), |
173 | 'defaultregion' => 'side-pre', | |
174 | ) | |
dc38e364 S |
175 | ); |
176 | ||
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 | /////////////////////////////////////////////////////////////// | |
185 | ||
186 | $THEME->csspostprocess = 'sky_high_process_css'; | |
ed5d13c0 | 187 | |
dc38e364 | 188 | //////////////////////////////////////////////////// |
ed5d13c0 PS |
189 | // Allows the user to provide the name of a function |
190 | // that all CSS should be passed to before being | |
dc38e364 S |
191 | // delivered. |
192 | //////////////////////////////////////////////////// | |
193 | ||
ed5d13c0 | 194 | // $THEME->javascripts |
dc38e364 S |
195 | |
196 | //////////////////////////////////////////////////// | |
197 | // An array containing the names of JavaScript files | |
ed5d13c0 | 198 | // located in /javascript/ to include in the theme. |
dc38e364 S |
199 | // (gets included in the head) |
200 | //////////////////////////////////////////////////// | |
201 | ||
ed5d13c0 | 202 | // $THEME->javascripts_footer |
dc38e364 S |
203 | |
204 | //////////////////////////////////////////////////// | |
205 | // As above but will be included in the page footer. | |
206 | //////////////////////////////////////////////////// | |
207 | ||
ed5d13c0 | 208 | // $THEME->larrow |
dc38e364 S |
209 | |
210 | //////////////////////////////////////////////////// | |
ed5d13c0 | 211 | // Overrides the left arrow image used throughout |
dc38e364 S |
212 | // Moodle |
213 | //////////////////////////////////////////////////// | |
214 | ||
ed5d13c0 | 215 | // $THEME->rarrow |
dc38e364 S |
216 | |
217 | //////////////////////////////////////////////////// | |
218 | // Overrides the right arrow image used throughout Moodle | |
219 | //////////////////////////////////////////////////// | |
220 | ||
ed5d13c0 | 221 | // $THEME->layouts |
dc38e364 S |
222 | |
223 | //////////////////////////////////////////////////// | |
224 | // An array setting the layouts for the theme | |
225 | //////////////////////////////////////////////////// | |
226 | ||
227 | // $THEME->parents_exclude_javascripts | |
228 | ||
229 | //////////////////////////////////////////////////// | |
230 | // An array of JavaScript files NOT to inherit from | |
231 | // the themes parents | |
232 | //////////////////////////////////////////////////// | |
233 | ||
ed5d13c0 | 234 | // $THEME->parents_exclude_sheets |
dc38e364 S |
235 | |
236 | //////////////////////////////////////////////////// | |
237 | // An array of stylesheets not to inherit from the | |
238 | // themes parents | |
239 | //////////////////////////////////////////////////// | |
240 | ||
241 | // $THEME->plugins_exclude_sheets | |
242 | ||
243 | //////////////////////////////////////////////////// | |
ed5d13c0 | 244 | // An array of plugin sheets to ignore and not |
dc38e364 S |
245 | // include. |
246 | //////////////////////////////////////////////////// | |
247 | ||
92372aba | 248 | // $THEME->rendererfactory |
dc38e364 S |
249 | |
250 | //////////////////////////////////////////////////// | |
ed5d13c0 | 251 | // Sets a custom render factory to use with the |
dc38e364 S |
252 | // theme, used when working with custom renderers. |
253 | //////////////////////////////////////////////////// | |
254 |