We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d26093 commit 18d3296Copy full SHA for 18d3296
app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml
@@ -68,6 +68,9 @@
68
"thumbheight": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_small', 'height')
69
?: $block->getImageAttribute('product_page_image_small', 'width'); ?>,
70
<?php endif; ?>
71
+ <?php if (($block->getVar("gallery/thumbmargin"))): ?>
72
+ "thumbmargin": <?php echo $block->getVar("gallery/thumbmargin"); ?>,
73
+ <?php endif; ?>
74
<?php if ($block->getImageAttribute('product_page_image_medium', 'height') || $block->getImageAttribute('product_page_image_medium', 'width')): ?>
75
"height": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_medium', 'height')
76
?: $block->getImageAttribute('product_page_image_medium', 'width'); ?>,
0 commit comments