MDL-36339 Modify themes to add course headers and footers provided by course format
[moodle.git] / theme / splash / config.php
blob3dea47d296aa67377406953a339cceb690d43596
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 * Config for the splash theme
20 * @package theme_splash
21 * @copyright 2010 Caroline Kennedy - Synergy Learning
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 $THEME->name = 'splash';
27 $THEME->parents = array(
28 'canvas',
29 'base',
32 $THEME->sheets = array(
33 'pagelayout',
34 'core',
35 'menus',
36 'orange',
37 'blue',
38 'green',
39 'red',
40 'settings',
43 $THEME->editor_sheets = array('editor');
45 $THEME->enable_dock = true;
47 $THEME->layouts = array(
48 // Most pages - if we encounter an unknown or a missing page type, this one is used.
49 'base' => array(
50 'file' => 'general.php',
51 'regions' => array()
53 'standard' => array(
54 'file' => 'general.php',
55 'regions' => array('side-pre', 'side-post'),
56 'defaultregion' => 'side-pre',
57 'options' => array('langmenu'=>true),
59 // Course page
60 'course' => array(
61 'file' => 'general.php',
62 'regions' => array('side-pre', 'side-post'),
63 'defaultregion' => 'side-pre',
64 'options' => array('langmenu'=>true),
66 // Course page
67 'coursecategory' => array(
68 'file' => 'general.php',
69 'regions' => array('side-pre', 'side-post'),
70 'defaultregion' => 'side-pre',
71 'options' => array('langmenu'=>true),
73 'incourse' => array(
74 'file' => 'general.php',
75 'regions' => array('side-pre', 'side-post'),
76 'defaultregion' => 'side-pre',
77 'options' => array('langmenu'=>true),
79 'frontpage' => array(
80 'file' => 'general.php',
81 'regions' => array('side-pre', 'side-post'),
82 'defaultregion' => 'side-pre',
83 'options' => array('langmenu'=>true),
85 'admin' => array(
86 'file' => 'general.php',
87 'regions' => array('side-pre'),
88 'defaultregion' => 'side-pre',
89 'options' => array('langmenu'=>true),
91 'mydashboard' => array(
92 'file' => 'general.php',
93 'regions' => array('side-pre', 'side-post'),
94 'defaultregion' => 'side-pre',
95 'options' => array('langmenu'=>true),
97 'mypublic' => array(
98 'file' => 'general.php',
99 'regions' => array('side-pre', 'side-post'),
100 'defaultregion' => 'side-pre',
101 'options' => array('langmenu'=>true),
103 'login' => array(
104 'file' => 'general.php',
105 'regions' => array(),
106 'options' => array('langmenu'=>true),
108 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
109 'popup' => array(
110 'file' => 'general.php',
111 'regions' => array(),
112 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
114 // No blocks and minimal footer - used for legacy frame layouts only!
115 'frametop' => array(
116 'file' => 'general.php',
117 'regions' => array(),
118 'options' => array('nofooter', 'noblocks'=>true, 'nocoursefooter'=>true),
120 // Embeded pages, like iframe embeded in moodleform
121 'embedded' => array(
122 'file' => 'embedded.php',
123 'regions' => array(),
124 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
126 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
127 // This must not have any blocks, and it is good idea if it does not have links to
128 // other places - for example there should not be a home link in the footer...
129 'maintenance' => array(
130 'file' => 'general.php',
131 'regions' => array(),
132 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
134 // Should display the content and basic headers only.
135 'print' => array(
136 'file' => 'general.php',
137 'regions' => array(),
138 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
140 // The pagelayout used when a redirection is occuring.
141 'redirect' => array(
142 'file' => 'embedded.php',
143 'regions' => array(),
144 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
146 'report' => array(
147 'file' => 'report.php',
148 'regions' => array('side-pre'),
149 'defaultregion' => 'side-pre',
150 'options' => array('langmenu'=>true),
154 $THEME->csspostprocess = 'splash_process_css';
156 $THEME->javascripts = array('colourswitcher');