Permalink
Browse files

MDL-37674 - modify html_attributes() to add .no-header class when hea…

…der will not be rendered
  • Loading branch information...
1 parent 838d78a commit dc3337b273b4785b670d75174d2570f3e8c0b22f @amygroshek amygroshek committed with Sam Hemelryk Jan 24, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 blocks/moodleblock.class.php
@@ -416,6 +416,9 @@ function html_attributes() {
'class' => 'block_' . $this->name(). ' block',
'role' => $this->get_aria_role()
);
+ if ($this->hide_header()) {
+ $attributes['class'] .= ' no-header';
+ }
if ($this->instance_can_be_docked() && get_user_preferences('docked_block_instance_'.$this->instance->id, 0)) {
$attributes['class'] .= ' dock_on_load';
}

0 comments on commit dc3337b

Please sign in to comment.