-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
48 lines (42 loc) · 1.77 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* CMDA Theme
*
* @package theme_cmda
* @copyright 2017 David de Vries, Justus Sturkenboom
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$THEME->doctype = 'html5';
$THEME->name = 'cmda';
$THEME->sheets = []; // no static stylesheets, SCSS
$THEME->editor_sheets = [];
$THEME->parents = ['boost']; // options: boost, clean
$THEME->enable_dock = false;
$THEME->yuicssmodules = array(); // deprecated, don't touch
// override the theme renderer
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->requiredblocks = ''; // can we add the menu to all pages?
// forces a block region into the page when editing is enabled and
// it takes up too much room.
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
// This is the function that returns the SCSS source for the main file in our
// theme. We override the boost version because we want to allow presets
// uploaded to our own theme file area to be selected in the preset list.
$THEME->scss = function($theme) {
return theme_cmda_get_main_scss_content($theme);
};