Skip to content
Permalink
Browse files

MDL-14815: Added CSS class to blocks when they have editing controls …

…(for themeability)
  • Loading branch information...
sam_marshall
sam_marshall committed May 15, 2008
1 parent 3c0b6b1 commit 2f74763913d7bf38fbf4d36deb95d99c0fe862b0
Showing with 5 additions and 1 deletion.
  1. +5 −1 blocks/moodleblock.class.php
@@ -634,7 +634,11 @@ function hide_header() {
* @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' :'')
);
}
/**

0 comments on commit 2f74763

Please sign in to comment.
You can’t perform that action at this time.