3 // This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
19 * Configuration for Moodle's base theme.
21 * This theme is special, and implements a minimalist theme with only
22 * basic layout. It is intended as a base for other themes to build upon.
23 * It is not recommend to actually choose this theme for production sites!
25 * DO NOT COPY THIS TO START NEW THEMES!
26 * Start with another theme, like "standard".
28 * For full information about creating Moodle themes, see:
29 * http://docs.moodle.org/dev/Themes_2.0
32 * @copyright 2009 Tim Hunt
33 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36 $THEME->name = 'base';
38 $THEME->parents = array();
40 $THEME->sheets = array(
41 'pagelayout', /** Must come first: Page layout **/
42 'core', /** Must come second: General styles **/
55 $THEME->editor_sheets = array('editor');
57 $THEME->layouts = array(
58 // Most backwards compatible layout without the blocks - this is the layout used by default
60 'file' => 'general.php',
63 // Standard layout with blocks, this is recommended for most pages with general information
65 'file' => 'general.php',
66 'regions' => array('side-pre', 'side-post'),
67 'defaultregion' => 'side-pre',
71 'file' => 'general.php',
72 'regions' => array('side-pre', 'side-post'),
73 'defaultregion' => 'side-pre',
74 'options' => array('langmenu'=>true),
76 'coursecategory' => array(
77 'file' => 'general.php',
78 'regions' => array('side-pre', 'side-post'),
79 'defaultregion' => 'side-pre',
81 // part of course, typical for modules - default page layout if $cm specified in require_login()
83 'file' => 'general.php',
84 'regions' => array('side-pre', 'side-post'),
85 'defaultregion' => 'side-pre',
87 // The site home page.
89 'file' => 'frontpage.php',
90 'regions' => array('side-pre', 'side-post'),
91 'defaultregion' => 'side-pre',
93 // Server administration scripts.
95 'file' => 'general.php',
96 'regions' => array('side-pre'),
97 'defaultregion' => 'side-pre',
100 'mydashboard' => array(
101 'file' => 'general.php',
102 'regions' => array('side-pre', 'side-post'),
103 'defaultregion' => 'side-pre',
104 'options' => array('langmenu'=>true),
108 'file' => 'general.php',
109 'regions' => array('side-pre', 'side-post'),
110 'defaultregion' => 'side-pre',
113 'file' => 'general.php',
114 'regions' => array(),
115 'options' => array('langmenu'=>true),
118 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
120 'file' => 'general.php',
121 'regions' => array(),
122 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true),
124 // No blocks and minimal footer - used for legacy frame layouts only!
126 'file' => 'general.php',
127 'regions' => array(),
128 'options' => array('nofooter'=>true),
130 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
132 'file' => 'embedded.php',
133 'regions' => array(),
134 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
136 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
137 // This must not have any blocks, and it is good idea if it does not have links to
138 // other places - for example there should not be a home link in the footer...
139 'maintenance' => array(
140 'file' => 'general.php',
141 'regions' => array(),
142 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
144 // Should display the content and basic headers only.
146 'file' => 'general.php',
147 'regions' => array(),
148 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
150 // The pagelayout used when a redirection is occuring.
152 'file' => 'embedded.php',
153 'regions' => array(),
154 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
156 // The pagelayout used for reports.
158 'file' => 'report.php',
159 'regions' => array('side-pre'),
160 'defaultregion' => 'side-pre',
162 // The pagelayout used for safebrowser and securewindow.
164 'file' => 'general.php',
165 'regions' => array(),
166 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true),
170 // We don't want the base theme to be shown on the theme selection screen, by setting
171 // this to true it will only be shown if theme designer mode is switched on.
172 $THEME->hidefromselector = true;
174 /** List of javascript files that need to included on each page */
175 $THEME->javascripts = array();
176 $THEME->javascripts_footer = array();