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,89 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_coloredrows.min.css|static';
4
+    $GLOBALS['TL_JAVASCRIPT'][] = 'files/base/layout/js/_elements/ce_rsce_coloredrows.js|static';
5
+}
6
+?>
7
+
8
+
9
+<div <?php echo $this->cssID; ?> class="content--element <?php echo $this->class; ?>">
10
+    <div class="ce--inner">
11
+        <?php if ($this->headline || $this->subline || $this->topline) : ?>
12
+        <div class="ce--headline"
13
+             data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
14
+            <div class="container">
15
+                <?php if ($this->topline) : ?>
16
+                    <span class="ce--topline"><?php echo $this->topline; ?></span>
17
+                <?php endif; ?>
18
+                <?php if ($this->headline) : ?>
19
+                <<?php echo($this->hl); ?>>
20
+                <?php echo($this->headline); ?>
21
+            </<?php echo($this->hl); ?>>
22
+            <?php endif; ?>
23
+            <?php if ($this->subline) : ?>
24
+                <span class=" ce--subline"><?php echo $this->subline; ?></span>
25
+            <?php endif; ?>
26
+        </div>
27
+    </div>
28
+    <?php endif; ?>
29
+    <?php foreach ($this->rows as $row) : ?>
30
+    <div class="ce--coloredrows">
31
+        <?php if ($row->headline) : ?>
32
+        <div class="headline--wrapper color-<?php echo $row->headline_color; ?>">
33
+            <div class="container">
34
+                <div class="row align-items-center"
35
+                     data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
36
+                    <?php if ($row->headline_image) : ?>
37
+                        <div class="col-auto">
38
+                            <div class="image--wrapper">
39
+                                <img class="lazy"
40
+                                     data-src="<?= Image::get(FilesModel::findByUuid($row->headline_image)->path, null, null, null); ?>">
41
+                            </div>
42
+                        </div>
43
+                    <?php endif; ?>
44
+                    <div class="col">
45
+                        <div class="headline">
46
+                            <?php if (!$row->onlystyle) : ?>
47
+                            <<?php echo $row->headline_type; ?> <?php if ($row->headline_image) : ?>class="mb-0" <?php endif; ?>
48
+                            >
49
+                            <?php echo $row->headline; ?>
50
+                        </<?php echo $row->headline_type; ?>>
51
+                        <?php else : ?>
52
+                            <span class="<?php if ($row->headline_image) : ?>mb-0<?php endif; ?> <?php echo $row->headline_type; ?>">
53
+                                                <?php echo $row->headline; ?>
54
+                                            </span>
55
+                        <?php endif; ?>
56
+                    </div>
57
+                </div>
58
+            </div>
59
+        </div>
60
+    </div>
61
+<?php endif; ?>
62
+    <div class="colored--row <?php if ($row->headline_image) : ?>has--image<?php endif; ?> <?php if ($row->colored_row) : ?>is--colored<?php endif; ?>">
63
+        <div class="container">
64
+            <div class="row">
65
+                <?php foreach ($row->cols as $col) : ?>
66
+                    <div class="col-6 col-lg-3">
67
+                        <div class="col--inner"
68
+                             data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
69
+                            <div class="cr--headline">
70
+                                <?php echo $col->headline; ?>
71
+                            </div>
72
+                            <div class="cr--image">
73
+                                <img class="lazy"
74
+                                     data-src="<?= Image::get(FilesModel::findByUuid($col->image)->path, null, null, null); ?>">
75
+                            </div>
76
+                            <div class="cr--content">
77
+                                <span class="count"><?php echo $col->text_1; ?></span>
78
+                                <span><?php echo $col->text_2; ?></span>
79
+                            </div>
80
+                        </div>
81
+                    </div>
82
+                <?php endforeach; ?>
83
+            </div>
84
+        </div>
85
+    </div>
86
+</div>
87
+<?php endforeach; ?>
88
+</div>
89
+</div>
0 90
\ No newline at end of file