From dc3337b273b4785b670d75174d2570f3e8c0b22f Mon Sep 17 00:00:00 2001 From: Amy Groshek Date: Thu, 24 Jan 2013 16:15:12 -0600 Subject: [PATCH] MDL-37674 - modify html_attributes() to add .no-header class when header will not be rendered --- blocks/moodleblock.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 9d9b289ffd0..461baf15972 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -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'; }