mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 03:14:20 +02:00
Merge branch 'wip-MDL-37674-m26' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
d5b076a2ca
@ -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