MDL-14815: Added CSS class to blocks when they have editing controls (for themeability)

This commit is contained in:
sam_marshall
2008-05-15 09:50:39 +00:00
parent 3c0b6b1610
commit 2f74763913
+5 -1
View File
@@ -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' :'')
);
}
/**