MDL-56016 theme_boost: Add plain preset for plain Moodle & Bootstrap

This commit is contained in:
Frédéric Massart 2016-09-19 10:34:23 +02:00
parent ddd8dc0d1b
commit 239fd05cc9
3 changed files with 14 additions and 0 deletions

View File

@ -38,6 +38,7 @@ $string['preset_desc'] = 'Pick a preset to broadly change the look of the theme.
$string['presetdefault'] = 'Default';
$string['presetflatly'] = 'Flatly';
$string['presetpaper'] = 'Paper';
$string['presetplain'] = 'Plain';
$string['presetreadable'] = 'Readable';
$string['rawscss'] = 'Raw SCSS';
$string['rawscss_desc'] = 'Use this field to provide SCSS code which will be injected at the end of the the stylesheet.';

View File

@ -0,0 +1,12 @@
/**
* Plain preset file.
*
* This preset is plain Moodle & Bootstrap and must not contain anything else.
*
* To create your own preset file:
* - Duplicate this file and rename it, for instance to preset-apple.scss.
* - In settings.php, find the references to 'plain', duplicate them and rename
* them to 'apple'. (Look around the choices for 'theme_boost/preset').
*/
@import "moodle";

View File

@ -32,6 +32,7 @@ if ($ADMIN->fulltree) {
$description = get_string('preset_desc', 'theme_boost');
$choices = [
// A file named 'preset-' . key . '.scss' is expected.
'plain' => get_string('presetplain', 'theme_boost'),
'default' => get_string('presetdefault', 'theme_boost'),
'flatly' => get_string('presetflatly', 'theme_boost'),
'paper' => get_string('presetpaper', 'theme_boost'),