Skip to content

Commit

Permalink
MDL-42739 theme_anomaly: Updated renderers.php to fix dock not workin…
Browse files Browse the repository at this point in the history
…g in Anomaly theme.
  • Loading branch information
Mary Evans committed Nov 6, 2013
1 parent d214057 commit 4731319
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion theme/anomaly/renderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,25 @@ function block(block_contents $bc, $region) {
if (empty($bc->blockinstanceid) || !strip_tags($bc->title)) {
$bc->collapsible = block_contents::NOT_HIDEABLE;
}
if (!empty($bc->blockinstanceid)) {
$bc->attributes['data-instanceid'] = $bc->blockinstanceid;
}
$skiptitle = strip_tags($bc->title);
if ($bc->blockinstanceid && !empty($skiptitle)) {
$bc->attributes['aria-labelledby'] = 'instance-'.$bc->blockinstanceid.'-header';
} else if (!empty($bc->arialabel)) {
$bc->attributes['aria-label'] = $bc->arialabel;
}
if ($bc->dockable) {
$bc->attributes['data-dockable'] = 1;
}
if ($bc->collapsible == block_contents::HIDDEN) {
$bc->add_class('hidden');
}
if (!empty($bc->controls)) {
$bc->add_class('block_with_controls');
}

$skiptitle = strip_tags($bc->title);
if (empty($skiptitle)) {
$output = '';
$skipdest = '';
Expand Down

0 comments on commit 4731319

Please sign in to comment.