mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-68564 outputrenderers: extend before_footer hook to allow output
This commit is contained in:
parent
ab5d361c80
commit
23efc7337a
1 changed files with 7 additions and 2 deletions
|
@ -1385,15 +1385,20 @@ class core_renderer extends renderer_base {
|
|||
public function footer() {
|
||||
global $CFG, $DB;
|
||||
|
||||
$output = '';
|
||||
|
||||
// Give plugins an opportunity to touch the page before JS is finalized.
|
||||
$pluginswithfunction = get_plugins_with_function('before_footer', 'lib.php');
|
||||
foreach ($pluginswithfunction as $plugins) {
|
||||
foreach ($plugins as $function) {
|
||||
$function();
|
||||
$extrafooter = $function();
|
||||
if (is_string($extrafooter)) {
|
||||
$output .= $extrafooter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$output = $this->container_end_all(true);
|
||||
$output .= $this->container_end_all(true);
|
||||
|
||||
$footer = $this->opencontainers->pop('header/footer');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue