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/>.
20 * @package theme_noname
21 * @copyright 2016 Frédéric Massart
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 defined('MOODLE_INTERNAL') || die();
27 $THEME->name = 'noname';
28 $THEME->sheets = ['build'];
29 $THEME->editor_sheets = ['editor'];
32 // Most backwards compatible layout without the blocks - this is the layout used by default.
34 'file' => 'columns1.php',
37 // Standard layout with blocks, this is recommended for most pages with general information.
39 'file' => 'columns3.php',
40 'regions' => array('side-pre', 'side-post'),
41 'defaultregion' => 'side-pre',
45 'file' => 'columns3.php',
46 'regions' => array('side-pre', 'side-post'),
47 'defaultregion' => 'side-pre',
48 'options' => array('langmenu' => true),
50 'coursecategory' => array(
51 'file' => 'columns3.php',
52 'regions' => array('side-pre', 'side-post'),
53 'defaultregion' => 'side-pre',
55 // Part of course, typical for modules - default page layout if $cm specified in require_login().
57 'file' => 'columns3.php',
58 'regions' => array('side-pre', 'side-post'),
59 'defaultregion' => 'side-pre',
61 // The site home page.
63 'file' => 'columns3.php',
64 'regions' => array('side-pre', 'side-post'),
65 'defaultregion' => 'side-pre',
66 'options' => array('nonavbar' => true),
68 // Server administration scripts.
70 'file' => 'columns2.php',
71 'regions' => array('side-pre'),
72 'defaultregion' => 'side-pre',
75 'mydashboard' => array(
76 'file' => 'columns3.php',
77 'regions' => array('side-pre', 'side-post'),
78 'defaultregion' => 'side-pre',
79 'options' => array('langmenu' => true),
83 'file' => 'columns2.php',
84 'regions' => array('side-pre'),
85 'defaultregion' => 'side-pre',
88 'file' => 'columns1.php',
90 'options' => array('langmenu' => true),
93 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
95 'file' => 'columns1.php',
97 'options' => array('nofooter' => true, 'nonavbar' => true),
99 // No blocks and minimal footer - used for legacy frame layouts only!
101 'file' => 'columns1.php',
102 'regions' => array(),
103 'options' => array('nofooter' => true, 'nocoursefooter' => true),
105 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
107 'file' => 'embedded.php',
110 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
111 // This must not have any blocks, links, or API calls that would lead to database or cache interaction.
112 // Please be extremely careful if you are modifying this layout.
113 'maintenance' => array(
114 'file' => 'maintenance.php',
115 'regions' => array(),
117 // Should display the content and basic headers only.
119 'file' => 'columns1.php',
120 'regions' => array(),
121 'options' => array('nofooter' => true, 'nonavbar' => false),
123 // The pagelayout used when a redirection is occuring.
125 'file' => 'embedded.php',
126 'regions' => array(),
128 // The pagelayout used for reports.
130 'file' => 'columns2.php',
131 'regions' => array('side-pre'),
132 'defaultregion' => 'side-pre',
134 // The pagelayout used for safebrowser and securewindow.
136 'file' => 'secure.php',
137 'regions' => array('side-pre', 'side-post'),
138 'defaultregion' => 'side-pre'
142 // $THEME->javascripts = array();
143 // $THEME->javascripts_footer = array();
144 $THEME->parents = [];
145 $THEME->rarrow = '▶';
146 $THEME->larrow = '◀';
147 $THEME->enable_dock = false;
148 $THEME->supportscssoptimisation = false;
149 $THEME->yuicssmodules = array();
150 $THEME->rendererfactory = 'theme_overridden_renderer_factory';
151 $THEME->blockrtlmanipulations = array(
152 'side-pre' => 'side-post',
153 'side-post' => 'side-pre'