1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,72 @@ |
1 |
+<?php |
|
2 |
+if (TL_MODE == 'FE') { |
|
3 |
+ $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_fullwidthgallery.min.css|static'; |
|
4 |
+} |
|
5 |
+?> |
|
6 |
+ |
|
7 |
+<div <?php echo $this->cssID; ?> class="content--element <?php echo $this->class; ?>"> |
|
8 |
+ <div class="ce--inner"> |
|
9 |
+ |
|
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 |
+ |
|
29 |
+ <?php if ($this->gallery): ?> |
|
30 |
+ <div class="ce--fullwidthgallery"> |
|
31 |
+ <div class="row gx-0"> |
|
32 |
+ <?php foreach ($this->gallery as $x => $e) : ?> |
|
33 |
+ <div class="<?= $e->column_width; ?>" |
|
34 |
+ data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"> |
|
35 |
+ <div class="gallery-column"> |
|
36 |
+ |
|
37 |
+ <div class="gallery-column--inner"> |
|
38 |
+ |
|
39 |
+ <div data-bg="<?= Image::get(FilesModel::findByUuid($e->image)->path, null, null, null); ?>" |
|
40 |
+ style="background-size: cover; background-repeat: no-repeat;" |
|
41 |
+ class="lazy column--image-holder"></div> |
|
42 |
+ |
|
43 |
+ <?php if ($e->link): ?> |
|
44 |
+ <a href="<?= $e->link; ?>"></a> |
|
45 |
+ <?php endif; ?> |
|
46 |
+ |
|
47 |
+ <?php if ($e->desc): ?> |
|
48 |
+ <div class="hover-content--info-icon"> |
|
49 |
+ <i class="fas fa-info"></i> |
|
50 |
+ </div> |
|
51 |
+ |
|
52 |
+ <div class="gallery-column--hover-content" style=" |
|
53 |
+ <?php if ($e->background_color): ?>background-color: <?= $e->background_color; ?>;<?php endif; ?> |
|
54 |
+ <?php if ($e->text_color): ?>color: <?= $e->text_color; ?>;<?php endif; ?> |
|
55 |
+ " |
|
56 |
+ |
|
57 |
+ > |
|
58 |
+ |
|
59 |
+ <div class="hover-content--inner"> |
|
60 |
+ <?= $e->desc; ?> |
|
61 |
+ </div> |
|
62 |
+ </div> |
|
63 |
+ <?php endif; ?> |
|
64 |
+ </div> |
|
65 |
+ |
|
66 |
+ </div> |
|
67 |
+ </div> |
|
68 |
+ <?php endforeach ?> |
|
69 |
+ </div> |
|
70 |
+ </div> |
|
71 |
+ <?php endif; ?> |
|
72 |
+</div></div> |
|
0 | 73 |
\ No newline at end of file |