| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,106 @@ |
| 1 |
+<?php |
|
| 2 |
+if (TL_MODE == 'FE') {
|
|
| 3 |
+ $GLOBALS['TL_CSS'][] = 'files/base/layout/css/elements/custom-elements/ce_rsce_extendedimagecolumns.min.css|static'; |
|
| 4 |
+} |
|
| 5 |
+?> |
|
| 6 |
+ |
|
| 7 |
+ |
|
| 8 |
+<div <?php echo $this->cssID; ?> class="content--element <?php echo $this->class; ?>"> |
|
| 9 |
+ <div class="ce--inner"> |
|
| 10 |
+ <?php if ($this->headline || $this->subline || $this->topline) : ?> |
|
| 11 |
+ <div class="ce--headline container" |
|
| 12 |
+ data-aos="<?php if ($this->animation_type) : ?><?php echo $this->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"> |
|
| 13 |
+ <?php if ($this->topline) : ?> |
|
| 14 |
+ <span class="ce--topline"><?php echo $this->topline; ?></span> |
|
| 15 |
+ <?php endif; ?> |
|
| 16 |
+ <?php if ($this->headline) : ?> |
|
| 17 |
+ <<?php echo($this->hl); ?> > |
|
| 18 |
+ <?php echo($this->headline); ?> |
|
| 19 |
+ </<?php echo($this->hl); ?>> |
|
| 20 |
+ <?php endif; ?> |
|
| 21 |
+ <?php if ($this->subline) : ?> |
|
| 22 |
+ <span class="ce--subline"><?php echo $this->subline; ?></span> |
|
| 23 |
+ <?php endif; ?> |
|
| 24 |
+ </div> |
|
| 25 |
+ <?php endif; ?> |
|
| 26 |
+ |
|
| 27 |
+ |
|
| 28 |
+ <div class="container"> |
|
| 29 |
+ <div class="row"> |
|
| 30 |
+ <?php foreach ($this->box as $b) : ?> |
|
| 31 |
+ |
|
| 32 |
+ |
|
| 33 |
+ <?php |
|
| 34 |
+ $filename = FilesModel::findByUuid($b->image)->path; |
|
| 35 |
+ $ext = pathinfo($filename, PATHINFO_EXTENSION); |
|
| 36 |
+ ?> |
|
| 37 |
+ |
|
| 38 |
+ <div class="col-12 <?php if (count($this->box) > 1) : ?>col-md-6<?php endif; ?>"> |
|
| 39 |
+ <div class="box--image-holder <?php if ($ext == "mp4") : ?>is-video--holder<?php endif; ?>" |
|
| 40 |
+ data-aos="<?php if ($b->animation_type != "") : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"> |
|
| 41 |
+ |
|
| 42 |
+ <?php if ($b->alternate_background): ?> |
|
| 43 |
+ <div class="background-holder" style="background-color: <?= $b->alternate_background; ?>"> |
|
| 44 |
+ </div> |
|
| 45 |
+ <?php endif; ?> |
|
| 46 |
+ <div class="box--image-overflow-wrapper <?php if ($ext == "mp4") : ?>is-video--wrapper<?php endif; ?>"> |
|
| 47 |
+ |
|
| 48 |
+ |
|
| 49 |
+ <div class="box--image lazy <?php if ($ext == "mp4") : ?>is-video<?php endif; ?>" |
|
| 50 |
+ <?php if ($ext != "mp4") : ?>data-bg="<?= Image::get(FilesModel::findByUuid($b->image)->path, null, null, null); ?>" |
|
| 51 |
+ style="background-size: cover; background-repeat: no-repeat; background-position: center center;"<?php endif; ?> |
|
| 52 |
+ > |
|
| 53 |
+ <?php if ($ext == "mp4") : ?> |
|
| 54 |
+ <video controls playsinline data-src="{{file::<?= $b->image ?>}}">
|
|
| 55 |
+ <source type="video/mp4" src="{{file::<?= $b->image ?>}}">
|
|
| 56 |
+ </video> |
|
| 57 |
+ <?php endif; ?> |
|
| 58 |
+ |
|
| 59 |
+ </div> |
|
| 60 |
+ </div> |
|
| 61 |
+ </div> |
|
| 62 |
+ <div class="box--content <?php if ($b->asbox) : ?>as-box<?php endif; ?>" |
|
| 63 |
+ data-aos="<?php if ($b->animation_type != "") : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>" |
|
| 64 |
+ <?php if ($b->versatz) : ?>style="position: relative; top: <?php echo $b->versatz; ?>px" <?php endif; ?>> |
|
| 65 |
+ <?php if ($b->headline) : ?> |
|
| 66 |
+ <div class="headline--wrapper "> |
|
| 67 |
+ |
|
| 68 |
+ <?php if ($b->topline) : ?> |
|
| 69 |
+ <span class="ce--topline"><?php echo $b->topline; ?></span> |
|
| 70 |
+ <?php endif; ?> |
|
| 71 |
+ |
|
| 72 |
+ |
|
| 73 |
+ <?php if (!$b->onlystyle) : ?> |
|
| 74 |
+ <<?php echo $b->headline_type; ?>><?php echo $b->headline; ?></<?php echo $b->headline_type; ?>> |
|
| 75 |
+ <?php if ($b->subline) : ?> |
|
| 76 |
+ <span class="ce--subline"><?php echo $b->subline; ?></span> |
|
| 77 |
+ <?php endif; ?> |
|
| 78 |
+ <?php else : ?> |
|
| 79 |
+ <span class="<?php echo $b->headline_type; ?>"><?php echo $b->headline; ?></span> |
|
| 80 |
+ <?php if ($b->subline) : ?> |
|
| 81 |
+ <span class="ce--subline"><?php echo $b->subline; ?></span> |
|
| 82 |
+ <?php endif; ?> |
|
| 83 |
+ <?php endif; ?> |
|
| 84 |
+ </div> |
|
| 85 |
+ <?php endif; ?> |
|
| 86 |
+ <?php if ($b->content) : ?> |
|
| 87 |
+ <div class="box--text" |
|
| 88 |
+ data-aos="<?php if ($b->animation_type != "") : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>"> |
|
| 89 |
+ <?php echo $b->content; ?> |
|
| 90 |
+ </div> |
|
| 91 |
+ <?php endif; ?> |
|
| 92 |
+ <?php if ($b->link_text) : ?> |
|
| 93 |
+ <div class="button--wrapper mt-2" |
|
| 94 |
+ data-aos="<?php if ($b->animation_type != "") : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInDown<?php endif; ?>"> |
|
| 95 |
+ <a class="d-inline-block btn <?php if ($b->link_size) : ?><?php echo $b->link_size; ?><?php endif; ?> <?php echo $b->link_type; ?>" |
|
| 96 |
+ href="<?php echo $b->link_url; ?><?php if ($b->link_betreff) : ?>?subject=<?php echo $b->link_betreff; ?><?php endif; ?>"><?php echo $b->link_text; ?> |
|
| 97 |
+ </a> |
|
| 98 |
+ </div> |
|
| 99 |
+ <?php endif; ?> |
|
| 100 |
+ </div> |
|
| 101 |
+ </div> |
|
| 102 |
+ <?php endforeach; ?> |
|
| 103 |
+ </div> |
|
| 104 |
+</div> |
|
| 105 |
+</div> |
|
| 106 |
+</div> |
|
| 0 | 107 |
\ No newline at end of file |