using_frontpage_header_on_another_page()) {
diff --git a/scss/bootstrapchanges.scss b/scss/bootstrapchanges.scss
index 584425b..260c9da 100644
--- a/scss/bootstrapchanges.scss
+++ b/scss/bootstrapchanges.scss
@@ -163,7 +163,7 @@ textarea, .uneditable-input {
.navbar .nav > li > a,
.navbar .nav-item a.nav-link,
.navbar .nav-item.campussettingsmenu a.dropdown-toggle,
-.navbar .editmode-switch-form label {
+.navbar .campuseditmodelabel {
color: $navbarLinkColor;
// Hover/focus state
&:hover,
diff --git a/templates/core/editswitch.mustache b/templates/core/editswitch.mustache
new file mode 100644
index 0000000..079c3ab
--- /dev/null
+++ b/templates/core/editswitch.mustache
@@ -0,0 +1,65 @@
+{{!
+ This file is part of Moodle - http://moodle.org/
+
+ Moodle is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Moodle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Moodle. If not, see .
+}}
+{{!
+
+ @template theme_boost/editswitch
+
+ This template renders the top navbar.
+
+ Example context (json):
+ {
+ "url": "http://localhost/",
+ "sesskey": "sesskey",
+ "edit": 1,
+ "adminedit": true,
+ "checked": "",
+ "string": "Edit on",
+ "legacyseturl": "/editmode.php"
+ }
+}}
+
+
+{{#js}}
+require(['core/edit_switch'], function(editSwitch) {
+ editSwitch.init('{{uniqid}}-editingswitch');
+});
+{{/js}}