Proyectos de Subversion Moodle

Rev

Rev 149 | Rev 154 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 149 Rev 150
Línea 20... Línea 20...
20
$THEME->scss = function ($theme) {
20
$THEME->scss = function ($theme) {
21
    return theme_universe_get_main_scss_content($theme);
21
    return theme_universe_get_main_scss_content($theme);
22
};
22
};
23
$THEME->haseditswitch = true;
23
$THEME->haseditswitch = true;
24
$THEME->scss = function ($theme) {
24
$THEME->scss = function ($theme) {
25
 
-
 
26
    // We need to load the config for our parent theme because that is where the preset setting is defined.
25
    // We need to load the config for our parent theme because that is where the preset setting is defined.
27
    $parentconfig = theme_config::load('universe');
26
    $parentconfig = theme_config::load('universe');
28
    // 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.
27
    // 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.
29
    return theme_universe_get_main_scss_content($parentconfig);
28
    return theme_universe_get_main_scss_content($parentconfig);
30
};
29
};
-
 
30
 
31
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
31
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';