Skip to content

Commit

Permalink
Merge pull request #1279 from Ubersmake/Revert-STRF-5007
Browse files Browse the repository at this point in the history
Revert #1278
  • Loading branch information
Ubersmake authored Jun 20, 2018
2 parents fb391a2 + 55f20e0 commit 038348e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- Add alias for lazysizes module to bundle minified library [#1275](https://github.com/bigcommerce/cornerstone/pull/1275)
- Fix prices not showing in quick search while logged in when "Restrict to Login" for price display is true [#1272](https://github.com/bigcommerce/cornerstone/pull/1272)
- Display product reviews in tabbed content region of product page [#1273](https://github.com/bigcommerce/cornerstone/pull/1273)
- Disable zoom and link for default "No Image" image. [#1278](https://github.com/bigcommerce/cornerstone/pull/1278)
- Fix duplicate input ID's in product review form [#1276](https://github.com/bigcommerce/cornerstone/pull/1276)

## 2.1.0 (2018-06-01)
Expand Down
24 changes: 9 additions & 15 deletions templates/components/products/product-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,17 @@ <h2 class="productView-brand"{{#if schema}} itemprop="brand" itemscope itemtype=

<section class="productView-images" data-image-gallery>
<figure class="productView-image"
{{#if product.main_image}}
data-image-gallery-main
data-zoom-image="{{getImage product.main_image 'zoom_size' (cdn theme_settings.default_image_product)}}"
{{/if}}
data-image-gallery-main
data-zoom-image="{{getImage product.main_image 'zoom_size' (cdn theme_settings.default_image_product)}}"
>
<div class="productView-img-container">
{{#if product.main_image}}
<a href="{{getImage product.main_image 'zoom_size' (cdn theme_settings.default_image_product)}}">
<img class="productView-image--default lazyload"
data-sizes="auto"
src="{{cdn 'img/loading.svg'}}"
data-src="{{getImage product.main_image 'product_size' (cdn theme_settings.default_image_product)}}"
alt="{{product.main_image.alt}}" title="{{product.main_image.alt}}" data-main-image>
</a>
{{else}}
<img class="productView-image--default" src="{{cdn theme_settings.default_image_product}}">
{{/if}}
<a href="{{getImage product.main_image 'zoom_size' (cdn theme_settings.default_image_product)}}">
<img class="productView-image--default lazyload"
data-sizes="auto"
src="{{cdn 'img/loading.svg'}}"
data-src="{{getImage product.main_image 'product_size' (cdn theme_settings.default_image_product)}}"
alt="{{product.main_image.alt}}" title="{{product.main_image.alt}}" data-main-image>
</a>
</div>
</figure>
<ul class="productView-thumbnails"{{#gt product.images.length 5}} data-slick='{
Expand Down

0 comments on commit 038348e

Please sign in to comment.