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

This commit is contained in:
hieuvu 2022-09-29 14:16:06 +07:00
parent 8f492a836a
commit 94c2a52528
2 changed files with 2 additions and 0 deletions

View File

@ -1937,6 +1937,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)) {

View File

@ -5,6 +5,7 @@ information provided here is intended especially for theme designer.
* The function core_course_renderer::course_modchooser() has been finally deprecated and can not be used anymore.
Please use core_course_renderer::course_activitychooser() instead.
* $OUTPUT->favicon() now returns the URL of the configurable favicon if present.
* The body tag include a class with module name specific for each activity E.g.: cm-type-page
=== 4.0 ===
* A new theme config 'removedprimarynavitems' allows a theme to customise primary navigation by specifying the list of items to remove.