Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+<ul class="<?= $this->level ?>">
2
+  <?php foreach ($this->items as $item) : ?>
3
+    <?php if ($item['isActive']) : ?>
4
+      <li class="<?= $item['class'] ?>"><a href="<?= $item['href'] ?: './' ?>" class="<?= $item['class'] ?>" <?php if (!empty($item['subitems'])) : ?> aria-haspopup="true" <?php endif; ?>><span><?= $item['link'] ?></span></a><?= $item['subitems'] ?? '' ?></li>
5
+    <?php else : ?>
6
+      <li<?php if ($item['class']) : ?> class="<?= $item['class'] ?>" <?php endif; ?>><a href="<?= $item['href'] ?: './' ?>" title="<?= $item['pageTitle'] ?: $item['title'] ?>" <?php if ($item['class']) : ?> class="<?= $item['class'] ?>" <?php endif; ?><?php if ('' !== $item['accesskey']) : ?> accesskey="<?= $item['accesskey'] ?>" <?php endif; ?><?php if ($item['tabindex']) : ?> tabindex="<?= $item['tabindex'] ?>" <?php endif; ?><?= $item['target'] ?><?= $item['rel'] ?><?php if (!empty($item['subitems'])) : ?> aria-haspopup="true" <?php endif; ?>><span><?= $item['link'] ?></span></a><?= $item['subitems'] ?? '' ?></li>
7
+      <?php endif; ?>
8
+    <?php endforeach; ?>
9
+</ul>
0 10
\ No newline at end of file