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,291 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_twocolimagewall.min.css|static';
4
+}
5
+?>
6
+
7
+
8
+<div <?php echo $this->cssID; ?>
9
+        class="content--element <?php echo $this->class; ?> <?php if ($this->no_padding) : ?>no-spacing<?php endif; ?>">
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); ?>><?php echo($this->headline); ?></<?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
+    </div>
26
+    <?php endif; ?>
27
+    <?php foreach ($this->row as $row) : ?>
28
+
29
+    <?php
30
+    if (!isset($row->size_left)) {
31
+        $row->{"size_left"} = "";
32
+    }
33
+
34
+    if (!isset($row->size_right)) {
35
+        $row->{"size_right"} = "";
36
+    }
37
+    ?>
38
+
39
+
40
+    <div class="ce--imagetextwall--outer <?php if ($row->bottom_spacing) : ?>with-spacing<?php endif; ?> ">
41
+        <div class="ce--imagetextwall  <?php if ($row->boxed_headline) : ?>with-boxed-image<?php endif; ?>  <?php if ($row->alternate_image) : ?>with-code<?php endif; ?> <?php if ($row->alternate_background) : ?>with-custom-bgcolor<?php endif; ?> <?php if ($row->innerpadding && $row->alternate_background) : ?>with-border<?php endif; ?> <?php if ($row->not_as_bg) : ?>not-as-bg<?php endif; ?> <?php if ($row->image && $row->image_both) : ?>lazy<?php endif; ?>"
42
+             <?php if ($row->image && $row->image_both) : ?>data-bg="<?= Image::get(FilesModel::findByUuid($row->image)->path, $row->size_right[0], $row->size_right[1], $row->size_right[2]); ?>" <?php endif; ?>
43
+             style="
44
+             <?php if ($row->image && $row->image_both) : ?>
45
+                     background-position: center center; background-repeat: no-repeat; background-size: cover;
46
+             <?php endif; ?>
47
+             <?php if ($row->alternate_textcolor) : ?>color:<?php echo $row->alternate_textcolor; ?>;<?php endif; ?><?php if ($row->alternate_background) : ?>background-color:<?php echo $row->alternate_background; ?><?php endif; ?>
48
+                     ">
49
+            <div class="container force-container">
50
+                <div class="row <?php if ($row->video) : ?>align-items-center<?php endif; ?> <?php if ($row->reverse) : ?>reverse-cols<?php endif; ?> <?php if ($row->content_rightcol && !$row->alternate_image) : ?>only-text--right-col<?php endif; ?>">
51
+                    <div class="content--col d-flex align-items-center <?php if ($row->spacing_between) : ?>spacing-between<?php endif; ?> <?php if ($row->alternate_background) : ?>with-bg<?php endif; ?> <?php echo $row->column_width; ?> <?php if ($row->darken_content) : ?>darkened-content<?php endif; ?>"
52
+                         style="<?php if ($row->alternate_background) : ?>background-color:<?php echo $row->alternate_background; ?><?php endif; ?>">
53
+
54
+                        <?php if ($row->ce_headline || $row->content || $row->buttons[0]->link_text != ""): ?>
55
+                        <div class="content-col--inner <?php echo $row->textalign; ?>">
56
+                            <?php if ($row->ce_headline) : ?>
57
+                            <div class="content-col--headline-wrapper"
58
+                                 data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
59
+                                <?php if (!$row->onlystyle) : ?>
60
+                                <<?php echo $row->headline_type; ?> class="content-col--headline">
61
+                                <?php echo $row->ce_headline; ?>
62
+                            </<?php echo $row->headline_type; ?>>
63
+                        <?php if ($row->ce_subline) : ?>
64
+                            <span class="ce--subline content-col--subline"
65
+                                  data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
66
+                                <?php echo $row->ce_subline; ?>
67
+                            </span>
68
+                        <?php endif; ?>
69
+                        <?php else : ?>
70
+                            <span class="<?php echo $row->headline_type; ?> content-col--headline"
71
+                                  data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
72
+                                <?php echo $row->ce_headline; ?>
73
+                            </span>
74
+                            <?php if ($row->ce_subline) : ?>
75
+                                <span class="ce--subline content-col--subline"
76
+                                      data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
77
+                                    <?php echo $row->ce_subline; ?>
78
+                                </span>
79
+                            <?php endif; ?><?php endif; ?>
80
+                        </div>
81
+                    <?php endif; ?>
82
+                        <?php if ($row->content) : ?>
83
+                            <div class="content-col--text"
84
+                                 data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
85
+                                <?php echo $row->content; ?>
86
+                            </div>
87
+                        <?php endif; ?>
88
+                        <?php if ($row->buttons) : ?>
89
+                            <div class="ce--buttons mt-2">
90
+                                <?php foreach ($row->buttons as $b) : ?>
91
+                                    <a <?php if ($b->new_tab): ?>target="_blank"<?php endif; ?>
92
+                                       class="d-inline-block btn <?php if ($b->link_size) : ?><?php echo $b->link_size; ?><?php endif; ?> <?php echo $b->link_type; ?>"
93
+                                       data-aos="<?php if ($b->animation_type) : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
94
+                                       href="<?php echo $b->link_url; ?><?php if ($b->link_betreff) : ?>?subject=<?php echo $b->link_betreff; ?><?php endif; ?>"><?php echo $b->link_text; ?> </a>
95
+                                <?php endforeach ?>
96
+                            </div>
97
+                        <?php endif; ?>
98
+                    </div>
99
+                    <?php endif; ?>
100
+
101
+                    <?php if ($row->image_leftcol || $row->kachel_left_text): ?>
102
+                        <div class="content-col--image"
103
+                             <?php if ($row->image_leftcol): ?>style="background: url(<?= Image::get(FilesModel::findByUuid($row->image_leftcol)->path, $row->size_left[0], $row->size_left[1], $row->size_left[2]); ?>) center center no-repeat; background-size: cover;" <?php endif; ?>></div>
104
+                    <?php endif; ?>
105
+
106
+                    <?php if ($row->kachel_left_text): ?>
107
+                        <div class="kachel-column-width--indicator <?php if ($row->expand_left_kachel): ?>expandable<?php endif; ?>">
108
+                            <div class="column-kachel--wrapper  <?php if ($row->kachel_left_url): ?> with-url<?php endif; ?> <?php echo $row->kachel_left_position; ?>">
109
+                                <div class="column--kachel <?php echo $row->kachel_left_text_position; ?>"
110
+                                     data-aos="<?php if ($row->animation_type_left_kachel) : ?><?php echo $row->animation_type_left_kachel; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
111
+                                     style="
112
+                                     <?php if ($row->kachel_left_background_color): ?>
113
+                                             background-color: <?= $row->kachel_left_background_color;?>;
114
+                            <?php endif; ?>
115
+
116
+                                     <?php if ($row->kachel_left_text_color): ?>
117
+                                             color: <?= $row->kachel_left_text_color;?>;
118
+                            <?php endif; ?>
119
+                                             ">
120
+
121
+                                    <?php if ($row->kachel_left_url): ?>
122
+                                        <a href="<?= $row->kachel_left_url; ?>"></a>
123
+                                    <?php endif; ?>
124
+
125
+                                    <div class="column-kachel--inner <?php if ($row->kachel_left_hover_text || $row->kachel_left_url): ?>with-hover-content<?php endif; ?>">
126
+                                        <span>
127
+                                            <?php echo $row->kachel_left_text; ?>
128
+                                        </span>
129
+
130
+                                        <?php if ($row->kachel_left_hover_text || $row->kachel_left_url): ?>
131
+                                            <div class="kachel-hover--content">
132
+                                                <?php if ($row->kachel_left_hover_text): ?>
133
+                                                    <div class="kachel--long-text">
134
+                                                        <?php echo $row->kachel_left_hover_text; ?>
135
+                                                    </div>
136
+                                                <?php endif; ?>
137
+
138
+                                                <?php if ($row->kachel_left_url): ?>
139
+                                                    <div class="kachel--more-button">
140
+                                                        <a class="btn btn-lg btn-outline-secondary"
141
+                                                           href="<?= $row->kachel_left_url; ?>">
142
+                                                            Mehr Infos
143
+                                                        </a>
144
+                                                    </div>
145
+                                                <?php endif; ?>
146
+                                            </div>
147
+                                        <?php endif; ?>
148
+
149
+                                    </div>
150
+                                </div>
151
+                            </div>
152
+                        </div>
153
+                    <?php endif; ?>
154
+
155
+                </div>
156
+                <?php if (($row->image && !$row->image_both) || $row->alternate_image || $row->content_rightcol || $row->video) : ?>
157
+                <div class="image--col col-12 col-md  <?php if ($row->video) : ?>with-video col-md-6<?php endif; ?>"
158
+                     data-aos="animate__fadeIn">
159
+
160
+                    <?php if ($row->boxed_headline) : ?>
161
+                    <div class="boxed-headline">
162
+                        <div class="headline--wrapper"
163
+                             data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
164
+                            <?php if (!$row->boxed_headline_onlystyle) : ?>
165
+                            <<?php echo $row->boxed_headline_type; ?>>
166
+                            <?php echo $row->boxed_headline; ?>
167
+                        </<?php echo $row->boxed_headline_type; ?>>
168
+                        <?php if ($row->boxed_subheadline) : ?>
169
+                            <span class="ce--subline">
170
+                                <?php echo $row->boxed_subheadline; ?>
171
+                            </span>
172
+                        <?php endif; ?>
173
+                        <?php else : ?>
174
+                            <span class="<?php echo $row->boxed_headline_type; ?>"><?php echo $row->boxed_headline; ?></span>
175
+                            <?php if ($row->boxed_subheadline) : ?>
176
+                                <span class="ce--subline">
177
+                                    <?php echo $row->boxed_subheadline; ?>
178
+                                </span>
179
+                            <?php endif; ?>
180
+                            </span>
181
+                        <?php endif; ?>
182
+                    </div>
183
+                </div>
184
+            <?php endif; ?>
185
+
186
+                <div
187
+                        style="<?php if ($row->alternate_background) : ?>background-color:<?php echo $row->alternate_background; ?>;<?php endif; ?> background-position: center center; background-repeat: no-repeat; background-size: cover;"
188
+                        class=" <?php if ($row->video) : ?>with-video<?php endif; ?> <?php if ($row->alternate_image): ?>with-iframe<?php endif; ?> <?php if (!$row->not_as_bg && !$row->alternate_image) : ?>lazy<?php endif; ?>
189
+
190
+          <?php if (!$row->not_as_bg) : ?>
191
+          image-col--inner
192
+        <?php if ($row->column_width == "col-12 col-md-6 col-lg-5") : ?>
193
+        col-12 col-md-6 col-lg-7
194
+        <?php elseif ($row->column_width == "col-12 col-md-6 col-lg-4") : ?>
195
+        col-12 col-md-6 col-lg-8
196
+        <?php elseif ($row->column_width == "col-12 col-md-6") : ?>
197
+        col-12 col-md-6
198
+        <?php elseif ($row->column_width == "col-12 col-lg-8") : ?>
199
+        col-12 col-lg-4
200
+        <?php elseif ($row->column_width == "col-12 col-lg-9") : ?>
201
+        col-12 col-lg-3
202
+        <?php endif; ?>
203
+        <?php endif;?>
204
+"
205
+                        <?php if (!$row->alternate_image && ($row->image && !$row->image_both) && !$row->not_as_bg) : ?>data-bg="<?= Image::get(FilesModel::findByUuid($row->image)->path, $row->size_right[0], $row->size_right[1], $row->size_right[2]); ?>" <?php endif; ?>>
206
+                    <?php if ($row->not_as_bg) : ?>
207
+                        <div class="image--wrapper">
208
+                            <img class="lazy"
209
+                                 data-src="<?= Image::get(FilesModel::findByUuid($row->image)->path, $row->size_right[0], $row->size_right[1], $row->size_right[2]); ?>">
210
+                        </div>
211
+                    <?php endif; ?>
212
+
213
+
214
+
215
+                    <?php if ($row->alternate_image) : ?><?php echo str_replace("https:", "", str_replace("src", "data-source", html_entity_decode($row->alternate_image))); ?><?php endif; ?>
216
+
217
+
218
+
219
+                    <?php if ($row->video) : ?>
220
+                        <div class="video--wrapper">
221
+                            <video controls data-src="{{file::<?= $row->video ?>}}">
222
+                                <source type="video/mp4" src="{{file::<?= $row->video ?>}}">
223
+                            </video>
224
+                        </div>
225
+                    <?php endif; ?>
226
+
227
+
228
+                </div>
229
+                <?php if ($row->content_rightcol) : ?>
230
+                    <div class="image-col--extra-text"
231
+                         data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
232
+                        <?php echo $row->content_rightcol; ?>
233
+                    </div>
234
+                <?php endif; ?>
235
+
236
+
237
+                <?php if ($row->kachel_right_text): ?>
238
+                    <div class="kachel-column-width--indicator <?php if ($row->expand_right_kachel): ?>expandable<?php endif; ?>">
239
+                        <div class="column-kachel--wrapper <?php echo $row->kachel_right_position; ?>  <?php if ($row->kachel_right_url): ?> with-url<?php endif; ?>">
240
+                            <div class="column--kachel  <?php echo $row->kachel_right_text_position; ?>"
241
+                                 data-aos="<?php if ($row->animation_type_right_kachel) : ?><?php echo $row->animation_type_right_kachel; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
242
+                                 style="
243
+                                 <?php if ($row->kachel_right_background_color): ?>
244
+                                         background-color: <?= $row->kachel_right_background_color;?>;
245
+                            <?php endif; ?>
246
+
247
+                                 <?php if ($row->kachel_right_text_color): ?>
248
+                                         color: <?= $row->kachel_right_text_color;?>;
249
+                            <?php endif; ?>
250
+                                         ">
251
+
252
+                                <?php if ($row->kachel_right_url): ?>
253
+                                    <a href="<?= $row->kachel_right_url; ?>"></a>
254
+                                <?php endif; ?>
255
+
256
+                                <div class="column-kachel--inner <?php if ($row->kachel_right_hover_text || $row->kachel_right_url): ?>with-hover-content<?php endif; ?>">
257
+                                    <span>
258
+                                        <?php echo $row->kachel_right_text; ?>
259
+                                    </span>
260
+
261
+                                    <?php if ($row->kachel_right_hover_text || $row->kachel_right_url): ?>
262
+                                        <div class="kachel-hover--content">
263
+                                            <?php if ($row->kachel_right_hover_text): ?>
264
+                                                <div class="kachel--long-text">
265
+                                                    <?php echo $row->kachel_right_hover_text; ?>
266
+                                                </div>
267
+                                            <?php endif; ?>
268
+
269
+                                            <?php if ($row->kachel_right_url): ?>
270
+                                                <div class="kachel--more-button">
271
+                                                    <a class="btn btn-lg btn-outline-secondary"
272
+                                                       href="<?= $row->kachel_right_url; ?>">
273
+                                                        Mehr Infos
274
+                                                    </a>
275
+                                                </div>
276
+                                            <?php endif; ?>
277
+                                        </div>
278
+                                    <?php endif; ?>
279
+                                </div>
280
+                            </div>
281
+                        </div>
282
+                    </div>
283
+                <?php endif; ?>
284
+
285
+            </div>
286
+            <?php endif; ?>
287
+        </div>
288
+    </div>
289
+</div></div>
290
+<?php endforeach; ?>
291
+</div></div>
0 292
\ No newline at end of file