Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
ENGCOM-1296: [2.2] Add support for fotorama 'thumbmargin' setting wit…
Browse files Browse the repository at this point in the history
…hin a theme's view.xml #68

 - Merge Pull Request magento-partners/magento2ce#68 from gil--/magento2ce:hotfix/fotorama-margin-setting
 - Merged commits:
   1. 18d3296
   2. 30b7d1d
   3. f1d1deb
  • Loading branch information
magento-engcom-team committed Apr 16, 2018
2 parents 8389f7a + f1d1deb commit 5202212
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"thumbheight": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_small', 'height')
?: $block->getImageAttribute('product_page_image_small', 'width'); ?>,
<?php endif; ?>
<?php if (($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')
?: $block->getImageAttribute('product_page_image_medium', 'width'); ?>,
Expand Down

0 comments on commit 5202212

Please sign in to comment.