<section class="section">
    <div class="wrap">
        <h1 class="page-title"><?= h(t('public_site.animals')) ?></h1>
        <div class="filters"><a class="button <?= $selectedSpecies === '' ? '' : 'secondary' ?>"
                href="<?= h($siteUrl('animals')) ?>"><?= h(t('public_site.all_species')) ?></a><?php foreach ($publicSpecies as $s): ?><a
                class="button <?= $selectedSpecies === $s['code'] ? '' : 'secondary' ?>"
                href="<?= h($siteUrl('animals', ['espece' => $s['code']])) ?>"><?= h(($s['icon'] ?: '🐾') . ' ' . $s['name'] . ' (' . $s['count'] . ')') ?></a><?php endforeach; ?>
        </div><?php require __DIR__ . '/_public_animal_cards.php'; ?>
    </div>
</section>
