Skip to content
Snippets Groups Projects
Commit 4b32a01d authored by Robert Lange's avatar Robert Lange
Browse files

refs #20755 [de_105] transfer aria-expanded after loading for Sidefacets from finc SideFacets

parent ec431a3b
Branches issue/20755
Tags instance/de_105/alpha/20755
1 merge request!3refs #20945 [de_105] w3c validation - syntax fixes
......@@ -54,7 +54,8 @@ if ($hierarchicalFacets) {
<?php foreach ($sideFacetSet as $title => $cluster): ?>
<div class="facet-group" id="side-panel-<?=$this->escapeHtmlAttr($title)?>">
<?php /* use 'a' instead of 'div' below! Fix this in all instance branches to avoid validation error 'href not allowed on div'; #9416, CK */ ?>
<a class="title<?php if (in_array($title, $collapsedFacets)): ?> collapsed<?php endif ?>" data-toggle="collapse" href="#side-collapse-<?=$this->escapeHtmlAttr($title)?>">
<a <?php if (in_array($title, $collapsedFacets)): ?>class="title collapsed" aria-expanded="false"<?php else: ?>class="title" aria-expanded="true"<?php endif ?>
data-toggle="collapse" href="#side-collapse-<?=$this->escapeHtmlAttr($title)?>">
<?=$this->transEsc($cluster['label'])?>
</a>
<ul id="side-collapse-<?=$this->escapeHtmlAttr($title)?>" class="collapse<?php if (!in_array($title, $collapsedFacets)): ?> in<?php endif ?>">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment