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