Nofu/template/default/nav.php
2024-06-14 17:20:01 +02:00

13 lines
No EOL
645 B
PHP

<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>