MDL-55996 theme_boost: Rename theme noname to theme boost
Part of MDL-55071
@ -46,24 +46,30 @@ lib/amd/src/loglevel.js
|
||||
lib/mustache/
|
||||
lib/amd/src/mustache.js
|
||||
lib/graphlib.php
|
||||
lib/php-css-parser/
|
||||
lib/rtlcss/
|
||||
lib/scssphp/
|
||||
lib/spout/
|
||||
lib/amd/src/chartjs-lazy.js
|
||||
lib/maxmind/GeoIp2/
|
||||
lib/maxmind/MaxMind/
|
||||
mod/assign/feedback/editpdf/fpdi/
|
||||
repository/s3/S3.php
|
||||
theme/boost/scss/bootstrap/
|
||||
theme/boost/amd/src/alert.js
|
||||
theme/boost/amd/src/button.js
|
||||
theme/boost/amd/src/carousel.js
|
||||
theme/boost/amd/src/collapse.js
|
||||
theme/boost/amd/src/dropdown.js
|
||||
theme/boost/amd/src/modal.js
|
||||
theme/boost/amd/src/popover.js
|
||||
theme/boost/amd/src/scrollspy.js
|
||||
theme/boost/amd/src/tab.js
|
||||
theme/boost/amd/src/tooltip.js
|
||||
theme/boost/amd/src/util.js
|
||||
theme/boost/amd/src/tether.js
|
||||
theme/boost/scss/preset-flat.scss
|
||||
theme/boost/scss/preset-paper.scss
|
||||
theme/bootstrapbase/less/bootstrap/
|
||||
theme/bootstrapbase/javascript/html5shiv.js
|
||||
theme/bootstrapbase/amd/src/bootstrap.js
|
||||
theme/noname/amd/src/alert.js
|
||||
theme/noname/amd/src/button.js
|
||||
theme/noname/amd/src/carousel.js
|
||||
theme/noname/amd/src/collapse.js
|
||||
theme/noname/amd/src/dropdown.js
|
||||
theme/noname/amd/src/modal.js
|
||||
theme/noname/amd/src/popover.js
|
||||
theme/noname/amd/src/scrollspy.js
|
||||
theme/noname/amd/src/tab.js
|
||||
theme/noname/amd/src/tooltip.js
|
||||
theme/noname/amd/src/util.js
|
||||
theme/noname/amd/src/tether.js
|
||||
theme/bootstrapbase/amd/src/bootstrap.js
|
@ -45,12 +45,30 @@ lib/amd/src/loglevel.js
|
||||
lib/mustache/
|
||||
lib/amd/src/mustache.js
|
||||
lib/graphlib.php
|
||||
lib/php-css-parser/
|
||||
lib/rtlcss/
|
||||
lib/scssphp/
|
||||
lib/spout/
|
||||
lib/amd/src/chartjs-lazy.js
|
||||
lib/maxmind/GeoIp2/
|
||||
lib/maxmind/MaxMind/
|
||||
mod/assign/feedback/editpdf/fpdi/
|
||||
repository/s3/S3.php
|
||||
theme/boost/scss/bootstrap/
|
||||
theme/boost/amd/src/alert.js
|
||||
theme/boost/amd/src/button.js
|
||||
theme/boost/amd/src/carousel.js
|
||||
theme/boost/amd/src/collapse.js
|
||||
theme/boost/amd/src/dropdown.js
|
||||
theme/boost/amd/src/modal.js
|
||||
theme/boost/amd/src/popover.js
|
||||
theme/boost/amd/src/scrollspy.js
|
||||
theme/boost/amd/src/tab.js
|
||||
theme/boost/amd/src/tooltip.js
|
||||
theme/boost/amd/src/util.js
|
||||
theme/boost/amd/src/tether.js
|
||||
theme/boost/scss/preset-flat.scss
|
||||
theme/boost/scss/preset-paper.scss
|
||||
theme/bootstrapbase/less/bootstrap/
|
||||
theme/bootstrapbase/javascript/html5shiv.js
|
||||
theme/bootstrapbase/amd/src/bootstrap.js
|
@ -1900,7 +1900,7 @@ class core_plugin_manager {
|
||||
),
|
||||
|
||||
'theme' => array(
|
||||
'bootstrapbase', 'clean', 'more'
|
||||
'boost', 'bootstrapbase', 'clean', 'more'
|
||||
),
|
||||
|
||||
'tool' => array(
|
||||
|
1
theme/boost/amd/build/loader.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
define(["jquery","./tether"],function(a,b){return window.jQuery=a,window.Tether=b,require(["theme_boost/util","theme_boost/alert","theme_boost/button","theme_boost/carousel","theme_boost/collapse","theme_boost/dropdown","theme_boost/modal","theme_boost/scrollspy","theme_boost/tab","theme_boost/tooltip","theme_boost/popover"],function(b){a('[data-toggle="popover"]').popover()}),{}});
|
@ -17,7 +17,7 @@
|
||||
* Custom form error event handler to manipulate the bootstrap markup and show
|
||||
* nicely styled errors in an mform.
|
||||
*
|
||||
* @module theme_noname/form-display-errors
|
||||
* @module theme_boost/form-display-errors
|
||||
* @copyright 2016 Damyon Wiese <damyon@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -44,4 +44,4 @@ define(['jquery', 'core/event'], function($, Event) {
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
@ -28,17 +28,17 @@ define(['jquery', './tether'], function(jQuery, Tether) {
|
||||
window.jQuery = jQuery;
|
||||
window.Tether = Tether;
|
||||
|
||||
require(['theme_noname/util',
|
||||
'theme_noname/alert',
|
||||
'theme_noname/button',
|
||||
'theme_noname/carousel',
|
||||
'theme_noname/collapse',
|
||||
'theme_noname/dropdown',
|
||||
'theme_noname/modal',
|
||||
'theme_noname/scrollspy',
|
||||
'theme_noname/tab',
|
||||
'theme_noname/tooltip',
|
||||
'theme_noname/popover'],
|
||||
require(['theme_boost/util',
|
||||
'theme_boost/alert',
|
||||
'theme_boost/button',
|
||||
'theme_boost/carousel',
|
||||
'theme_boost/collapse',
|
||||
'theme_boost/dropdown',
|
||||
'theme_boost/modal',
|
||||
'theme_boost/scrollspy',
|
||||
'theme_boost/tab',
|
||||
'theme_boost/tooltip',
|
||||
'theme_boost/popover'],
|
||||
function(another) {
|
||||
jQuery('[data-toggle="popover"]').popover();
|
||||
});
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Admin setting for SCSS variables.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -27,11 +27,11 @@ defined('MOODLE_INTERNAL') || die();
|
||||
/**
|
||||
* Admin setting for SCSS variables class.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class theme_noname_admin_setting_scss_variables extends admin_setting_configtextarea {
|
||||
class theme_boost_admin_setting_scss_variables extends admin_setting_configtextarea {
|
||||
|
||||
/**
|
||||
* Validate data before storage.
|
||||
@ -45,7 +45,7 @@ class theme_noname_admin_setting_scss_variables extends admin_setting_configtext
|
||||
}
|
||||
|
||||
try {
|
||||
theme_noname_parse_scss_variables($data, false);
|
||||
theme_boost_parse_scss_variables($data, false);
|
||||
} catch (moodle_exception $e) {
|
||||
return $e->getMessage();
|
||||
}
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Ryan Wyllie
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -23,11 +23,11 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Ryan Wyllie
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class theme_noname_admin_settingspage_tabs extends admin_settingpage {
|
||||
class theme_boost_admin_settingspage_tabs extends admin_settingpage {
|
||||
|
||||
/** @var The tabs */
|
||||
protected $tabs = array();
|
||||
@ -93,7 +93,7 @@ class theme_noname_admin_settingspage_tabs extends admin_settingpage {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $OUTPUT->render_from_template('theme_noname/admin_setting_tabs', $context);
|
||||
return $OUTPUT->render_from_template('theme_boost/admin_setting_tabs', $context);
|
||||
}
|
||||
|
||||
}
|
@ -17,12 +17,12 @@
|
||||
/**
|
||||
* Autoprefixer.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace theme_noname;
|
||||
namespace theme_boost;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
use Sabberworm\CSS\CSSList\CSSList;
|
||||
@ -50,7 +50,7 @@ use Sabberworm\CSS\Value\ValueList;
|
||||
*
|
||||
* Very basic implementation covering simple needs for Bootstrap 4.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
@ -17,12 +17,12 @@
|
||||
/**
|
||||
* Overriden block settings renderer.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace theme_noname\output;
|
||||
namespace theme_boost\output;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once($CFG->dirroot . '/blocks/settings/renderer.php');
|
||||
@ -32,7 +32,7 @@ use moodle_url;
|
||||
/**
|
||||
* Overriden block settings renderer.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
@ -22,7 +22,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace theme_noname\output\core;
|
||||
namespace theme_boost\output\core;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
use moodle_url;
|
@ -22,7 +22,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace theme_noname\output\core;
|
||||
namespace theme_boost\output\core;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
use moodle_url;
|
||||
@ -75,7 +75,7 @@ class course_renderer extends \core_course_renderer {
|
||||
'value' => $value
|
||||
];
|
||||
|
||||
return $this->render_from_template('theme_noname/course_search_form', $data);
|
||||
return $this->render_from_template('theme_boost/course_search_form', $data);
|
||||
}
|
||||
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace theme_noname\output\core;
|
||||
namespace theme_boost\output\core;
|
||||
|
||||
use plugin_renderer_base;
|
||||
|
||||
@ -24,14 +24,14 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Rendering of files viewer related widgets.
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
/**
|
||||
* Rendering of files viewer related widgets.
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -136,4 +136,4 @@ class files_renderer extends \core_files_renderer {
|
||||
protected function fp_js_template_processexistingfile() {
|
||||
return $this->render_from_template('core/filemanager_processexistingfile', []);
|
||||
}
|
||||
}
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace theme_noname\output;
|
||||
namespace theme_boost\output;
|
||||
|
||||
use coding_exception;
|
||||
use html_writer;
|
||||
@ -40,7 +40,7 @@ defined('MOODLE_INTERNAL') || die;
|
||||
/**
|
||||
* Renderers to align Moodle's HTML with that expected by Bootstrap
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2012 Bas Brands, www.basbrands.nl
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
@ -17,12 +17,12 @@
|
||||
/**
|
||||
* Overriden gradereport_history renderer.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace theme_noname\output;
|
||||
namespace theme_boost\output;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
use gradereport_history\output\user_button;
|
||||
@ -30,7 +30,7 @@ use gradereport_history\output\user_button;
|
||||
/**
|
||||
* Overriden gradereport_history renderer.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
@ -15,9 +15,9 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Noname config.
|
||||
* Boost config.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -26,8 +26,8 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once(__DIR__ . '/lib.php');
|
||||
|
||||
$THEME->name = 'noname';
|
||||
$THEME->scssfile = theme_noname_get_scss_file($THEME);
|
||||
$THEME->name = 'boost';
|
||||
$THEME->scssfile = theme_boost_get_scss_file($THEME);
|
||||
$THEME->sheets = [];
|
||||
$THEME->editor_sheets = ['editor'];
|
||||
|
||||
@ -146,9 +146,9 @@ $THEME->layouts = [
|
||||
// $THEME->javascripts_footer = array();
|
||||
$THEME->parents = [];
|
||||
$THEME->enable_dock = false;
|
||||
$THEME->csstreepostprocessor = 'theme_noname_css_tree_post_processor';
|
||||
$THEME->extrascsscallback = 'theme_noname_get_extra_scss';
|
||||
$THEME->scssvariablescallback = 'theme_noname_get_scss_variables';
|
||||
$THEME->csstreepostprocessor = 'theme_boost_css_tree_post_processor';
|
||||
$THEME->extrascsscallback = 'theme_boost_get_extra_scss';
|
||||
$THEME->scssvariablescallback = 'theme_boost_get_scss_variables';
|
||||
$THEME->supportscssoptimisation = false;
|
||||
$THEME->yuicssmodules = array();
|
||||
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Language file.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -27,12 +27,12 @@ defined('MOODLE_INTERNAL') || die();
|
||||
$string['advancedsettings'] = 'Advanced settings';
|
||||
$string['brandcolor'] = 'Brand colour';
|
||||
$string['brandcolor_desc'] = 'The accent colour.';
|
||||
$string['choosereadme'] = 'Hey, change me!';
|
||||
$string['choosereadme'] = 'Boost is a modern highly customizable theme. This theme is intended to used directly, or used as a parent theme when creating new themes utilising Boostrap 4.';
|
||||
$string['currentinparentheses'] = '(current)';
|
||||
$string['configtitle'] = 'CHANGE ME!';
|
||||
$string['configtitle'] = 'Boost';
|
||||
$string['errorparsingscssvariables'] = 'There was an error parsing the variable at line {$a}, please double check the syntax.';
|
||||
$string['generalsettings'] = 'General settings';
|
||||
$string['pluginname'] = 'NONAME';
|
||||
$string['pluginname'] = 'Boost';
|
||||
$string['preset'] = 'Theme preset';
|
||||
$string['preset_desc'] = 'Pick a preset to broadly change the look of the theme.';
|
||||
$string['presetdefault'] = 'Default';
|
@ -15,9 +15,9 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* A one column layout for the noname theme.
|
||||
* A one column layout for the boost theme.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -26,4 +26,4 @@ $templatecontext = [
|
||||
'output' => $OUTPUT
|
||||
];
|
||||
|
||||
echo $OUTPUT->render_from_template('theme_noname/columns1', $templatecontext);
|
||||
echo $OUTPUT->render_from_template('theme_boost/columns1', $templatecontext);
|
@ -15,9 +15,9 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* A two column layout for the noname theme.
|
||||
* A two column layout for the boost theme.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -27,4 +27,4 @@ $templatecontext = [
|
||||
'sidepreblocks' => $OUTPUT->blocks('side-pre', 'col-md-4 pull-md-8'),
|
||||
];
|
||||
|
||||
echo $OUTPUT->render_from_template('theme_noname/columns2', $templatecontext);
|
||||
echo $OUTPUT->render_from_template('theme_boost/columns2', $templatecontext);
|
@ -15,9 +15,9 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* An embedded layout for the noname theme.
|
||||
* An embedded layout for the boost theme.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -26,4 +26,4 @@ $templatecontext = [
|
||||
'output' => $OUTPUT
|
||||
];
|
||||
|
||||
echo $OUTPUT->render_from_template('theme_noname/embedded', $templatecontext);
|
||||
echo $OUTPUT->render_from_template('theme_boost/embedded', $templatecontext);
|
@ -15,9 +15,9 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* A maintenance layout for the noname theme.
|
||||
* A maintenance layout for the boost theme.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -28,4 +28,4 @@ $templatecontext = [
|
||||
'output' => $OUTPUT
|
||||
];
|
||||
|
||||
echo $OUTPUT->render_from_template('theme_noname/maintenance', $templatecontext);
|
||||
echo $OUTPUT->render_from_template('theme_boost/maintenance', $templatecontext);
|
@ -15,9 +15,9 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* A three column layout for the noname theme.
|
||||
* A three column layout for the boost theme.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -28,5 +28,5 @@ $templatecontext = [
|
||||
'sidepostblocks' => $OUTPUT->blocks('side-post', 'col-md-3')
|
||||
];
|
||||
|
||||
echo $OUTPUT->render_from_template('theme_noname/secure', $templatecontext);
|
||||
echo $OUTPUT->render_from_template('theme_boost/secure', $templatecontext);
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Theme functions.
|
||||
*
|
||||
* @package theme_noname
|
||||
* @package theme_boost
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -30,8 +30,8 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @param string $tree The CSS tree.
|
||||
* @param theme_config $theme The theme config object.
|
||||
*/
|
||||
function theme_noname_css_tree_post_processor($tree, $this) {
|
||||
$prefixer = new theme_noname\autoprefixer($tree);
|
||||
function theme_boost_css_tree_post_processor($tree, $this) {
|
||||
$prefixer = new theme_boost\autoprefixer($tree);
|
||||
$prefixer->prefix();
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ function theme_noname_css_tree_post_processor($tree, $this) {
|
||||
* @param theme_config $theme The theme config object.
|
||||
* @return string The name of the file without 'scss'.
|
||||
*/
|
||||
function theme_noname_get_scss_file($theme) {
|
||||
function theme_boost_get_scss_file($theme) {
|
||||
$preset = !empty($theme->settings->preset) ? $theme->settings->preset : 'default';
|
||||
return 'preset-' . $preset;
|
||||
}
|
||||
@ -52,7 +52,7 @@ function theme_noname_get_scss_file($theme) {
|
||||
* @param theme_config $theme The theme config object.
|
||||
* @return string
|
||||
*/
|
||||
function theme_noname_get_extra_scss($theme) {
|
||||
function theme_boost_get_extra_scss($theme) {
|
||||
return !empty($theme->settings->scss) ? $theme->settings->scss : '';
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ function theme_noname_get_extra_scss($theme) {
|
||||
* @param theme_config $theme The theme config object.
|
||||
* @return array
|
||||
*/
|
||||
function theme_noname_get_scss_variables($theme) {
|
||||
function theme_boost_get_scss_variables($theme) {
|
||||
$variables = [];
|
||||
$configurable = [
|
||||
// Config key => [variableName, ...].
|
||||
@ -80,7 +80,7 @@ function theme_noname_get_scss_variables($theme) {
|
||||
}
|
||||
|
||||
if (!empty($theme->settings->scss_variables)) {
|
||||
$variables = array_merge($variables, theme_noname_parse_scss_variables($theme->settings->scss_variables));
|
||||
$variables = array_merge($variables, theme_boost_parse_scss_variables($theme->settings->scss_variables));
|
||||
}
|
||||
|
||||
return $variables;
|
||||
@ -100,7 +100,7 @@ function theme_noname_get_scss_variables($theme) {
|
||||
* @param bool $lenient When non lenient, an exception will be thrown when a line cannot be parsed.
|
||||
* @return array
|
||||
*/
|
||||
function theme_noname_parse_scss_variables($data, $lenient = true) {
|
||||
function theme_boost_parse_scss_variables($data, $lenient = true) {
|
||||
$variables = [];
|
||||
$lines = explode("\n", $data);
|
||||
$i = 0;
|
||||
@ -119,7 +119,7 @@ function theme_noname_parse_scss_variables($data, $lenient = true) {
|
||||
if ($lenient) {
|
||||
continue;
|
||||
}
|
||||
throw new moodle_exception('errorparsingscssvariables', 'theme_noname', null, $i);
|
||||
throw new moodle_exception('errorparsingscssvariables', 'theme_boost', null, $i);
|
||||
}
|
||||
|
||||
$variables[$variable] = $value;
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 372 B |
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 424 B |
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 693 B |
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 569 B |
Before Width: | Height: | Size: 509 B After Width: | Height: | Size: 509 B |
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 257 B |
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 635 B After Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 842 B |
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 95 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 438 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 547 B |
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 996 B After Width: | Height: | Size: 996 B |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 487 B After Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 930 B After Width: | Height: | Size: 930 B |
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |