2017-03-30 16:27:22 +02:00
|
|
|
<?php foreach ($filterlists as $filterlist) : ?>
|
2017-04-10 13:03:46 +02:00
|
|
|
<div class="ajax-posts__filterlist">
|
2020-07-08 16:53:07 +02:00
|
|
|
<h2><?= $filterlist['name'] ?></h2>
|
2017-04-10 13:03:46 +02:00
|
|
|
<ul>
|
|
|
|
<?php foreach ($filterlist['filters'] as $filter) : ?>
|
|
|
|
<li>
|
|
|
|
<a href="<?= get_term_link( $filter, $filter->taxonomy ); ?>" class="ajax-posts__filter" data-filter="<?= $filter->taxonomy; ?>" data-term="<?= $filter->slug; ?>">
|
|
|
|
<?= $filter->name; ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
2020-07-08 15:37:57 +02:00
|
|
|
<?php if (count($filterlist['filters']) >= 1): ?>
|
2017-04-10 13:03:46 +02:00
|
|
|
<div class="ajax-posts__filter-toggle">
|
2020-12-18 19:16:40 +01:00
|
|
|
<a href="#" class="js-collapse-filterlist ajax-posts__filter-toggle-show">Mostra altro</a>
|
|
|
|
<a href="#" class="js-collapse-filterlist ajax-posts__filter-toggle-hide">Mostra meno</a>
|
2017-04-10 13:03:46 +02:00
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2017-03-30 16:27:22 +02:00
|
|
|
<?php endforeach; ?>
|