From e299f862a68e20d563fa753ed14d3f6fc3f4b184 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 21 Mar 2005 08:26:14 +0000 Subject: [PATCH] When in editing mode, add "editing" class to the body. bug 2781 --- lib/weblib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index f5252f6495d..0e8c745ae3c 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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');