Nofu/template/default/nav.php

13 lines
645 B
PHP
Raw Permalink Normal View History

2024-06-14 17:20:01 +02:00
<nav>
<span>Type d'installation</span>
<?php foreach ($menuData['type'] as $type) :; ?>
<a class="filter <?= $type; ?>" data-filter="<?= $type; ?>" onclick="toggleFilter(this, '<?= $type; ?>')"><img width="20px" height="20px" src="assets/icons/<?= $type; ?>.svg"> <?= $type; ?></a>
<?php endforeach; ?>
</nav>
<nav>
<span>Machine</span>
<?php foreach ($menuData['location'] as $type) :; ?>
<a class="filter <?= $type; ?>" data-filter="<?= $type; ?>" onclick="toggleFilter(this, '<?= $type; ?>')"><img width="20px" height="20px" src="assets/icons/server.svg"> <?= $type; ?></a>
<?php endforeach; ?>
</nav>