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,68 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_boxenfeld.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 ">
10
+        <?php if ($this->headline || $this->subline || $this->topline) : ?>
11
+        <div class="ce--headline container"
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
+    <div class="ce--boxenfeld ">
27
+        <?php foreach ($this->box as $b) : ?>
28
+        <div class="boxes--outer"
29
+             <?php if ($b->versatz && (strpos($b->versatz, '-') !== false)) : ?>style="margin-top: <?php echo str_replace("-", "", $b->versatz); ?>px" <?php endif; ?>>
30
+            <div class="row g-0 g-lg-2 align-items-center <?php if ($b->reverse) : ?>flex-row-reverse <?php endif; ?>"
31
+                 style="<?php if ($b->versatz && (strpos($b->versatz, '-') === false)) : ?>margin-bottom: <?php echo $b->versatz*1.5; ?>px;<?php endif; ?>">
32
+                <?php if ($b->image): ?>
33
+                    <div class="col-12 col-lg-6">
34
+                        <img class="box--image"
35
+                             data-aos="<?php if ($b->animation_type != "") : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
36
+                             src="<?= Image::get(FilesModel::findByUuid($b->image)->path, null, null, null); ?>">
37
+                    </div>
38
+                <?php endif; ?>
39
+                <?php if ($b->headline || $b->content || $b->button_url): ?>
40
+                    <div class="col-12 <?php if ($b->image): ?>col-lg-6<?php endif; ?>">
41
+                        <div class="box--content half-container"
42
+                             data-aos="<?php if ($b->animation_type != "") : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>"
43
+                             <?php if ($b->versatz) : ?>style="position: relative; top: <?php echo $b->versatz; ?>px" <?php endif; ?>>
44
+                            <?php if ($b->headline) : ?>
45
+                            <div class="box--headline">
46
+                                <<?php echo $b->headline_type; ?> >
47
+                                <?php echo $b->headline; ?>
48
+                            </<?php echo $b->headline_type; ?>>
49
+                        </div>
50
+                        <?php endif; ?>
51
+                        <?php if ($b->content) : ?>
52
+                            <div class="box--text">
53
+                                <?php echo $b->content; ?>
54
+                            </div>
55
+                        <?php endif; ?>
56
+                        <?php if ($b->button_url) : ?>
57
+                            <div class="box--button">
58
+                                <a class="btn btn-primary"
59
+                                   href="<?php echo $b->button_url; ?>"><?php echo $b->button_text; ?></a>
60
+                            </div>
61
+                        <?php endif; ?>
62
+                    </div>
63
+                <?php endif; ?>
64
+            </div>
65
+        </div>
66
+    </div>
67
+<?php endforeach; ?>
68
+</div></div></div>
0 69
\ No newline at end of file