MDL-73173 core_my: Confusing 'Content' region.

This commit is contained in:
Gareth Barnard 2021-11-26 17:50:56 +00:00
parent 51149a78cc
commit 00f59c226e
No known key found for this signature in database
GPG Key ID: B3F86F2CCEC3E475
4 changed files with 3 additions and 5 deletions

View File

@ -54,6 +54,7 @@ $PAGE->set_pagelayout('mycourses');
$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_pagetype('my-index');
$PAGE->blocks->add_region('content');
$PAGE->set_subpage($currentpage->id);
$PAGE->set_title(get_string('mycourses'));
$PAGE->set_heading(get_string('mycourses'));

View File

@ -81,8 +81,7 @@ $THEME->layouts = [
// My courses page.
'mycourses' => array(
'file' => 'columns2.php',
'regions' => array('content'),
'defaultregion' => 'content',
'regions' => array()
),
// My dashboard page.
'mydashboard' => array(

View File

@ -49,7 +49,6 @@ $string['rawscss_desc'] = 'Use this field to provide SCSS or CSS code which will
$string['rawscsspre'] = 'Raw initial SCSS';
$string['rawscsspre_desc'] = 'In this field you can provide initialising SCSS code, it will be injected before everything else. Most of the time you will use this setting to define variables.';
$string['region-side-pre'] = 'Right';
$string['region-content'] = 'Content';
$string['showfooter'] = 'Show footer';
$string['privacy:metadata:preference:draweropennav'] = 'The user\'s preference for hiding or showing the drawer menu navigation.';
$string['privacy:drawernavclosed'] = 'The current preference for the navigation drawer is closed.';

View File

@ -75,8 +75,7 @@ $THEME->layouts = [
// My courses page.
'mycourses' => array(
'file' => 'columns.php',
'regions' => array('content'),
'defaultregion' => 'content',
'regions' => array()
),
// My dashboard page.
'mydashboard' => array(