Skip to content

Commit

Permalink
MDL-55996 theme_boost: Rename theme noname to theme boost
Browse files Browse the repository at this point in the history
Part of MDL-55071
  • Loading branch information
Damyon Wiese authored and danpoltawski committed Sep 23, 2016
1 parent 137c289 commit 2ede86d
Show file tree
Hide file tree
Showing 358 changed files with 382 additions and 166 deletions.
32 changes: 19 additions & 13 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 18 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/classes/plugin_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ public static function standard_plugins_list($type) {
),

'theme' => array(
'bootstrapbase', 'clean', 'more'
'boost', 'bootstrapbase', 'clean', 'more'
),

'tool' => array(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions theme/boost/amd/build/loader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -44,4 +44,4 @@ define(['jquery', 'core/event'], function($, Event) {
});
}
};
});
});
22 changes: 11 additions & 11 deletions theme/noname/amd/src/loader.js → theme/boost/amd/src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -27,11 +27,11 @@
/**
* 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.
Expand All @@ -45,7 +45,7 @@ public function validate($data) {
}

try {
theme_noname_parse_scss_variables($data, false);
theme_boost_parse_scss_variables($data, false);
} catch (moodle_exception $e) {
return $e->getMessage();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
// 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
*/

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();
Expand Down Expand Up @@ -93,7 +93,7 @@ public function output_html() {
return '';
}

return $OUTPUT->render_from_template('theme_noname/admin_setting_tabs', $context);
return $OUTPUT->render_from_template('theme_boost/admin_setting_tabs', $context);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -50,7 +50,7 @@
*
* 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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -32,7 +32,7 @@
/**
* 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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -75,7 +75,7 @@ function course_search_form($value = '', $format = 'plain') {
'value' => $value
];

return $this->render_from_template('theme_noname/course_search_form', $data);
return $this->render_from_template('theme_boost/course_search_form', $data);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -24,14 +24,14 @@

/**
* 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
*/
Expand Down Expand Up @@ -136,4 +136,4 @@ protected function fp_js_template_processexistingfilemultiple() {
protected function fp_js_template_processexistingfile() {
return $this->render_from_template('core/filemanager_processexistingfile', []);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -40,7 +40,7 @@
/**
* 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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
/**
* 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;

/**
* 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
*/
Expand Down
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions theme/noname/config.php → theme/boost/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -26,8 +26,8 @@

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

Expand Down Expand Up @@ -146,9 +146,9 @@
// $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';
Loading

0 comments on commit 2ede86d

Please sign in to comment.