mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-37674 - modify html_attributes() to add .no-header class when header will not be rendered
This commit is contained in:
parent
838d78a9ff
commit
dc3337b273
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user