From b80856bd6ee5859a89dc7c6429048060f74272f6 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 6 May 2009 09:28:06 +0000 Subject: [PATCH] moodle_page: MDL-12212 add a couple more useful classes to body --- lib/pagelib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pagelib.php b/lib/pagelib.php index 134d746be0..3d4c189b2d 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -635,6 +635,12 @@ class moodle_page { $this->add_body_class('cmid-' . $this->_cm->id); } + $this->add_body_class('context-' . $this->context->id); + + if (!empty($this->_cm)) { + $this->add_body_class('cmid-' . $this->_cm->id); + } + if ($CFG->allowcategorythemes) { $this->ensure_category_loaded(); foreach ($this->_categories as $catid => $notused) { -- 2.39.5