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,139 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_2colscontent.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
+
14
+            <?php if ($this->topline) : ?>
15
+                <span class="ce--topline"><?php echo $this->topline; ?></span>
16
+            <?php endif; ?>
17
+
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
+    <?php endif; ?>
28
+    <?php if ($this->rows) : ?>
29
+    <?php foreach ($this->rows as $row) : ?>
30
+    <div class="row--wrapper <?php if ($row->asbox) : ?>content--box<?php endif; ?>"
31
+         <?php if ($row->asbox) : ?>data-aos="<?php if ($row->animation_type != "") : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?><?php endif; ?>">
32
+        <?php if ($row->ce_headline) : ?>
33
+        <div class="ce--headline row--headline"
34
+             data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
35
+            <?php if (!$row->onlystyle) : ?>
36
+            <<?php echo $row->headline_type; ?>>
37
+            <?php echo $row->ce_headline; ?>
38
+        </<?php echo $row->headline_type; ?>>
39
+    <?php if ($row->ce_subline) : ?>
40
+        <span class="ce--subline"><?php echo $row->ce_subline; ?></span>
41
+    <?php endif; ?>
42
+    <?php else : ?>
43
+        <span class="<?php echo $row->headline_type; ?>"><?php echo $row->ce_headline; ?></span>
44
+        <?php if ($row->ce_subline) : ?>
45
+            <span class="ce--subline"><?php echo $row->ce_subline; ?></span>
46
+        <?php endif; ?>
47
+    <?php endif; ?>
48
+    </div>
49
+<?php endif; ?>
50
+    <div class="row gx-5 <?php if ($row->swapcolumns) : ?>flex-row-reverse<?php endif; ?>">
51
+        <?php foreach ($row->columns as $column) : ?>
52
+        <?php if ($row->headline) : ?>
53
+        <div class="col-12">
54
+            <div class="headline mb-3"
55
+                 data-aos="<?php if ($row->animation_type) : ?><?php echo $row->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
56
+
57
+                <?php if ($row->topline) : ?>
58
+                    <span class="ce--topline"><?php echo $row->topline; ?></span>
59
+                <?php endif; ?>
60
+
61
+
62
+                <?php if ($row->headline) : ?>
63
+                <?php if (!$row->onlystyle) : ?>
64
+                <<?php echo $row->headline_type; ?>>
65
+                <?php echo $row->headline; ?>
66
+            </<?php echo $row->headline_type; ?>>
67
+            <?php else : ?>
68
+                <span class="<?php echo $row->headline_type; ?>">
69
+                                                    <?php echo $row->headline; ?>
70
+                                                </span>
71
+            <?php endif; ?>
72
+            <?php if ($row->subline) : ?>
73
+                <span class="ce--subline">
74
+                                                    <?php echo $row->subline; ?>
75
+                                                </span>
76
+            <?php endif; ?>
77
+        </div>
78
+    <?php endif; ?>
79
+    </div>
80
+<?php endif; ?>
81
+    <div class="<?php if ($column->column_width) : ?><?php echo $column->column_width; ?><?php else : ?>col-12 col-md-6<?php endif; ?>">
82
+        <div class="column--wrapper <?php if ($column->asbox) : ?>content--box<?php endif; ?>"
83
+             <?php if ($column->asbox) : ?>data-aos="<?php if ($column->animation_type != "") : ?><?php echo $column->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?><?php endif; ?>">
84
+            <?php if ($column->headline) : ?>
85
+            <div class="col--headline"
86
+                 data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
87
+
88
+
89
+                <?php if ($column->topline) : ?>
90
+                    <span class="ce--topline"><?php echo $column->topline; ?></span>
91
+                <?php endif; ?>
92
+
93
+                <?php if (!$column->onlystyle) : ?>
94
+                <<?php echo $column->headline_type; ?>>
95
+                <?php echo $column->headline; ?>
96
+            </<?php echo $column->headline_type; ?>>
97
+        <?php else : ?>
98
+            <span class="<?php echo $column->headline_type; ?>"><?php echo $column->headline; ?></span>
99
+        <?php endif; ?>
100
+            <?php if ($column->subline) : ?>
101
+                <span class="ce--subline">
102
+                                                    <?php echo $column->subline; ?>
103
+                                                </span>
104
+            <?php endif; ?>
105
+        </div>
106
+        <?php endif; ?>
107
+        <div class="column--content d-flex <?php if ($column->image_position == "image_below") : ?>flex-column-reverse<?php endif; ?>"
108
+             data-aos="<?php if ($column->animation_type != "") : ?><?php echo $column->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
109
+            <?php if ($column->image) : ?>
110
+                <div class="col--image"
111
+                     data-aos="<?php if ($column->animation_type != "") : ?><?php echo $column->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>">
112
+                    <img class="lazy"
113
+                         data-src="<?= Image::get(FilesModel::findByUuid($column->image)->path, null, null, null); ?>">
114
+                </div>
115
+            <?php endif; ?>
116
+            <?php if ($column->text) : ?>
117
+                <div class="col--text"
118
+                     data-aos="<?php if ($column->animation_type != "") : ?><?php echo $column->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>">
119
+                    <?php echo $column->text; ?>
120
+                </div>
121
+            <?php endif; ?>
122
+        </div>
123
+        <?php if ($column->link_text && $column->rightcol_text == "") : ?>
124
+            <div class="col--buttons"
125
+                 data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>">
126
+                <a class="d-inline-block btn <?php if ($column->link_size) : ?><?php echo $column->link_size; ?><?php endif; ?> <?php echo $column->link_type; ?>"
127
+                   href="<?php echo $column->link_url; ?><?php if ($column->link_betreff) : ?>?subject=<?php echo $column->link_betreff; ?><?php endif; ?>"><?php echo $column->link_text; ?>
128
+                </a>
129
+            </div>
130
+        <?php endif; ?>
131
+    </div>
132
+</div>
133
+<?php endforeach ?>
134
+    </div>
135
+    </div>
136
+<?php endforeach ?>
137
+<?php endif; ?>
138
+</div>
139
+</div>
0 140
\ No newline at end of file