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,66 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_advantages.min.css|static';
4
+}
5
+?>
6
+
7
+
8
+<div <?php echo $this->cssID; ?> class="content--element <?php echo $this->class; ?>">
9
+    <div class="ce--inner container">
10
+        <?php if ($this->headline || $this->subline || $this->topline) : ?>
11
+        <div class="ce--headline"
12
+             data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
13
+            <?php if ($this->topline) : ?>
14
+                <span class="ce--topline"><?php echo $this->topline; ?></span>
15
+            <?php endif; ?>
16
+            <?php if ($this->headline) : ?>
17
+            <<?php echo($this->hl); ?>>
18
+            <?php echo($this->headline); ?>
19
+        </<?php echo($this->hl); ?>>
20
+    <?php endif; ?>
21
+        <?php if ($this->subline) : ?>
22
+            <span class="ce--subline"><?php echo $this->subline; ?></span>
23
+        <?php endif; ?>
24
+    </div>
25
+    <?php endif; ?>
26
+    <?php if ($this->boxes) : ?>
27
+    <div class="row">
28
+        <?php foreach ($this->boxes as $box) : ?>
29
+        <div class="<?php if ($box->column_width) : ?><?php echo $box->column_width; ?><?php else : ?>col-12 col-md-6 col-lg-4<?php endif; ?>">
30
+            <div class="advantages--box"
31
+                 data-aos="<?php if ($box->animation_type) : ?><?php echo $box->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
32
+                <?php if ($box->ce_headline) : ?>
33
+                <div class="advantages--headline">
34
+                    <?php if (!$box->onlystyle) : ?>
35
+                    <<?php echo $box->headline_type; ?>>
36
+                    <?php echo $box->ce_headline; ?>
37
+                </<?php echo $box->headline_type; ?>>
38
+            <?php if ($box->ce_subline) : ?>
39
+                <span class="ce--subline advantages--subline">
40
+                                                <?php echo $box->ce_subline; ?>
41
+                                            </span>
42
+            <?php endif; ?>
43
+            <?php else : ?>
44
+                <span class="<?php echo $box->headline_type; ?>">
45
+                                            <?php echo $box->ce_headline; ?>
46
+                                        </span>
47
+                <?php if ($box->ce_subline) : ?>
48
+                    <span class="ce--subline advantages--subline">
49
+                                                <?php echo $box->ce_subline; ?>
50
+                                            </span>
51
+                <?php endif; ?>
52
+            <?php endif; ?>
53
+            </div>
54
+            <?php endif; ?>
55
+            <?php if ($box->text) : ?>
56
+                <div class="advantages--text">
57
+                    <?php echo $box->text; ?>
58
+                </div>
59
+            <?php endif; ?>
60
+        </div>
61
+    </div>
62
+<?php endforeach ?>
63
+</div>
64
+<?php endif; ?>
65
+</div>
66
+</div>
0 67
\ No newline at end of file