summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_printshop/producttemplate.phtml2
-rw-r--r--views/mods/mod_productvariants/frontend.js1
-rw-r--r--views/mods/mod_productvariants/produkt_addedit_content.phtml2
3 files changed, 3 insertions, 2 deletions
diff --git a/views/mods/mod_printshop/producttemplate.phtml b/views/mods/mod_printshop/producttemplate.phtml
index 19e3cf0..e504ea4 100644
--- a/views/mods/mod_printshop/producttemplate.phtml
+++ b/views/mods/mod_printshop/producttemplate.phtml
@@ -66,7 +66,7 @@
<?php /* URL für die Lightbox */ ?>
<?php $att = wp_get_attachment_image_src($arAttachmentIDsAll[$i], array(800, 600), false); ?>
- <a <?php if ($arAttachmentIDsAll[$i] != $arAttachmentID) echo 'style="display:none;"'; ?> rel="gallery-wpsg-<?php echo $this->getTemplateIndex(); ?>" title="<?php echo $this->getProductName($this->view['data']['id']); ?>" href="<?php echo $att[0]; ?>" class="thickbox">
+ <a <?php if ($arAttachmentIDsAll[$i] != $arAttachmentID) echo 'style="display:none;"'; ?> data-fslightbox="<?php echo $this->getTemplateIndex(); ?>" title="<?php echo $this->getProductName($this->view['data']['id']); ?>" href="<?php echo $att[0]; ?>">
<?php echo wp_get_attachment_image($arAttachmentIDsAll[$i], array(300, 300), false, array()); ?>
diff --git a/views/mods/mod_productvariants/frontend.js b/views/mods/mod_productvariants/frontend.js
index bb919d2..66db90d 100644
--- a/views/mods/mod_productvariants/frontend.js
+++ b/views/mods/mod_productvariants/frontend.js
@@ -18,6 +18,7 @@
'success': function(data) {
jQuery('#wpsg_produktform_' + template_index).replaceWith(data);
+ if (typeof refreshFsLightbox === 'function') refreshFsLightbox();
}
} );
diff --git a/views/mods/mod_productvariants/produkt_addedit_content.phtml b/views/mods/mod_productvariants/produkt_addedit_content.phtml
index 850b513..0d3779b 100644
--- a/views/mods/mod_productvariants/produkt_addedit_content.phtml
+++ b/views/mods/mod_productvariants/produkt_addedit_content.phtml
@@ -150,7 +150,7 @@
<script type="module">
- import { ref, createApp, onMounted, computed } from '/wp-content/plugins/wpshopgermany-free/views/js/vue.esm-browser.js';
+ import { ref, createApp, onMounted, computed } from '<?php echo plugin_dir_url(__FILE__); ?>/../../../js/vue.esm-browser.js';
document.addEventListener('DOMContentLoaded', () => {