Browse code

Refactor and rewrite as contao bundle

Benjamin Roth authored on04/11/2022 22:32:32
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,33 +0,0 @@
1
-
2
-<?php $this->block('content'); ?>
3
-
4
-<div class="swiper-slide slide_<?= $this->id ?>">
5
-  <?php if ($this->src || count($this->videoFiles)): ?>
6
-    <div class="swiper-slide-image">
7
-      <?php if ($this->videoFiles): ?>
8
-        <video class="no-mejs" autoplay loop muted>
9
-          <?php foreach ($this->videoFiles as $video): ?>
10
-            <source src="<?php echo TL_FILES_URL . $video->path ?>" type="video/<?php echo $video->extension ?>">
11
-          <?php endforeach ?>
12
-        </video>
13
-      <?php endif; ?>
14
-    </div>
15
-
16
-    <style>
17
-      <?= $this->backgroundStyle ?>
18
-      <?php if ($this->backgroundStyleResponsive): ?><?= $this->backgroundStyleResponsive ?><?php endif; ?>
19
-    </style>
20
-  <?php endif; ?>
21
-  <div class="slide-content">
22
-
23
-  <?php if ($this->text): ?>
24
-    <span class="slide-text"><?= $this->text ?></span>
25
-  <?php endif; ?>
26
-
27
-  </div>
28
-  <?php if ($this->link || $this->imageLink): ?>
29
-    <a class="slide-url" href="<?= ($this->link ?: $this->imageLink) ?>"<?php if ($this->fullsize): ?> data-lightbox="<?= $this->lightboxId ?>"<?php endif; ?>></a>
30
-  <?php endif; ?>
31
-</div>
32
-
33
-<?php $this->endblock(); ?>
Browse code

Initial commit

Benjamin Roth authored on19/05/2020 21:59:44
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+
2
+<?php $this->block('content'); ?>
3
+
4
+<div class="swiper-slide slide_<?= $this->id ?>">
5
+  <?php if ($this->src || count($this->videoFiles)): ?>
6
+    <div class="swiper-slide-image">
7
+      <?php if ($this->videoFiles): ?>
8
+        <video class="no-mejs" autoplay loop muted>
9
+          <?php foreach ($this->videoFiles as $video): ?>
10
+            <source src="<?php echo TL_FILES_URL . $video->path ?>" type="video/<?php echo $video->extension ?>">
11
+          <?php endforeach ?>
12
+        </video>
13
+      <?php endif; ?>
14
+    </div>
15
+
16
+    <style>
17
+      <?= $this->backgroundStyle ?>
18
+      <?php if ($this->backgroundStyleResponsive): ?><?= $this->backgroundStyleResponsive ?><?php endif; ?>
19
+    </style>
20
+  <?php endif; ?>
21
+  <div class="slide-content">
22
+
23
+  <?php if ($this->text): ?>
24
+    <span class="slide-text"><?= $this->text ?></span>
25
+  <?php endif; ?>
26
+
27
+  </div>
28
+  <?php if ($this->link || $this->imageLink): ?>
29
+    <a class="slide-url" href="<?= ($this->link ?: $this->imageLink) ?>"<?php if ($this->fullsize): ?> data-lightbox="<?= $this->lightboxId ?>"<?php endif; ?>></a>
30
+  <?php endif; ?>
31
+</div>
32
+
33
+<?php $this->endblock(); ?>