diff --git a/theme/boost/layout/embedded.php b/theme/boost/layout/embedded.php index 762d7f3277c..f3ddd7fd3b5 100644 --- a/theme/boost/layout/embedded.php +++ b/theme/boost/layout/embedded.php @@ -26,9 +26,11 @@ defined('MOODLE_INTERNAL') || die(); $fakeblockshtml = $OUTPUT->blocks('side-pre', array(), 'aside', true); $hasfakeblocks = strpos($fakeblockshtml, 'data-block="_fake"') !== false; +$renderer = $PAGE->get_renderer('core'); $templatecontext = [ 'output' => $OUTPUT, + 'headercontent' => $PAGE->activityheader->export_for_template($renderer), 'hasfakeblocks' => $hasfakeblocks, 'fakeblocks' => $fakeblockshtml, ]; diff --git a/theme/boost/templates/embedded.mustache b/theme/boost/templates/embedded.mustache index a9a419f03e9..ab390c5a0a0 100644 --- a/theme/boost/templates/embedded.mustache +++ b/theme/boost/templates/embedded.mustache @@ -61,6 +61,9 @@ {{/hasfakeblocks}}
+ {{#headercontent}} + {{> core/activity_header }} + {{/headercontent}} {{{ output.main_content }}}