Proyectos de Subversion Moodle

Rev

Rev 155 | Rev 161 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
126 ariadna 1
<?php
1 efrain 2
defined('MOODLE_INTERNAL') || die();
134 ariadna 3
 
136 ariadna 4
$THEME->name = 'universe_child';
5
$THEME->parents = ['universe'];
6
 
1 efrain 7
$THEME->sheets = ['styles', 'quiz'];
8
$THEME->editor_sheets = [];
9
$THEME->editor_scss = ['styles'];
10
$THEME->enable_dock = false;
11
$THEME->yuicssmodules = array();
12
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
13
$THEME->requiredblocks = '';
14
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
15
$THEME->hidefromselector = false;
16
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
17
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
126 ariadna 18
$THEME->scss = function ($theme) {
1 efrain 19
    return theme_universe_get_main_scss_content($theme);
20
};
21
$THEME->haseditswitch = true;
126 ariadna 22
$THEME->scss = function ($theme) {
1 efrain 23
    // We need to load the config for our parent theme because that is where the preset setting is defined.
24
    $parentconfig = theme_config::load('universe');
25
    // 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.
26
    return theme_universe_get_main_scss_content($parentconfig);
27
};
150 ariadna 28
 
1 efrain 29
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';