MDL-37674 - modify html_attributes() to add .no-header class when header will not be rendered

This commit is contained in:
Amy Groshek 2013-01-24 16:15:12 -06:00 committed by Sam Hemelryk
parent 838d78a9ff
commit dc3337b273

View File

@ -416,6 +416,9 @@ class block_base {
'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';
}