Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+<div class="mod_pageimage">
2
+    <?php
3
+
4
+    $productheadImage = $this->replaceInsertTags('{{product::kopfbild}}');
5
+
6
+    if ($productheadImage != "") : ?>
7
+        <div class="page-image--holder lazy" data-bg="<?php echo \Image::get(\FilesModel::findByUuid($productheadImage)->path, null, null, null); ?>" style="background-position: center center; background-repeat: no-repeat; background-size: cover;">
8
+        </div>
9
+    <?php else : ?>
10
+
11
+
12
+        <?php foreach ($this->allImages as $image) : ?>
13
+            <div class="page-image--holder lazy" data-bg="<?php echo $image['picture']['img']['src']; ?>" style="background-position: center center; background-repeat: no-repeat; background-size: cover;">
14
+            </div>
15
+        <?php endforeach; ?>
16
+
17
+
18
+    <?php endif; ?>
19
+</div>