When in editing mode, add "editing" class to the body. bug 2781
This commit is contained in:
@@ -1663,6 +1663,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $meta=
|
||||
$pageclass .= ' course-'.SITEID;
|
||||
}
|
||||
|
||||
if (!empty($USER->editing)) {
|
||||
$pageclass .= ' editing';
|
||||
}
|
||||
|
||||
$bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"';
|
||||
|
||||
include ($CFG->themedir. $CFG->theme .'/header.html');
|
||||
|
||||
Reference in New Issue
Block a user