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';
|