diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2024-02-23 09:48:40 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2024-02-23 09:48:40 +0000 |
| commit | a213c75de70eb59fd00c8d198c7ea18bc63889d2 (patch) | |
| tree | 74536c6c61d65225b1c8b7df801647e9c66d32a0 /views/mods | |
| parent | 08fe04e7b40ef58b4c3752cb0981d08af72674d9 (diff) | |
- Feature: Wordpress thickbox durch fslightbox ersetzt4.4.7
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8410 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_printshop/producttemplate.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_productvariants/frontend.js | 1 | ||||
| -rw-r--r-- | views/mods/mod_productvariants/produkt_addedit_content.phtml | 2 |
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', () => {
|
