When in editing mode, add "editing" class to the body. bug 2781

This commit is contained in:
moodler
2005-03-21 08:26:14 +00:00
parent e1f96c2349
commit e299f862a6
+4
View File
@@ -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');