Skip to content

Commit

Permalink
Add support for fotorama 'thumbmargin' setting within a theme's view.xml
Browse files Browse the repository at this point in the history
<vars module="Magento_Catalog">
    <var name="gallery">
        <var name="thumbmargin">16</var>
    </var>
</var>
  • Loading branch information
Gil Greenberg committed Oct 20, 2017
1 parent 4d26093 commit 18d3296
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": <?php echo $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 18d3296

Please sign in to comment.