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,85 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_sitemap.min.css|static';
4
+    $GLOBALS['TL_JAVASCRIPT'][] = 'files/base/layout/js/_elements/ce_rsce_sitemap.js|static';
5
+}
6
+?>
7
+
8
+<div <?php echo $this->cssID; ?> class="content--element <?php echo $this->class; ?>">
9
+    <div class="ce--inner">
10
+
11
+
12
+        <?php if ($this->lvl1): ?>
13
+            <div class="ce--sitemap">
14
+                <div class="row gx-0">
15
+                    <?php foreach ($this->lvl1 as $x => $lvl1_element) : ?>
16
+                        <div class="<?= $lvl1_element->column_width; ?>"
17
+                             data-aos="<?php if ($lvl1_element->animation_type) : ?><?php echo $lvl1_element->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
18
+                            <div class="sitemap-column">
19
+                                <div class="mm_level_1">
20
+                                    <?php if ($lvl1_element->link_lvl1): ?>
21
+                                    <a href="<?= $lvl1_element->link_lvl1; ?>">
22
+                                        <?php else: ?>
23
+                                        <span>
24
+                                            <?php endif; ?>
25
+                                            <span><?= $lvl1_element->text_lvl1; ?></span>
26
+
27
+                                            <?php if ($lvl1_element->image_lvl1): ?>
28
+                                                <span class="sitemap--image-container" style="">
29
+                                                    <img class="lazy"
30
+                                                         data-src="<?= Image::get(FilesModel::findByUuid($lvl1_element->image_lvl1)->path, null, null, null); ?>">
31
+                                                </span>
32
+                                            <?php endif; ?>
33
+                                            <?php if ($lvl1_element->link_lvl1): ?>
34
+                                    </a>
35
+                                <?php else: ?>
36
+                                    </span>
37
+                                <?php endif; ?>
38
+
39
+                                    <?php if ($lvl1_element->lvl2): ?>
40
+                                        <div class="mm_level_2">
41
+                                            <?php foreach ($lvl1_element->lvl2 as $y => $lvl2_element) : ?>
42
+                                                <div>
43
+                                                    <?php if ($lvl2_element->link_lvl2): ?>
44
+                                                    <a href="<?= $lvl2_element->link_lvl2; ?>">
45
+                                                        <?php else: ?>
46
+                                                        <span>
47
+                                                            <?php endif; ?>
48
+                                                            <span><?= $lvl2_element->text_lvl2; ?></span>
49
+                                                            <?php if ($lvl2_element->link_lvl2): ?>
50
+                                                    </a>
51
+                                                <?php else: ?>
52
+                                                    </span>
53
+                                                <?php endif; ?>
54
+                                                    <?php if ($lvl2_element->lvl3): ?>
55
+                                                        <div class="mm_level_3">
56
+                                                            <?php foreach ($lvl2_element->lvl3 as $z => $lvl3_element) : ?>
57
+                                                                <div>
58
+                                                                    <?php if ($lvl3_element->link_lvl3): ?>
59
+                                                                    <a href="<?= $lvl3_element->link_lvl3; ?>">
60
+                                                                        <?php else: ?>
61
+                                                                        <span>
62
+                                                                            <?php endif; ?>
63
+                                                                            <span><?= $lvl3_element->text_lvl3; ?></span>
64
+                                                                            <?php if ($lvl3_element->link_lvl3): ?>
65
+                                                                    </a>
66
+                                                                <?php else: ?>
67
+                                                                    </span>
68
+                                                                <?php endif; ?>
69
+                                                                </div>
70
+                                                            <?php endforeach; ?>
71
+                                                        </div>
72
+                                                    <?php endif; ?>
73
+                                                </div>
74
+                                            <?php endforeach; ?>
75
+                                        </div>
76
+                                    <?php endif; ?>
77
+                                </div>
78
+                            </div>
79
+                        </div>
80
+                    <?php endforeach ?>
81
+                </div>
82
+            </div>
83
+        <?php endif; ?>
84
+    </div>
85
+</div>
0 86
\ No newline at end of file