From 2f74763913d7bf38fbf4d36deb95d99c0fe862b0 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Thu, 15 May 2008 09:50:39 +0000 Subject: [PATCH] MDL-14815: Added CSS class to blocks when they have editing controls (for themeability) --- blocks/moodleblock.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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' :'') + ); } /** -- 2.39.5