1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,134 @@ |
1 |
+<?php |
|
2 |
+if (TL_MODE == 'FE') { |
|
3 |
+ $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_equalboxfield.min.css|static'; |
|
4 |
+} |
|
5 |
+?> |
|
6 |
+ |
|
7 |
+ |
|
8 |
+<?php |
|
9 |
+if (!isset($this->size)) { |
|
10 |
+ $this->{"size"} = ""; |
|
11 |
+} |
|
12 |
+?> |
|
13 |
+<div <?php echo $this->cssID; ?> class="content--element <?php echo $this->class; ?>"> |
|
14 |
+ <div class="ce--inner <?php if (!$this->fullwidth): ?>container<?php endif; ?>"> |
|
15 |
+ <?php if ($this->headline || $this->subline || $this->topline) : ?> |
|
16 |
+ <div class="ce--headline" |
|
17 |
+ data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"> |
|
18 |
+ <?php if ($this->topline) : ?> |
|
19 |
+ <span class="ce--topline"><?php echo $this->topline; ?></span> |
|
20 |
+ <?php endif; ?> |
|
21 |
+ <?php if ($this->headline) : ?> |
|
22 |
+ <<?php echo($this->hl); ?>> |
|
23 |
+ <?php echo($this->headline); ?> |
|
24 |
+ </<?php echo($this->hl); ?>> |
|
25 |
+ <?php endif; ?> |
|
26 |
+ <?php if ($this->subline) : ?> |
|
27 |
+ <span class="ce--subline"><?php echo $this->subline; ?></span> |
|
28 |
+ <?php endif; ?> |
|
29 |
+ </div> |
|
30 |
+ <?php endif; ?> |
|
31 |
+ <div class="ce--equalboxfield"> |
|
32 |
+ <div class="row <?php if ($this->no_gutter): ?>g-0<?php endif; ?>"> |
|
33 |
+ <?php foreach ($this->boxes as $box) : ?> |
|
34 |
+ <div class="<?php if ($box->column_width) : ?><?php echo $box->column_width; ?><?php else : ?>col-12 col-sm-6 col-md-4 col-lg-3<?php endif; ?>"> |
|
35 |
+ <div class="box--element" |
|
36 |
+ data-aos="<?php if ($box->animation_type) : ?><?php echo $box->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"> |
|
37 |
+ |
|
38 |
+ |
|
39 |
+ <div class="row gx-0 <?php if ($box->reverse_columns) : ?>flex-row-reverse<?php endif; ?>"> |
|
40 |
+ <?php if ($box->image) : ?> |
|
41 |
+ <div class="<?php echo $box->image_column_width; ?>"> |
|
42 |
+ |
|
43 |
+ <div class="box--image"> |
|
44 |
+ <div class="box-image--holder lazy" |
|
45 |
+ data-bg="<?= Image::get(FilesModel::findByUuid($box->image)->path, $this->size[0], $this->size[1], $this->size[2]); ?>" |
|
46 |
+ style="background-position: center center; background-repeat: no-repeat; background-size: cover;"></div> |
|
47 |
+ </div> |
|
48 |
+ |
|
49 |
+ </div> |
|
50 |
+ <?php endif; ?> |
|
51 |
+ |
|
52 |
+ <div class="col"> |
|
53 |
+ <div class="box--details justify-content-center <?php if ($box->alternate_background) : ?>with-bg<?php endif; ?> <?php if ($box->textalign) : ?><?php echo $box->textalign; ?><?php endif; ?>" |
|
54 |
+ style="<?php if ($box->alternate_textcolor) : ?>color:<?php echo $box->alternate_textcolor; ?>;<?php endif; ?> |
|
55 |
+ |
|
56 |
+ |
|
57 |
+ <?php if ($box->alternate_backgroundcolor) : ?> |
|
58 |
+ background-color:<?php echo $box->alternate_backgroundcolor; ?>; |
|
59 |
+ <?php else: ?> |
|
60 |
+ <?php if ($box->alternate_background) : ?>background-color:<?php echo $box->alternate_background; ?>;<?php endif; ?> |
|
61 |
+ <?php endif; ?> |
|
62 |
+ "> |
|
63 |
+ |
|
64 |
+ |
|
65 |
+ <?php if ($box->topline) : ?> |
|
66 |
+ <span class="box--topline ce--topline"><?php echo $box->topline; ?></span> |
|
67 |
+ <?php endif; ?> |
|
68 |
+ |
|
69 |
+ <?php if ($box->title) : ?> |
|
70 |
+ <div class="box--headline"> |
|
71 |
+ <?php echo $box->title ?> |
|
72 |
+ </div> |
|
73 |
+ <?php endif; ?> |
|
74 |
+ <?php if ($box->subline) : ?> |
|
75 |
+ <div class="box--subline"> |
|
76 |
+ <?php echo $box->subline ?> |
|
77 |
+ </div> |
|
78 |
+ <?php endif; ?> |
|
79 |
+ |
|
80 |
+ <?php if ($box->text) : ?> |
|
81 |
+ <div class="box--text"> |
|
82 |
+ <?php echo $box->text ?> |
|
83 |
+ </div> |
|
84 |
+ <?php endif; ?> |
|
85 |
+ |
|
86 |
+ <?php if ($box->icon || (!$box->hide_link && $box->link_url)) : ?> |
|
87 |
+ <div class="box--footer <?php if ($box->is_button): ?>mt-0<?php endif; ?>"> |
|
88 |
+ <div class="<?php if ($box->icon && $box->link_url) : ?>row align-items-end<?php endif;?>"> |
|
89 |
+ <?php if ($box->icon) : ?> |
|
90 |
+ <div class="<?php if ($box->icon && $box->link_url) : ?>col-auto<?php endif;?>"> |
|
91 |
+ <img src="<?= Image::get(FilesModel::findByUuid($box->icon)->path, null, null, null); ?>"> |
|
92 |
+ </div> |
|
93 |
+ <?php endif; ?> |
|
94 |
+ <?php if ($box->link_url): ?> |
|
95 |
+ <div class="<?php if ($box->icon && $box->link_url) : ?>col<?php endif;?> <?php if (!$box->is_button): ?>text-end<?php endif; ?>"> |
|
96 |
+ <a <?php if ($box->new_tab): ?>target="_blank"<?php endif; ?> |
|
97 |
+ class="<?php if ($box->is_button): ?>btn <?= $box->link_type; ?> <?= $box->link_size; ?> <?php endif; ?>" |
|
98 |
+ |
|
99 |
+ href="<?php echo $box->link_url; ?><?php if ($box->link_betreff) : ?>?subject=<?php echo $box->link_betreff; ?><?php endif; ?>"> |
|
100 |
+ |
|
101 |
+ <?php if (!$box->hide_link): ?> |
|
102 |
+ <?php if ($box->link_text) : ?> |
|
103 |
+ <?= $box->link_text; ?> |
|
104 |
+ <?php else: ?> |
|
105 |
+ <i class="fas fa-arrow-right"></i> |
|
106 |
+ <?php endif; ?> |
|
107 |
+ <?php endif; ?> |
|
108 |
+ </a> |
|
109 |
+ </div> |
|
110 |
+ <?php endif; ?> |
|
111 |
+ </div> |
|
112 |
+ </div> |
|
113 |
+ <?php endif; ?> |
|
114 |
+ |
|
115 |
+ |
|
116 |
+ |
|
117 |
+ <?php if ($box->link_url): ?> |
|
118 |
+ <a <?php if ($box->new_tab): ?>target="_blank"<?php endif; ?> class="box--link" |
|
119 |
+ href="<?php echo $box->link_url; ?><?php if ($box->link_betreff) : ?>?subject=<?php echo $box->link_betreff; ?><?php endif; ?>"> |
|
120 |
+ </a> |
|
121 |
+ <?php endif; ?> |
|
122 |
+ |
|
123 |
+ </div> |
|
124 |
+ </div> |
|
125 |
+ |
|
126 |
+ |
|
127 |
+ </div> |
|
128 |
+ </div> |
|
129 |
+ </div> |
|
130 |
+ <?php endforeach; ?> |
|
131 |
+ </div> |
|
132 |
+ </div> |
|
133 |
+</div> |
|
134 |
+</div> |
|
0 | 135 |
\ No newline at end of file |