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,49 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_stoerer.min.css|static';
4
+}
5
+?>
6
+
7
+<div
8
+    <?php echo $this->cssID; ?>class="content--element <?php echo $this->class; ?> <?php if ($this->alternate_right_position): ?>right-pos<?php elseif ($this->alternate_left_position): ?>left-pos<?php endif; ?>"
9
+    style="
10
+    <?php if ($this->alternate_top_position): ?>
11
+            top: <?= $this->alternate_top_position;?>;
12
+ <?php endif; ?>
13
+
14
+    <?php if ($this->alternate_bottom_position): ?>
15
+            top: auto;
16
+            bottom: <?= $this->alternate_bottom_position;?>;
17
+ <?php endif; ?>
18
+
19
+    <?php if ($this->alternate_right_position): ?>
20
+            right:  <?= $this->alternate_right_position;?>;
21
+ <?php endif; ?>
22
+
23
+    <?php if ($this->alternate_left_position): ?>
24
+            right:  auto;
25
+            left:   <?= $this->alternate_left_position;?>;
26
+ <?php endif; ?>
27
+
28
+    <?php if ($this->is_fixed): ?>
29
+            position: fixed;
30
+    <?php endif; ?>
31
+            ">
32
+    <div class="ce--inner">
33
+        <div class="ce--stoerer"
34
+             style="<?php if ($this->text_rotation): ?>transform: rotate(<?= $this->text_rotation;?>deg);<?php endif; ?>">
35
+            <?php if ($this->img): ?>
36
+                <img src="<?= Image::get(FilesModel::findByUuid($this->img)->path, null, null, null); ?>">
37
+            <?php endif; ?>
38
+            <?php if ($this->content): ?>
39
+                <div class="stoerer--content"
40
+                    <?php if ($this->alternate_text_color): ?>
41
+                        style="color: <?= $this->alternate_text_color; ?>"
42
+                    <?php endif; ?>
43
+                >
44
+                    <?= $this->content; ?>
45
+                </div>
46
+            <?php endif; ?>
47
+        </div>
48
+    </div>
49
+</div>
0 50
\ No newline at end of file