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,73 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_quotebox.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"><?php echo $this->subline; ?></span>
24
+        <?php endif; ?>
25
+    </div>
26
+    <?php endif; ?>
27
+    <div class="ce--quote">
28
+        <div class="row g-lg-3">
29
+            <?php foreach ($this->quote as $quote) : ?>
30
+
31
+
32
+                <?php
33
+                if (!isset($quote->size)) {
34
+                    $quote->{"size"} = "";
35
+                }
36
+                ?>
37
+
38
+
39
+                <div class="<?php echo $quote->column_width; ?>">
40
+                    <div class="quote--element"
41
+                         data-aos="<?php if ($quote->animation_type) : ?><?php echo $quote->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
42
+                        <?php if ($quote->bild) : ?>
43
+                            <div class="quote--image">
44
+                                <?php if ($quote->link_url): ?>
45
+                                <a <?php if ($quote->new_tab): ?>target="_blank"<?php endif; ?>
46
+                                   href="<?php echo $quote->link_url; ?>">
47
+                                    <?php endif; ?>
48
+
49
+                                    <img class="lazy"
50
+                                         data-src="<?= Image::get(FilesModel::findByUuid($quote->bild)->path, null, null, null); ?>">
51
+                                    <?php if ($quote->link_url): ?>
52
+                                </a>
53
+                            <?php endif; ?>
54
+                            </div>
55
+                        <?php endif; ?>
56
+                        <div class="quote--detail ">
57
+                            <?php if ($quote->beschreibung) : ?>
58
+                                <div class="quote--text">
59
+                                    <?php echo $quote->beschreibung ?>
60
+                                </div>
61
+                            <?php endif; ?>
62
+
63
+                            <span class="quote--name">
64
+                                    <?php echo $quote->name ?>
65
+                                </span>
66
+                        </div>
67
+                    </div>
68
+                </div>
69
+            <?php endforeach; ?>
70
+        </div>
71
+    </div>
72
+</div>
73
+</div>
0 74
\ No newline at end of file