Skip to content

Commit

Permalink
refactor: improve active filters template
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Bammes <[email protected]>
  • Loading branch information
zhyian and tyrann0us authored May 23, 2024
1 parent e5b000a commit 41dcd94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/search/filter/active-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
'removeAllUrl' => $removeAllUrl,
] = $data;

$class = !$activeFilters ? ' hidden' : '';
$class = !$activeFilters ? 'hidden' : '';

?>

<div id="fau_applied_filters" class="c-active-search-filters<?= esc_attr($class) ?>">
<div id="fau_applied_filters" class="c-active-search-filters <?= esc_attr($class) ?>">
<nav class="c-active-search-filters__list">
<?php foreach ($activeFilters as $filter) : ?>
<a
Expand Down

0 comments on commit 41dcd94

Please sign in to comment.