Línea 1... |
Línea 1... |
1 |
<?php
|
1 |
<?php
|
2 |
defined('MOODLE_INTERNAL') || die();
|
2 |
defined('MOODLE_INTERNAL') || die();
|
3 |
$THEME->name = 'universe_child';
|
3 |
$THEME->name = 'universe_child';
|
4 |
$THEME->sheets = ['styles', 'quiz'];
|
4 |
$THEME->sheets = ['styles', 'quiz'];
|
5 |
$THEME->editor_sheets = [];
|
5 |
$THEME->editor_sheets = [];
|
6 |
$THEME->editor_scss = ['styles'];
|
6 |
$THEME->editor_scss = ['styles'];
|
Línea 11... |
Línea 11... |
11 |
$THEME->requiredblocks = '';
|
11 |
$THEME->requiredblocks = '';
|
12 |
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
|
12 |
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
|
13 |
$THEME->hidefromselector = false;
|
13 |
$THEME->hidefromselector = false;
|
14 |
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
|
14 |
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
|
15 |
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
|
15 |
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
|
16 |
$THEME->scss = function($theme) {
|
16 |
$THEME->scss = function ($theme) {
|
17 |
return theme_universe_get_main_scss_content($theme);
|
17 |
return theme_universe_get_main_scss_content($theme);
|
18 |
};
|
18 |
};
|
19 |
$THEME->haseditswitch = true;
|
19 |
$THEME->haseditswitch = true;
|
20 |
$THEME->scss = function($theme) {
|
20 |
$THEME->scss = function ($theme) {
|
Línea 21... |
Línea 21... |
21 |
|
21 |
|
22 |
// We need to load the config for our parent theme because that is where the preset setting is defined.
|
22 |
// We need to load the config for our parent theme because that is where the preset setting is defined.
|
23 |
$parentconfig = theme_config::load('universe');
|
23 |
$parentconfig = theme_config::load('universe');
|
24 |
// Call a function from our parent themes lib.php file to fetch the content of the themes main SCSS file based on it's own config, not ours.
|
24 |
// Call a function from our parent themes lib.php file to fetch the content of the themes main SCSS file based on it's own config, not ours.
|
25 |
return theme_universe_get_main_scss_content($parentconfig);
|
25 |
return theme_universe_get_main_scss_content($parentconfig);
|
26 |
};
|
26 |
};
|
27 |
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
|
27 |
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
|
28 |
$CFG->defaultblocks_override = 'comments, messageteacher';
|
- |
|
29 |
|
- |
|
30 |
|
- |
|