Proyectos de Subversion Moodle

Rev

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

Rev 1214 Rev 1347
Línea 42... Línea 42...
42
    return theme_universe_get_main_scss_content($theme);
42
    return theme_universe_get_main_scss_content($theme);
43
};
43
};
44
$THEME->haseditswitch = true;
44
$THEME->haseditswitch = true;
Línea 45... Línea 45...
45
 
45
 
46
$THEME->scss = function ($theme) {
-
 
47
    // We need to load the config for our parent theme because that is where the preset setting is defined.
-
 
48
    $parentconfig = theme_config::load('universe');
-
 
49
    // 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.
46
$THEME->scss = function ($theme) {
50
    return theme_universe_get_main_scss_content($parentconfig);
47
    return theme_universe_get_main_scss_content($theme); // Usa la configuración del hijo
Línea 51... Línea 48...
51
};
48
};
Línea 52... Línea 49...
52
 
49