MDL-55407 theme_noname: Remove styling and JS from blocks
[moodle.git] / theme / noname / config.php
CommitLineData
3ba00238
FM
1<?php
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 * Noname config.
19 *
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
23 */
24
25defined('MOODLE_INTERNAL') || die();
26
27$THEME->name = 'noname';
28$THEME->sheets = ['build'];
29$THEME->editor_sheets = ['editor'];
30
31$THEME->layouts = [
536f0460
DW
32 // Most backwards compatible layout without the blocks - this is the layout used by default.
33 'base' => array(
34 'file' => 'columns1.php',
35 'regions' => array(),
36 ),
37 // Standard layout with blocks, this is recommended for most pages with general information.
38 'standard' => array(
39 'file' => 'columns3.php',
40 'regions' => array('side-pre', 'side-post'),
41 'defaultregion' => 'side-pre',
42 ),
43 // Main course page.
44 'course' => array(
45 'file' => 'columns3.php',
46 'regions' => array('side-pre', 'side-post'),
47 'defaultregion' => 'side-pre',
48 'options' => array('langmenu' => true),
49 ),
50 'coursecategory' => array(
51 'file' => 'columns3.php',
52 'regions' => array('side-pre', 'side-post'),
53 'defaultregion' => 'side-pre',
54 ),
55 // Part of course, typical for modules - default page layout if $cm specified in require_login().
56 'incourse' => array(
57 'file' => 'columns3.php',
58 'regions' => array('side-pre', 'side-post'),
59 'defaultregion' => 'side-pre',
60 ),
61 // The site home page.
62 'frontpage' => array(
63 'file' => 'columns3.php',
64 'regions' => array('side-pre', 'side-post'),
65 'defaultregion' => 'side-pre',
66 'options' => array('nonavbar' => true),
67 ),
68 // Server administration scripts.
69 'admin' => array(
70 'file' => 'columns2.php',
71 'regions' => array('side-pre'),
72 'defaultregion' => 'side-pre',
73 ),
74 // My dashboard page.
75 'mydashboard' => array(
76 'file' => 'columns3.php',
77 'regions' => array('side-pre', 'side-post'),
78 'defaultregion' => 'side-pre',
79 'options' => array('langmenu' => true),
80 ),
81 // My public page.
82 'mypublic' => array(
83 'file' => 'columns2.php',
84 'regions' => array('side-pre'),
85 'defaultregion' => 'side-pre',
86 ),
87 'login' => array(
88 'file' => 'columns1.php',
89 'regions' => array(),
90 'options' => array('langmenu' => true),
91 ),
3ba00238 92
536f0460
DW
93 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
94 'popup' => array(
95 'file' => 'columns1.php',
96 'regions' => array(),
97 'options' => array('nofooter' => true, 'nonavbar' => true),
98 ),
99 // No blocks and minimal footer - used for legacy frame layouts only!
100 'frametop' => array(
101 'file' => 'columns1.php',
102 'regions' => array(),
103 'options' => array('nofooter' => true, 'nocoursefooter' => true),
104 ),
105 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
106 'embedded' => array(
107 'file' => 'embedded.php',
108 'regions' => array()
109 ),
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(),
116 ),
117 // Should display the content and basic headers only.
118 'print' => array(
119 'file' => 'columns1.php',
120 'regions' => array(),
121 'options' => array('nofooter' => true, 'nonavbar' => false),
122 ),
123 // The pagelayout used when a redirection is occuring.
124 'redirect' => array(
125 'file' => 'embedded.php',
126 'regions' => array(),
127 ),
128 // The pagelayout used for reports.
129 'report' => array(
130 'file' => 'columns2.php',
131 'regions' => array('side-pre'),
132 'defaultregion' => 'side-pre',
133 ),
134 // The pagelayout used for safebrowser and securewindow.
135 'secure' => array(
136 'file' => 'secure.php',
137 'regions' => array('side-pre', 'side-post'),
138 'defaultregion' => 'side-pre'
139 )
3ba00238
FM
140];
141
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'
154);