Commit f745b812 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

MDL-57690 output: stop requiring moodle-core-popuphelp on every page

In boost we are not longer using this module, so lets limit it to
bootstrapbase only
parent 5130953c
......@@ -569,13 +569,6 @@ class core_renderer extends renderer_base {
// Set up help link popups for all links with the helptooltip class
$this->page->requires->js_init_call('M.util.help_popups.setup');
// Setup help icon overlays.
$this->page->requires->yui_module('moodle-core-popuphelp', 'M.core.init_popuphelp');
$this->page->requires->strings_for_js(array(
'morehelp',
'loadinghelp',
), 'moodle');
$focus = $this->page->focuscontrol;
if (!empty($focus)) {
if (preg_match("#forms\['([a-zA-Z0-9]+)'\].elements\['([a-zA-Z0-9]+)'\]#", $focus, $matches)) {
......
......@@ -37,6 +37,14 @@ class theme_bootstrapbase_core_renderer extends core_renderer {
global $SITE, $PAGE;
$output = parent::standard_head_html();
// Setup help icon overlays.
$this->page->requires->yui_module('moodle-core-popuphelp', 'M.core.init_popuphelp');
$this->page->requires->strings_for_js(array(
'morehelp',
'loadinghelp',
), 'moodle');
if ($PAGE->pagelayout == 'frontpage') {
$summary = s(strip_tags(format_text($SITE->summary, FORMAT_HTML)));
if (!empty($summary)) {
......
This files describes API changes in /theme/* themes,
information provided here is intended especially for theme designer.
=== 3.3 ===
* As boost-based themes no longer use the moodle-core-popuphelp help popups, the javascript
setup for this module have been moved from core standard_head_html to the bootstrapbase
renderer. If your theme needs this javascript you will need to ensure the bootstrap renderer
is called, or require the JS yourself
=== 3.2 ===
* Removed themes: base, canvas
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment