Skip to content

Commit

Permalink
Merge branch 'MDL-68674-main' of https://github.com/lucaboesch/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Feb 28, 2024
2 parents d82ae15 + 8cfb805 commit ae33ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/outputrenderers.php
Expand Up @@ -4228,9 +4228,10 @@ public function blocks($region, $classes = array(), $tag = 'aside', $fakeblockso
'data-droptarget' => '1'
);
if ($this->page->blocks->region_has_content($displayregion, $this)) {
$content = $this->blocks_for_region($displayregion, $fakeblocksonly);
$content = html_writer::tag('h2', get_string('blocks'), ['class' => 'sr-only']) .
$this->blocks_for_region($displayregion, $fakeblocksonly);
} else {
$content = '';
$content = html_writer::tag('h2', get_string('blocks'), ['class' => 'sr-only']);
}
return html_writer::tag($tag, $content, $attributes);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/block.mustache
Expand Up @@ -39,7 +39,7 @@

{{! Block header }}
{{#title}}
<h5 id="instance-{{blockinstanceid}}-header" class="card-title d-inline">{{{title}}}</h5>
<h3 id="instance-{{blockinstanceid}}-header" class="h5 card-title d-inline">{{{title}}}</h3>
{{/title}}

{{#hascontrols}}
Expand Down

0 comments on commit ae33ac0

Please sign in to comment.