... | ... |
@@ -7,10 +7,18 @@ |
7 | 7 |
<?php endif; ?> |
8 | 8 |
|
9 | 9 |
<div class="slick-slider-container slide-container_<?= $this->id ?>"> |
10 |
- <?php if ($this->eSM_addImage && $this->src): ?> |
|
11 |
- <div class="slick-slider-background" style="<?= $this->backgroundStyle ?>"></div> |
|
12 |
- <?php if ($this->minHeight): ?> |
|
13 |
- <style>.slide-container_<?= $this->id ?>:before { content: ""; display: block; padding-top: <?= $this->minHeight ?>; float: left; }</style> |
|
10 |
+ <?php if ($this->eSM_addImage && ($this->src || count($this->videoFiles))): ?> |
|
11 |
+ <div class="slick-slider-background"<?php if ($this->src): ?>style="<?= $this->backgroundStyle ?>"<?php endif; ?>> |
|
12 |
+ <?php if ($this->videoFiles): ?> |
|
13 |
+ <video class="no-mejs" autoplay loop muted> |
|
14 |
+ <?php foreach ($this->videoFiles as $video): ?> |
|
15 |
+ <source src="<?php echo TL_FILES_URL . $video->path ?>" type="video/<?php echo $video->extension ?>"> |
|
16 |
+ <?php endforeach ?> |
|
17 |
+ </video> |
|
18 |
+ <?php endif; ?> |
|
19 |
+ </div> |
|
20 |
+ <?php if ($this->src && $this->minHeight): ?> |
|
21 |
+ <style>.slide-container_<?= $this->id ?>:before { content: ""; display: block; padding-top: <?= $this->minHeight ?>; float: left; }</style> |
|
14 | 22 |
<?php endif; ?> |
15 | 23 |
<?php endif; ?> |
16 | 24 |
|
... | ... |
@@ -1,9 +1,17 @@ |
1 | 1 |
<?php $this->block('content'); ?> |
2 | 2 |
|
3 |
- <div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>> |
|
3 |
+<div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>> |
|
4 | 4 |
|
5 |
- <?php if ($this->headline): ?> |
|
6 |
- <<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>> |
|
5 |
+ <?php if ($this->headline): ?> |
|
6 |
+ <<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>> |
|
7 |
+ <?php endif; ?> |
|
8 |
+ |
|
9 |
+ <div class="slick-slider-container slide-container_<?= $this->id ?>"> |
|
10 |
+ <?php if ($this->eSM_addImage && $this->src): ?> |
|
11 |
+ <div class="slick-slider-background" style="<?= $this->backgroundStyle ?>"></div> |
|
12 |
+ <?php if ($this->minHeight): ?> |
|
13 |
+ <style>.slide-container_<?= $this->id ?>:before { content: ""; display: block; padding-top: <?= $this->minHeight ?>; float: left; }</style> |
|
14 |
+ <?php endif; ?> |
|
7 | 15 |
<?php endif; ?> |
8 | 16 |
|
9 | 17 |
<div class="slick-slider-wrapper" data-config="<?= $this->config ?>"> |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,11 @@ |
1 |
+<?php $this->block('content'); ?> |
|
2 |
+ |
|
3 |
+ <div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>> |
|
4 |
+ |
|
5 |
+ <?php if ($this->headline): ?> |
|
6 |
+ <<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>> |
|
7 |
+ <?php endif; ?> |
|
8 |
+ |
|
9 |
+ <div class="slick-slider-wrapper" data-config="<?= $this->config ?>"> |
|
10 |
+ |
|
11 |
+<?php $this->endblock(); ?> |