MDL-75917 moodle_page: add a modname to body tag.

This is a backport of MDL-75844
This commit is contained in:
hieuvu
2022-11-04 16:04:02 +07:00
parent dca920d105
commit 001fdb5f29
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1932,6 +1932,7 @@ class moodle_page {
if (!empty($this->_cm)) {
$this->add_body_class('cmid-' . $this->_cm->id);
$this->add_body_class('cm-type-' . $this->_cm->modname);
}
if (!empty($CFG->allowcategorythemes)) {
+1
View File
@@ -5,6 +5,7 @@ information provided here is intended especially for theme designer.
* A new theme config 'removedprimarynavitems' allows a theme to customise primary navigation by specifying the list of items to remove.
* A new theme config 'usescourseindex' allows a theme to specify whether it implements and uses course index.
* A new theme setting 'unaddableblocks' allows admins to define the blocks that won't be displayed in the "Add a block" list.
* The body tag include a class with module name specific for each activity E.g.: cm-type-page
=== 3.11 ===
* The classname 'viewmode-cobmined' in course/management.php has been changed to 'viewmode-combined'