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 standard theme.
21 * DO NOT COPY THIS INTO NEW THEMES! Instead use some other theme as a base
22 * for your experiments.
24 * Options related to theme customisations can be found at
25 * http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html
27 * For an overview of how Moodle themes work, Please see
28 * http://docs.moodle.org/en/Developement:How_Moodle_outputs_HTML
31 * @copyright 2009 Tim Hunt
32 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35 $THEME->name = 'base';
37 $THEME->parents = array();
39 $THEME->sheets = array(
40 'pagelayout', /** Must come first: Page layout **/
41 'core', /** Must come second: General styles **/
52 $THEME->editor_sheets = array();
54 $THEME->layouts = array(
55 // Most backwards compatible layout without the blocks - this is the layout used by default
57 'file' => 'general.php',
60 // Standard layout with blocks, this is recommended for most pages with general information
62 'file' => 'general.php',
63 'regions' => array('side-pre', 'side-post'),
64 'defaultregion' => 'side-post',
68 'file' => 'general.php',
69 'regions' => array('side-pre', 'side-post'),
70 'defaultregion' => 'side-post',
71 'options' => array('langmenu'=>true),
73 'coursecategory' => array(
74 'file' => 'general.php',
75 'regions' => array('side-pre', 'side-post'),
76 'defaultregion' => 'side-post',
78 // part of course, typical for modules - default page layout if $cm specified in require_login()
80 'file' => 'general.php',
81 'regions' => array('side-pre', 'side-post'),
82 'defaultregion' => 'side-post',
84 // The site home page.
86 'file' => 'frontpage.php',
87 'regions' => array('side-pre', 'side-post'),
88 'defaultregion' => 'side-post',
90 // Server administration scripts.
92 'file' => 'general.php',
93 'regions' => array('side-pre'),
94 'defaultregion' => 'side-pre',
97 'mydashboard' => array(
98 'file' => 'general.php',
99 'regions' => array('side-pre', 'side-post'),
100 'defaultregion' => 'side-post',
101 'options' => array('langmenu'=>true),
105 'file' => 'general.php',
106 'regions' => array('side-pre', 'side-post'),
107 'defaultregion' => 'side-post',
110 'file' => 'general.php',
111 'regions' => array(),
112 'options' => array('langmenu'=>true),
115 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
117 'file' => 'general.php',
118 'regions' => array(),
119 'options' => array('nofooter'=>true),
121 // No blocks and minimal footer - used for legacy frame layouts only!
123 'file' => 'general.php',
124 'regions' => array(),
125 'options' => array('nofooter'=>true),
127 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
129 'file' => 'embedded.php',
130 'regions' => array(),
131 'options' => array('nofooter'=>true, 'nonavbar'=>true),
133 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
134 // This must not have any blocks, and it is good idea if it does not have links to
135 // other places - for example there should not be a home link in the footer...
136 'maintenance' => array(
137 'file' => 'general.php',
138 'regions' => array(),
139 'options' => array('nofooter'=>true, 'nonavbar'=>true),
143 /** List of javascript files that need to included on each page */
144 $THEME->javascripts = array();
145 $THEME->javascripts_footer = array();