1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,41 +0,0 @@ |
1 |
-<?php $this->block('content'); ?> |
|
2 |
- |
|
3 |
-<div class="<?= $this->class ?> swiper-holder 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 |
-<?php if ($this->eSM_slider_arrows && $this->eSM_slider_arrows == 'outside'): ?> |
|
10 |
- <div class="swiper-button-next"></div> |
|
11 |
- <div class="swiper-button-prev"></div> |
|
12 |
-<?php endif; ?> |
|
13 |
- |
|
14 |
- <div class="swiper-container slide-container_<?= $this->id ?>"> |
|
15 |
- <?php if ($this->eSM_addImage && ($this->src || count($this->videoFiles))): ?> |
|
16 |
- <div class="swiper-background"<?php if ($this->src): ?>style="<?= $this->backgroundStyle ?>"<?php endif; ?>> |
|
17 |
- <?php if ($this->videoFiles): ?> |
|
18 |
- <video class="no-mejs" autoplay loop muted> |
|
19 |
- <?php foreach ($this->videoFiles as $video): ?> |
|
20 |
- <source src="<?php echo TL_FILES_URL . $video->path ?>" type="video/<?php echo $video->extension ?>"> |
|
21 |
- <?php endforeach ?> |
|
22 |
- </video> |
|
23 |
- <?php endif; ?> |
|
24 |
- </div> |
|
25 |
- <?php if ($this->src && $this->minHeight): ?> |
|
26 |
- <style>.slide-container_<?= $this->id ?>:before { content: ""; display: block; padding-top: <?= $this->minHeight ?>; float: left; }</style> |
|
27 |
- <?php endif; ?> |
|
28 |
- <?php endif; ?> |
|
29 |
- |
|
30 |
- <?php if ($this->eSM_slider_arrows && $this->eSM_slider_arrows != 'outside'): ?> |
|
31 |
- <div class="swiper-button-next"></div> |
|
32 |
- <div class="swiper-button-prev"></div> |
|
33 |
- <?php endif; ?> |
|
34 |
- |
|
35 |
- <?php if ($this->eSM_slider_pagination): ?> |
|
36 |
- <div class="swiper-pagination"></div> |
|
37 |
- <?php endif; ?> |
|
38 |
- |
|
39 |
- <div class="swiper-wrapper" data-config="<?= $this->config ?>"<?php if ($this->breakpoints): ?> data-breakpoints='<?= $this->breakpoints ?>'<?php endif; ?>> |
|
40 |
- |
|
41 |
-<?php $this->endblock(); ?> |
... | ... |
@@ -1,10 +1,16 @@ |
1 | 1 |
<?php $this->block('content'); ?> |
2 |
-<div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>> |
|
2 |
+ |
|
3 |
+<div class="<?= $this->class ?> swiper-holder block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>> |
|
3 | 4 |
|
4 | 5 |
<?php if ($this->headline): ?> |
5 | 6 |
<<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>> |
6 | 7 |
<?php endif; ?> |
7 | 8 |
|
9 |
+<?php if ($this->eSM_slider_arrows && $this->eSM_slider_arrows == 'outside'): ?> |
|
10 |
+ <div class="swiper-button-next"></div> |
|
11 |
+ <div class="swiper-button-prev"></div> |
|
12 |
+<?php endif; ?> |
|
13 |
+ |
|
8 | 14 |
<div class="swiper-container slide-container_<?= $this->id ?>"> |
9 | 15 |
<?php if ($this->eSM_addImage && ($this->src || count($this->videoFiles))): ?> |
10 | 16 |
<div class="swiper-background"<?php if ($this->src): ?>style="<?= $this->backgroundStyle ?>"<?php endif; ?>> |
... | ... |
@@ -21,7 +27,7 @@ |
21 | 27 |
<?php endif; ?> |
22 | 28 |
<?php endif; ?> |
23 | 29 |
|
24 |
- <?php if ($this->eSM_slider_arrows): ?> |
|
30 |
+ <?php if ($this->eSM_slider_arrows && $this->eSM_slider_arrows != 'outside'): ?> |
|
25 | 31 |
<div class="swiper-button-next"></div> |
26 | 32 |
<div class="swiper-button-prev"></div> |
27 | 33 |
<?php endif; ?> |
... | ... |
@@ -31,6 +31,6 @@ |
31 | 31 |
<div class="swiper-pagination"></div> |
32 | 32 |
<?php endif; ?> |
33 | 33 |
|
34 |
- <div class="swiper-wrapper" data-config="<?= $this->config ?>"> |
|
34 |
+ <div class="swiper-wrapper" data-config="<?= $this->config ?>"<?php if ($this->breakpoints): ?> data-breakpoints='<?= $this->breakpoints ?>'<?php endif; ?>> |
|
35 | 35 |
|
36 | 36 |
<?php $this->endblock(); ?> |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,36 @@ |
1 |
+<?php $this->block('content'); ?> |
|
2 |
+<?php $this->dumpTemplateVars(); ?> |
|
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="swiper-container slide-container_<?= $this->id ?>"> |
|
10 |
+ <?php if ($this->eSM_addImage && ($this->src || count($this->videoFiles))): ?> |
|
11 |
+ <div class="swiper-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> |
|
22 |
+ <?php endif; ?> |
|
23 |
+ <?php endif; ?> |
|
24 |
+ |
|
25 |
+ <?php if ($this->eSM_slider_arrows): ?> |
|
26 |
+ <div class="swiper-button-next"></div> |
|
27 |
+ <div class="swiper-button-prev"></div> |
|
28 |
+ <?php endif; ?> |
|
29 |
+ |
|
30 |
+ <?php if ($this->eSM_slider_pagination): ?> |
|
31 |
+ <div class="swiper-pagination"></div> |
|
32 |
+ <?php endif; ?> |
|
33 |
+ |
|
34 |
+ <div class="swiper-wrapper" data-config="<?= $this->config ?>"> |
|
35 |
+ |
|
36 |
+<?php $this->endblock(); ?> |