FIX Passing missing taxonomy-tag--parent to metiers

This commit is contained in:
Nonimart 2025-06-13 16:02:41 +02:00
parent e16a195f03
commit f08f6d1aab

View File

@ -22,7 +22,7 @@ $hasEmptyTaxos = (empty($elementsBatimentsTerms) && empty($metiersTerms)) ? 'car
</div>
<div class="taxonomy-tags card-taxonomies__taxonomy-tags">
<?php foreach ($elementsBatimentsTerms as $key => $term) : ?>
<span class="taxonomy-tag"><?php echo $term->name; ?></span>
<span class="taxonomy-tag taxonomy-tag--<?php echo $term->parent === 0 ? 'parent' : 'child'; ?>"><?php echo $term->name; ?></span>
<?php endforeach; ?>
</div>
</div>