Merge branch 'MDL-74602-400' of https://github.com/snake/moodle into MOODLE_400_STABLE
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
];
|
||||
|
||||
@@ -61,6 +61,9 @@
|
||||
</section>
|
||||
{{/hasfakeblocks}}
|
||||
<section class="embedded-main">
|
||||
{{#headercontent}}
|
||||
{{> core/activity_header }}
|
||||
{{/headercontent}}
|
||||
{{{ output.main_content }}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user