1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,40 @@ |
1 |
+<div class="<?= $this->level ?> <?php if ($this->level == "level_1"): ?>gx-0 flex-nowrap justify-content-between align-items-center row<?php endif; ?>"> |
|
2 |
+ <?php foreach ($this->items as $item) : ?> |
|
3 |
+ <?php if (strpos($item['class'], 'first') !== false && $this->level == "level_1"): ?> |
|
4 |
+ <div class="col col-sm d-none d-lg-block text-lg-end left-col"> |
|
5 |
+ <?php endif; ?> |
|
6 |
+ <?php if (strpos($item['class'], 'logo') !== false): ?> |
|
7 |
+ </div> |
|
8 |
+ <div class="col col-sm-auto logo text-center"> |
|
9 |
+ <div class="banner"> |
|
10 |
+ <a href="/"> |
|
11 |
+ <img class="hide-home" src="/files/base/layout/img/logo.png"> |
|
12 |
+ <img class="show-home" src="/files/base/layout/img/logo_footer.png"> |
|
13 |
+ </a> |
|
14 |
+ </div> |
|
15 |
+ </div> |
|
16 |
+ <div class="col col-sm d-none d-lg-block text-lg-start right-col"> |
|
17 |
+ <?php else: ?> |
|
18 |
+ <?php if ($item['isActive']) : ?> |
|
19 |
+ <div class="nav-link <?= $item['class'] ?>"> |
|
20 |
+ <a href="<?= $item['href'] ?: './' ?>" |
|
21 |
+ class="<?= $item['class'] ?>" <?php if (!empty($item['subitems'])) : ?> aria-haspopup="true" <?php endif; ?>> |
|
22 |
+ <span><?= $item['link'] ?></span> |
|
23 |
+ </a><?= $item['subitems'] ?? '' ?></div> |
|
24 |
+ <?php else : ?> |
|
25 |
+ <div class="nav-link <?php if ($item['class']) : ?><?= $item['class'] ?><?php endif; ?>"> |
|
26 |
+ <a href="<?= $item['href'] ?: './' ?>" |
|
27 |
+ 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; ?>> |
|
28 |
+ <span><?= $item['link'] ?></span> |
|
29 |
+ </a><?= $item['subitems'] ?? '' ?></div> |
|
30 |
+ <?php endif; ?> |
|
31 |
+ <?php endif; ?> |
|
32 |
+ <?php if (strpos($item['class'], 'last') !== false && $this->level == "level_1"): ?> |
|
33 |
+ |
|
34 |
+ <div class="nav-link"> |
|
35 |
+ <a class="offCanvasBasketOpener" href="#offCanvasBasket"><i class="fal fa-shopping-cart"></i></a> |
|
36 |
+ </div> |
|
37 |
+ </div> |
|
38 |
+ <?php endif; ?> |
|
39 |
+ <?php endforeach; ?> |
|
40 |
+</div> |
|
0 | 41 |
\ No newline at end of file |