Skip to content

Commit

Permalink
[2.2] Add support for fotorama 'thumbmargin' setting within a theme's…
Browse files Browse the repository at this point in the history
… view.xml #68
  • Loading branch information
VladimirZaets committed Apr 16, 2018
1 parent 18d3296 commit 30b7d1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
?: $block->getImageAttribute('product_page_image_small', 'width'); ?>,
<?php endif; ?>
<?php if (($block->getVar("gallery/thumbmargin"))): ?>
"thumbmargin": <?php echo $block->getVar("gallery/thumbmargin"); ?>,
"thumbmargin": <?= /* @noEscape */ (int)$block->getVar("gallery/thumbmargin"); ?>,
<?php endif; ?>
<?php if ($block->getImageAttribute('product_page_image_medium', 'height') || $block->getImageAttribute('product_page_image_medium', 'width')): ?>
"height": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_medium', 'height')
Expand Down

0 comments on commit 30b7d1d

Please sign in to comment.