MDL-75917 moodle_page: add a modname to body tag.
This is a backport of MDL-75844
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user