From 18d3296acf94470319e747122b7e94d5434f3fa3 Mon Sep 17 00:00:00 2001 From: Gil Greenberg Date: Fri, 20 Oct 2017 15:24:51 -0400 Subject: [PATCH] Add support for fotorama 'thumbmargin' setting within a theme's view.xml 16 --- .../Catalog/view/frontend/templates/product/view/gallery.phtml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml index 5a064b33355a4..2bfe986b6dec2 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml @@ -68,6 +68,9 @@ "thumbheight": getImageAttribute('product_page_image_small', 'height') ?: $block->getImageAttribute('product_page_image_small', 'width'); ?>, + getVar("gallery/thumbmargin"))): ?> + "thumbmargin": getVar("gallery/thumbmargin"); ?>, + getImageAttribute('product_page_image_medium', 'height') || $block->getImageAttribute('product_page_image_medium', 'width')): ?> "height": getImageAttribute('product_page_image_medium', 'height') ?: $block->getImageAttribute('product_page_image_medium', 'width'); ?>,