2 // This file is part of Moodle - http://moodle.org/
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.
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/>.
18 * Configuration for Moodle's legacy standard theme.
20 * Use standard theme or new bootstrapbase instead!!!
22 * @package theme_standardold
23 * @copyright 2009 Tim Hunt
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28 $THEME->parents
= array('standard', 'base');
30 // TODO: All old styles are now moved into this standard theme because
31 // we need to go through all these and fix them.
32 // This means we will gradually put these back into plugins
34 $THEME->sheets
= array('pagelayout');
36 $THEME->parents_exclude_sheets
= array('base'=>array('pagelayout'));
38 $THEME->layouts
= array(
39 // Most backwards compatible layout without the blocks - this is the layout used by default
41 'file' => 'general.php',
44 // Standard layout with blocks, this is recommended for most pages with general information
46 'file' => 'general.php',
47 'regions' => array('side-pre', 'side-post'),
48 'defaultregion' => 'side-pre',
52 'file' => 'general.php',
53 'regions' => array('side-pre', 'side-post'),
54 'defaultregion' => 'side-pre',
55 'options' => array('langmenu'=>true),
57 'coursecategory' => array(
58 'file' => 'general.php',
59 'regions' => array('side-pre', 'side-post'),
60 'defaultregion' => 'side-pre',
62 // part of course, typical for modules - default page layout if $cm specified in require_login()
64 'file' => 'general.php',
65 'regions' => array('side-pre', 'side-post'),
66 'defaultregion' => 'side-pre',
68 // The site home page.
70 'file' => 'frontpage.php',
71 'regions' => array('side-pre', 'side-post'),
72 'defaultregion' => 'side-pre',
74 // Server administration scripts.
76 'file' => 'general.php',
77 'regions' => array('side-pre'),
78 'defaultregion' => 'side-pre',
81 'mydashboard' => array(
82 'file' => 'general.php',
83 'regions' => array('side-pre', 'side-post'),
84 'defaultregion' => 'side-pre',
85 'options' => array('langmenu'=>true),
89 'file' => 'general.php',
90 'regions' => array('side-pre', 'side-post'),
91 'defaultregion' => 'side-pre',
94 'file' => 'general.php',
96 'options' => array('langmenu'=>true),
99 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
101 'file' => 'general.php',
102 'regions' => array(),
103 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
105 // No blocks and minimal footer - used for legacy frame layouts only!
107 'file' => 'general.php',
108 'regions' => array(),
109 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
111 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
113 'file' => 'embedded.php',
114 'regions' => array(),
115 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
117 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
118 // This must not have any blocks, and it is good idea if it does not have links to
119 // other places - for example there should not be a home link in the footer...
120 'maintenance' => array(
121 'file' => 'general.php',
122 'regions' => array(),
123 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
125 // Should display the content and basic headers only.
127 'file' => 'general.php',
128 'regions' => array(),
129 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
134 * This enables the dock on the side of the page as this theme supports it.
136 $THEME->enable_dock
= false;