Skip to content

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
  • Loading branch information
Stanislav Idolov authored Apr 19, 2018
2 parents 9782be3 + 5202212 commit d0b1c65
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 d0b1c65

Please sign in to comment.