theme MDL-23369 removed logged in notification from popups
[moodle.git] / theme / base / config.php
CommitLineData
78946b9b
PS
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
78946b9b 18/**
91266444 19 * Configuration for Moodle's base theme.
78946b9b 20 *
91266444
MD
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!
78946b9b 24 *
91266444
MD
25 * DO NOT COPY THIS TO START NEW THEMES!
26 * Start with another theme, like "standard".
78946b9b 27 *
91266444
MD
28 * For full information about creating Moodle themes, see:
29 * http://docs.moodle.org/en/Development:Themes_2.0
78946b9b
PS
30 *
31 * @package moodlecore
32 * @copyright 2009 Tim Hunt
33 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34 */
35
90723839 36$THEME->name = 'base';
78946b9b
PS
37
38$THEME->parents = array();
39
40$THEME->sheets = array(
90723839
SH
41 'pagelayout', /** Must come first: Page layout **/
42 'core', /** Must come second: General styles **/
43 'admin',
78946b9b 44 'blocks',
90723839 45 'calendar',
78946b9b 46 'course',
7e4617f7 47 'dock',
90723839
SH
48 'grade',
49 'message',
50 'question',
51 'user'
78946b9b
PS
52);
53
54$THEME->editor_sheets = array();
55
56$THEME->layouts = array(
191b267b
PS
57 // Most backwards compatible layout without the blocks - this is the layout used by default
58 'base' => array(
191b267b
PS
59 'file' => 'general.php',
60 'regions' => array(),
61 ),
62 // Standard layout with blocks, this is recommended for most pages with general information
63 'standard' => array(
78946b9b
PS
64 'file' => 'general.php',
65 'regions' => array('side-pre', 'side-post'),
191b267b 66 'defaultregion' => 'side-post',
78946b9b 67 ),
191b267b 68 // Main course page
78946b9b 69 'course' => array(
78946b9b
PS
70 'file' => 'general.php',
71 'regions' => array('side-pre', 'side-post'),
191b267b 72 'defaultregion' => 'side-post',
244a32c6 73 'options' => array('langmenu'=>true),
191b267b
PS
74 ),
75 'coursecategory' => array(
191b267b
PS
76 'file' => 'general.php',
77 'regions' => array('side-pre', 'side-post'),
78 'defaultregion' => 'side-post',
79 ),
80 // part of course, typical for modules - default page layout if $cm specified in require_login()
81 'incourse' => array(
191b267b
PS
82 'file' => 'general.php',
83 'regions' => array('side-pre', 'side-post'),
84 'defaultregion' => 'side-post',
78946b9b
PS
85 ),
86 // The site home page.
191b267b 87 'frontpage' => array(
191b267b 88 'file' => 'frontpage.php',
78946b9b 89 'regions' => array('side-pre', 'side-post'),
191b267b 90 'defaultregion' => 'side-post',
78946b9b
PS
91 ),
92 // Server administration scripts.
93 'admin' => array(
78946b9b
PS
94 'file' => 'general.php',
95 'regions' => array('side-pre'),
191b267b 96 'defaultregion' => 'side-pre',
78946b9b 97 ),
191b267b
PS
98 // My dashboard page
99 'mydashboard' => array(
78946b9b
PS
100 'file' => 'general.php',
101 'regions' => array('side-pre', 'side-post'),
191b267b 102 'defaultregion' => 'side-post',
244a32c6 103 'options' => array('langmenu'=>true),
78946b9b 104 ),
191b267b
PS
105 // My public page
106 'mypublic' => array(
191b267b
PS
107 'file' => 'general.php',
108 'regions' => array('side-pre', 'side-post'),
109 'defaultregion' => 'side-post',
110 ),
111 'login' => array(
78946b9b
PS
112 'file' => 'general.php',
113 'regions' => array(),
244a32c6 114 'options' => array('langmenu'=>true),
78946b9b 115 ),
191b267b 116
78946b9b
PS
117 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
118 'popup' => array(
78946b9b
PS
119 'file' => 'general.php',
120 'regions' => array(),
7941cb21 121 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true),
78946b9b
PS
122 ),
123 // No blocks and minimal footer - used for legacy frame layouts only!
124 'frametop' => array(
78946b9b
PS
125 'file' => 'general.php',
126 'regions' => array(),
00db2a35 127 'options' => array('nofooter'=>true),
78946b9b 128 ),
191b267b 129 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
78946b9b 130 'embedded' => array(
78946b9b
PS
131 'file' => 'embedded.php',
132 'regions' => array(),
d2dbd0c0 133 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
78946b9b
PS
134 ),
135 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
136 // This must not have any blocks, and it is good idea if it does not have links to
137 // other places - for example there should not be a home link in the footer...
138 'maintenance' => array(
78946b9b
PS
139 'file' => 'general.php',
140 'regions' => array(),
d2dbd0c0 141 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
78946b9b
PS
142 ),
143);
144
4d56ee95
SH
145// We don't want the base theme to be shown on the theme selection screen, by setting
146// this to true it will only be shown if theme designer mode is switched on.
147$THEME->hidefromselector = true;
148
358c13cb 149/** List of javascript files that need to included on each page */
9d897331 150$THEME->javascripts = array();
91266444 151$THEME->javascripts_footer = array();