From: sam_marshall Date: Thu, 15 May 2008 09:50:39 +0000 (+0000) Subject: MDL-14815: Added CSS class to blocks when they have editing controls (for themeability) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2f74763913d7bf38fbf4d36deb95d99c0fe862b0;p=moodle.git MDL-14815: Added CSS class to blocks when they have editing controls (for themeability) --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 9647b77ba4..0dc65c64ca 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -634,7 +634,11 @@ class block_base { * @todo finish documenting this function */ function html_attributes() { - return array('id' => 'inst'.$this->instance->id, 'class' => 'block_'. $this->name()); + return array( + 'id' => 'inst'.$this->instance->id, + 'class' => 'block_'. $this->name(). + ($this->edit_controls ? ' block_with_controls' :'') + ); } /**