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,82 @@
1
+<?php
2
+if (TL_MODE == 'FE') {
3
+    $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_mitarbeiter.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
+            <?php if ($this->topline) : ?>
13
+                <span class="ce--topline"><?php echo $this->topline; ?></span>
14
+            <?php endif; ?>
15
+            <?php if ($this->headline) : ?>
16
+            <<?php echo($this->hl); ?>>
17
+            <?php echo($this->headline); ?>
18
+        </<?php echo($this->hl); ?>>
19
+    <?php endif; ?>
20
+        <?php if ($this->subline) : ?>
21
+            <span class="ce--subline"><?php echo $this->subline; ?></span>
22
+        <?php endif; ?>
23
+    </div>
24
+    <?php endif; ?>
25
+    <div class="ce--mitarbeiter">
26
+        <div class="row small-gutters">
27
+            <?php foreach ($this->mitarbeiter as $ma) : ?>
28
+                <div class="<?php if ($ma->column_width) : ?><?php echo $ma->column_width; ?><?php else : ?>col-12 col-sm-6 col-md-4 col-lg-3<?php endif; ?>">
29
+                    <div class="ma--element"
30
+                         data-aos="<?php if ($ma->animation_type) : ?><?php echo $ma->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>">
31
+                        <?php if ($ma->bild) : ?>
32
+                            <div class="ma--image">
33
+                                <?php if ($ma->link_url): ?>
34
+                                <a <?php if ($ma->new_tab): ?>target="_blank"<?php endif; ?>
35
+                                   href="<?php echo $ma->link_url; ?><?php if ($ma->link_betreff) : ?>?subject=<?php echo $ma->link_betreff; ?><?php endif; ?>">
36
+                                    <?php else: ?>
37
+                                    <a data-lightbox title="<?php echo $ma->name ?>" class="cboxElement"
38
+                                       href="<?= Image::get(FilesModel::findByUuid($ma->bild)->path, null, null, null); ?>">
39
+                                        <?php endif; ?>
40
+
41
+                                        <?php if ($ma->badge): ?>
42
+                                            <span class="badge bg-warning"><?= $ma->badge; ?></span>
43
+                                        <?php endif; ?>
44
+                                        <img class="lazy"
45
+                                             data-src="<?= Image::get(FilesModel::findByUuid($ma->bild)->path, null, null, 2); ?>">
46
+                                    </a>
47
+
48
+
49
+                            </div>
50
+                        <?php endif; ?>
51
+                        <div class="ma--details <?php if ($ma->alternate_background) : ?>with-bg<?php endif; ?> <?php if ($ma->textalign) : ?><?php echo $ma->textalign; ?><?php endif; ?>"
52
+                             style="<?php if ($ma->alternate_textcolor) : ?>color:<?php echo $ma->alternate_textcolor; ?>;<?php endif; ?><?php if ($ma->alternate_background) : ?>background-color:<?php echo $ma->alternate_background; ?><?php endif; ?>">
53
+
54
+                            <?php if ($ma->link_url): ?>
55
+                            <a <?php if ($ma->new_tab): ?>target="_blank"<?php endif; ?>
56
+                               href="<?php echo $ma->link_url; ?><?php if ($ma->link_betreff) : ?>?subject=<?php echo $ma->link_betreff; ?><?php endif; ?>">
57
+                                <?php endif; ?>
58
+
59
+                                <span class="name">
60
+                                    <?php echo $ma->name ?>
61
+                                </span>
62
+                                <?php if ($ma->link_url): ?>
63
+                            </a>
64
+                        <?php endif; ?>
65
+                            <?php if ($ma->subline) : ?>
66
+                                <div class="job-subline">
67
+                                    <?php echo $ma->subline ?>
68
+                                </div>
69
+                            <?php endif; ?>
70
+                            <?php if ($ma->beschreibung) : ?>
71
+                                <div class="job-desc">
72
+                                    <?php echo $ma->beschreibung ?>
73
+                                </div>
74
+                            <?php endif; ?>
75
+                        </div>
76
+                    </div>
77
+                </div>
78
+            <?php endforeach; ?>
79
+        </div>
80
+    </div>
81
+</div>
82
+</div>
0 83
\ No newline at end of file