mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-75844 moodle_page: add a modname to body tag.
This commit is contained in:
parent
8f492a836a
commit
94c2a52528
@ -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)) {
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user