1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,63 @@ |
1 |
+<?php |
|
2 |
+if (TL_MODE == 'FE') { |
|
3 |
+ $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_onepagenavi.min.css|static'; |
|
4 |
+ $GLOBALS['TL_JAVASCRIPT'][] = 'files/base/layout/js/_elements/ce_rsce_onepagenavi.js|static'; |
|
5 |
+} |
|
6 |
+?> |
|
7 |
+ |
|
8 |
+<div <?php echo $this->cssID; ?> |
|
9 |
+ class="<?php if ($this->smaller_containers): ?>with-smaller-containers<?php endif; ?> content--element m-0 <?php echo $this->class; ?> <?php if ($this->hide_mobile): ?>d-none d-md-block<?php endif; ?>"> |
|
10 |
+ <div class="ce--inner container"> |
|
11 |
+ <?php if ($this->urls): ?> |
|
12 |
+ <div style="float: right;"> |
|
13 |
+ <div class="ce--onepagenavi d-none" |
|
14 |
+ data-offset="<?php if ($this->offset): ?><?= $this->offset; ?><?php else: ?>300<?php endif; ?>" |
|
15 |
+ data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"> |
|
16 |
+ |
|
17 |
+ <?php if (!$this->hide_mobile): ?> |
|
18 |
+ <div class="onepage-nav--mobile-toggle d-md-none"> |
|
19 |
+ <span style=" |
|
20 |
+ <?php if ($this->background_color): ?>background-color: <?= $this->background_color; ?>;<?php endif; ?> |
|
21 |
+ <?php if ($this->text_color): ?>color: <?= $this->text_color; ?>;<?php endif; ?> |
|
22 |
+ "> |
|
23 |
+ <i class="far fa-chevron-double-left"></i> |
|
24 |
+ </span> |
|
25 |
+ </div> |
|
26 |
+ <?php endif; ?> |
|
27 |
+ |
|
28 |
+ <div class="onepagenavi--wrapper" |
|
29 |
+ |
|
30 |
+ style=" |
|
31 |
+ <?php if ($this->background_color): ?>background-color: <?= $this->background_color; ?>;<?php endif; ?> |
|
32 |
+ <?php if ($this->text_color): ?>color: <?= $this->text_color; ?>;<?php endif; ?> |
|
33 |
+ " |
|
34 |
+ |
|
35 |
+ > |
|
36 |
+ <span class="onepagenavi--headline" |
|
37 |
+ style="<?php if ($this->text_color): ?>color: <?= $this->text_color; ?>;<?php endif; ?>"> |
|
38 |
+ <?= $this->headline; ?> |
|
39 |
+ </span> |
|
40 |
+ |
|
41 |
+ <ul> |
|
42 |
+ <?php foreach ($this->urls as $x => $e) : ?> |
|
43 |
+ <li> |
|
44 |
+ <a style="<?php if ($this->text_color): ?>color: <?= $this->text_color; ?>;<?php endif; ?>" |
|
45 |
+ href="<?= $e->link; ?>"> |
|
46 |
+ <span><?= $e->text; ?></span> |
|
47 |
+ </a> |
|
48 |
+ </li> |
|
49 |
+ <?php endforeach ?> |
|
50 |
+ </ul> |
|
51 |
+ </div> |
|
52 |
+ <?php if ($this->add_totopbutton): ?> |
|
53 |
+ <span class="scrollToTop"> |
|
54 |
+ <i class="fal fa-angle-up"></i> |
|
55 |
+ </span> |
|
56 |
+ <?php endif; ?> |
|
57 |
+ </div> |
|
58 |
+ |
|
59 |
+ </div> |
|
60 |
+ <?php endif; ?> |
|
61 |
+ |
|
62 |
+ </div> |
|
63 |
+</div> |
|
0 | 64 |
\ No newline at end of file |