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,92 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_headline.min.css|static';
4
+}
5
+?>
6
+
7
+<div <?php echo $this->cssID; ?>
8
+        class="content--element <?php echo $this->class; ?> <?php if ($this->image) : ?>with-image<?php endif; ?>">
9
+    <div class="ce--inner">
10
+        <?php if ($this->headline || $this->subline || $this->topline) : ?>
11
+        <div class="container ">
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
+                <?php if ($this->topline) : ?>
15
+                    <span class="ce--topline"><?php echo $this->topline; ?></span>
16
+                <?php endif; ?>
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
+    </div>
27
+    <?php endif; ?>
28
+    <?php if ($this->image) : ?>
29
+        <div class="ce--main-image <?php if ($this->not_fullwidth): ?>container<?php endif; ?>">
30
+            <div data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
31
+                 class="image--holder lazy <?php if ($this->hide_gradient): ?>hide-gradient<?php endif; ?><?php if ($this->hide_gradient && !$this->asbox): ?> mb-2<?php endif; ?>"
32
+                 style="<?php if ($this->image_maxheight) : ?>max-height: <?php echo $this->image_maxheight; ?> !important;<?php endif; ?><?php if ($this->image_height) : ?>height: <?php echo $this->image_height; ?>vh; min-height: 250px;<?php endif; ?>background-size: cover; background-repeat: no-repeat; background-position: center center;"
33
+                 data-bg="<?= Image::get(FilesModel::findByUuid($this->image)->path, null, null, null); ?>"></div>
34
+        </div>
35
+    <?php endif; ?>
36
+    <div class="container <?php if ($this->textalign) : ?><?php echo $this->textalign; ?><?php endif; ?>">
37
+        <div data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
38
+             class="box--holder <?php if ($this->asbox) : ?>content--box<?php endif; ?>">
39
+            <?php if ($this->ce_headline || $this->subline) : ?>
40
+            <div class="ce--headline <?php if ($this->textalign) : ?><?php echo $this->textalign; ?><?php endif; ?>"
41
+                 data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>">
42
+
43
+                <?php if ($this->topline) : ?>
44
+                    <span class="ce--topline"><?php echo $this->topline; ?></span>
45
+                <?php endif; ?>
46
+
47
+
48
+                <?php if ($this->ce_headline) : ?>
49
+                <?php if (!$this->onlystyle) : ?>
50
+                <<?php echo $this->headline_type; ?> class="mt-0">
51
+                <?php echo $this->ce_headline; ?>
52
+            </<?php echo $this->headline_type; ?>>
53
+        <?php if ($this->subline) : ?>
54
+            <span class="ce--subline"
55
+                  data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
56
+                                        <?php echo $this->subline; ?>
57
+                                    </span>
58
+        <?php endif; ?>
59
+        <?php else : ?>
60
+            <span class="<?php echo $this->headline_type; ?>"
61
+                  data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>">
62
+                                    <?php echo $this->ce_headline; ?>
63
+                                </span>
64
+            <?php if ($this->subline) : ?>
65
+                <span class="ce--subline"
66
+                      data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
67
+                                        <?php echo $this->subline; ?>
68
+                                    </span>
69
+            <?php endif; ?>
70
+        <?php endif; ?>
71
+        <?php endif; ?>
72
+        </div>
73
+        <?php if ($this->text) : ?>
74
+            <span class="ce--text"
75
+                  data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
76
+                            <?php echo $this->text; ?>
77
+                        </span>
78
+        <?php endif; ?>
79
+        <?php endif; ?>
80
+        <?php if ($this->buttons[0]->link_text != "") : ?>
81
+            <div class="ce--buttons mt-3">
82
+                <?php foreach ($this->buttons as $b) : ?>
83
+                    <a class="d-inline-block btn <?php if ($b->link_size) : ?><?php echo $b->link_size; ?><?php endif; ?> <?php echo $b->link_type; ?>"
84
+                       data-aos="<?php if ($b->animation_type) : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
85
+                       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>
86
+                <?php endforeach ?>
87
+            </div>
88
+        <?php endif; ?>
89
+    </div>
90
+</div>
91
+</div>
92
+</div>
0 93
\ No newline at end of file