Merge branch 'MDL-74602-400' of https://github.com/snake/moodle into MOODLE_400_STABLE

This commit is contained in:
Ilya Tregubov
2022-05-05 07:46:55 +06:00
6 changed files with 11 additions and 1 deletions
+2
View File
@@ -4756,6 +4756,8 @@ class assign {
// Need submit permission to submit an assignment.
$this->require_view_grades();
$PAGE->activityheader->disable();
$PAGE->set_pagelayout('embedded');
$courseshortname = $this->get_context()->get_course_context()->get_context_name(false, true);
+2 -1
View File
@@ -54,6 +54,7 @@ if ($chapterid) {
$PAGE->set_url('/mod/book/print.php', array('id' => $id, 'chapterid' => $chapterid));
$PAGE->activityheader->disable();
$PAGE->set_pagelayout("embedded");
unset($id);
@@ -93,4 +94,4 @@ if ($chapter) {
echo $renderer->render($page);
// Finish page output.
echo $OUTPUT->footer();
echo $OUTPUT->footer();
+1
View File
@@ -84,6 +84,7 @@ $PAGE->requires->js_init_call('M.mod_chat_ajax.init', array($modulecfg), false,
$PAGE->set_title(get_string('modulename', 'chat').": $courseshortname: ".format_string($chat->name, true)."$groupname");
$PAGE->add_body_class('yui-skin-sam');
$PAGE->activityheader->disable();
$PAGE->set_pagelayout('embedded');
if ( $theme != 'course_theme') {
$PAGE->requires->css('/mod/chat/gui_ajax/theme/'.$theme.'/chat.css');
+1
View File
@@ -2261,6 +2261,7 @@ class page_wiki_prettyview extends page_wiki {
function __construct($wiki, $subwiki, $cm) {
global $PAGE;
$PAGE->set_pagelayout('embedded');
$PAGE->activityheader->disable();
parent::__construct($wiki, $subwiki, $cm);
}
+2
View File
@@ -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,
];
+3
View File
@@ -61,6 +61,9 @@
</section>
{{/hasfakeblocks}}
<section class="embedded-main">
{{#headercontent}}
{{> core/activity_header }}
{{/headercontent}}
{{{ output.main_content }}}
</section>
</div>