Skip to content

Commit

Permalink
MDL-64506 theme: Update BSB references and upgrade texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolate-lightning committed Apr 3, 2019
1 parent cf89ac3 commit a5a6df5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/outputlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2554,8 +2554,8 @@ protected function get_region_name($region, $theme) {
}
}

// Last resort, try the bootstrapbase theme for names
return get_string('region-' . $region, 'theme_bootstrapbase');
// Last resort, try the boost theme for names
return get_string('region-' . $region, 'theme_boost');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/copy_box.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}}
<input type="text" class="copy_box" value="{{{ text }}}" readonly="readonly" size="48" {{#id}}id={{#quote}}{{{id}}}-{{{uniqid}}}{{/quote}}{{/id}}/>
{{# js }}
require(['jquery', 'theme_bootstrapbase/bootstrap'], function($) {
require(['jquery'], function($) {
$('.copy_box').on('click', function() {
$(this).select();
});
Expand Down
3 changes: 0 additions & 3 deletions mod/book/tool/print/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@

$PAGE->set_url('/mod/book/print.php', array('id' => $id, 'chapterid' => $chapterid));

// Use "embedded" instead of "print" because Bootstrapbase shows top
// header bar and navbar even on print style - which is inconsistent
// with extant behaviour.
$PAGE->set_pagelayout("embedded");

unset($id);
Expand Down
1 change: 0 additions & 1 deletion theme/boost/scss/fontawesome/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ Font awesome comes in 3 parts relating to Moodle.

1. The font. Put the woff font in lib/fonts_core/fontawesome-webfont.woff. Update lib/thirdpartylibs.xml.
2. SCSS. Replace the SCSS in this folder (/theme/boost/scss/fontawesome). Update theme/boost/thirdpartylibs.xml.
2. Less. Replace the Less in this folder (/theme/bootstrapbase/less/fontawesome). Update theme/bootstrapbase/thirdpartylibs.xml.
3 changes: 1 addition & 2 deletions theme/boost/scss/moodle/undo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ body:not(.jsenabled) .dropdown:hover > .dropdown-menu {
margin-top: -6px; // We need to move it up to counter the arrows as they introduce hover bugs.
}

// Extends bootstrapbase/less/bootstrap/navbar.less
// to enable scroll in the language menu.
// Enable scroll in the language menu.
body:not(.jsenabled) .langmenu:hover > .dropdown-menu,
.langmenu.open > .dropdown-menu {
display: block;
Expand Down
1 change: 1 addition & 0 deletions theme/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ information provided here is intended especially for theme designer.
* Renderers that were overridden by Boost are now in Bootstrapbase
* Core templates in Boost have now moved into core
* Templates that were overridden by boost are now located in Bootstrapbase
* Themes bootstrapbase, clean & more have now been removed.

=== 3.6 ===

Expand Down

0 comments on commit a5a6df5

Please sign in to comment.