From: tjhunt Date: Wed, 6 May 2009 09:28:06 +0000 (+0000) Subject: moodle_page: MDL-12212 add a couple more useful classes to body X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b80856bd6ee5859a89dc7c6429048060f74272f6;p=moodle.git moodle_page: MDL-12212 add a couple more useful classes to body --- 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) {