diff --git a/lib/pagelib.php b/lib/pagelib.php index 189f0c723d0..73831ac2e74 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -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)) { diff --git a/theme/upgrade.txt b/theme/upgrade.txt index d4e6038ff70..36c73dbbf03 100644 --- a/theme/upgrade.txt +++ b/theme/upgrade.txt @@ -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'