MDL-40455: theme_formfactor: Move slash comments to be before code (not after) add...
[moodle.git] / theme / formfactor / config.php
CommitLineData
1c601a53 1<?php
9c476042
PM
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.
13//
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/>.
16
17/**
18 * Configuration for Moodle's formfactor theme.
19 *
ed5d13c0 20 * DO NOT MODIFY THIS THEME!
9c476042
PM
21 * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
22 *
23 * For full information about creating Moodle themes, see:
728ebac7 24 * http://docs.moodle.org/dev/Themes_2.0
9c476042 25 *
574909ef 26 * @package theme_formfactor
9c476042
PM
27 * @copyright 2010 Patrick Malley
28 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29 */
30
5cb2f1ad
ME
31// Name of the theme, and most likely the name
32// of the directory in which this file resides.
1c601a53 33
5cb2f1ad 34$THEME->name = 'formfactor';
1c601a53 35
1c601a53 36// Which existing theme(s) in the /theme/ directory
5cb2f1ad
ME
37// do you want this theme to extend?
38// A theme can extend any number of themes. So rather
39// than creating an entirely new theme and copying all
ed5d13c0 40// of the CSS, you can simply create a new theme,
5cb2f1ad 41// by extending the theme you like and just add the
1c601a53 42// changes you want to your theme.
1c601a53 43
5cb2f1ad
ME
44$THEME->parents = array('canvas','base');
45
46// Name of the stylesheet(s) you've including in
47// this theme's /styles/ directory.
1c601a53 48
564ef3ee
ME
49$THEME->sheets = array(
50 'selected',
51 'core',
52 'course',
53 'mods',
54 'blocks'
55);
1c601a53 56
5cb2f1ad 57// Do you want to use the new navigation dock?
1c601a53 58
1c601a53
PM
59$THEME->enable_dock = false;
60
5cb2f1ad
ME
61// An array of stylesheets to include within the
62// body of the editor.
1c601a53 63
564ef3ee 64$THEME->editor_sheets = array('editor');
1c601a53 65
5cb2f1ad
ME
66// These are all of the possible layouts in Moodle. The
67// simplest way to do this is to keep the theme and file
68// variables the same for every layout. Including them
69// all in this way allows some flexibility down the road
70// if you want to add a different layout template to a
71// specific page.
1c601a53 72
011ed9fd 73$THEME->layouts = array(
5cb2f1ad 74 // Most backwards compatible layout without the blocks - this is the layout used by default
011ed9fd 75 'base' => array(
011ed9fd 76 'file' => 'general.php',
5cb2f1ad 77 'regions' => array(),
011ed9fd 78 ),
5cb2f1ad 79 // Standard layout with blocks, this is recommended for most pages with general information
40a2b934 80 'standard' => array(
011ed9fd
PM
81 'file' => 'general.php',
82 'regions' => array('side-pre', 'side-post'),
96e0e914 83 'defaultregion' => 'side-pre',
011ed9fd 84 ),
5cb2f1ad 85 // Main course page
011ed9fd 86 'course' => array(
011ed9fd
PM
87 'file' => 'general.php',
88 'regions' => array('side-pre', 'side-post'),
5cb2f1ad
ME
89 'defaultregion' => 'side-pre',
90 'options' => array('langmenu'=>true),
011ed9fd
PM
91 ),
92 'coursecategory' => array(
011ed9fd
PM
93 'file' => 'general.php',
94 'regions' => array('side-pre', 'side-post'),
96e0e914 95 'defaultregion' => 'side-pre',
011ed9fd 96 ),
5cb2f1ad 97 // part of course, typical for modules - default page layout if $cm specified in require_login()
011ed9fd 98 'incourse' => array(
011ed9fd
PM
99 'file' => 'general.php',
100 'regions' => array('side-pre', 'side-post'),
96e0e914 101 'defaultregion' => 'side-pre',
011ed9fd 102 ),
5cb2f1ad 103 // The site home page.
011ed9fd 104 'frontpage' => array(
011ed9fd
PM
105 'file' => 'frontpage.php',
106 'regions' => array('side-pre', 'side-post'),
96e0e914 107 'defaultregion' => 'side-pre',
011ed9fd 108 ),
5cb2f1ad 109 // Server administration scripts.
011ed9fd 110 'admin' => array(
011ed9fd
PM
111 'file' => 'general.php',
112 'regions' => array('side-pre'),
113 'defaultregion' => 'side-pre',
114 ),
5cb2f1ad 115 // My dashboard page
011ed9fd 116 'mydashboard' => array(
011ed9fd
PM
117 'file' => 'general.php',
118 'regions' => array('side-pre', 'side-post'),
96e0e914 119 'defaultregion' => 'side-pre',
011ed9fd
PM
120 'options' => array('langmenu'=>true),
121 ),
5cb2f1ad 122 // My public page
011ed9fd 123 'mypublic' => array(
011ed9fd
PM
124 'file' => 'general.php',
125 'regions' => array('side-pre', 'side-post'),
96e0e914 126 'defaultregion' => 'side-pre',
011ed9fd
PM
127 ),
128 'login' => array(
011ed9fd
PM
129 'file' => 'general.php',
130 'regions' => array(),
131 'options' => array('langmenu'=>true),
132 ),
5cb2f1ad
ME
133
134 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
011ed9fd 135 'popup' => array(
011ed9fd
PM
136 'file' => 'general.php',
137 'regions' => array(),
5cb2f1ad 138 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true, 'nocourseheaderfooter'=>true),
011ed9fd 139 ),
5cb2f1ad 140 // No blocks and minimal footer - used for legacy frame layouts only!
011ed9fd 141 'frametop' => array(
011ed9fd
PM
142 'file' => 'general.php',
143 'regions' => array(),
c8f9faba 144 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
011ed9fd 145 ),
5cb2f1ad 146 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
011ed9fd 147 'embedded' => array(
011ed9fd
PM
148 'file' => 'embedded.php',
149 'regions' => array(),
5cb2f1ad
ME
150 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
151 ),
152 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
153 // This must not have any blocks, and it is good idea if it does not have links to
154 // other places - for example there should not be a home link in the footer...
155 'maintenance' => array(
156 'file' => 'general.php',
157 'regions' => array(),
158 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
011ed9fd 159 ),
ed5d13c0
PS
160 // Should display the content and basic headers only.
161 'print' => array(
162 'file' => 'general.php',
163 'regions' => array(),
5cb2f1ad 164 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
ed5d13c0 165 ),
5cb2f1ad
ME
166 // The pagelayout used when a redirection is occuring.
167 'redirect' => array(
168 'file' => 'embedded.php',
169 'regions' => array(),
170 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
171 ),
172 // The pagelayout used for reports.
173 'report' => array(
174 'file' => 'report.php',
175 'regions' => array('side-pre'),
176 'defaultregion' => 'side-pre',
177 ),
178 // The pagelayout used for safebrowser and securewindow.
179 'secure' => array(
180 'file' => 'general.php',
181 'regions' => array('side-pre', 'side-post'),
182 'defaultregion' => 'side-pre',
183 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true, 'nocourseheaderfooter'=>true),
184 ),
185);