Skip to content

Commit

Permalink
if statement position
Browse files Browse the repository at this point in the history
  • Loading branch information
yurytut1993 committed Sep 24, 2020
1 parent 8a37a0b commit 6b9fd96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/components/products/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"slidesToShow": 2,
"slidesToScroll": 1,
"slide": ".js-product-slide",
"prevArrow": ".js-product-prev-arrow{{#if customArrowClass}}.{{customArrowClass}}{{/if}}",
"nextArrow": ".js-product-next-arrow{{#if customArrowClass}}.{{customArrowClass}}{{/if}}",
"prevArrow": "{{#if customArrowClass}}.{{customArrowClass}}{{/if}}.js-product-prev-arrow",
"nextArrow": "{{#if customArrowClass}}.{{customArrowClass}}{{/if}}.js-product-next-arrow",
"responsive": [
{
"breakpoint": 800,
Expand All @@ -26,14 +26,14 @@
]
}'>
{{#if products.length '>' 1}}
<button aria-label="{{lang 'carousel.arrowAriaLabel'}} {{products.length}}" class="js-product-prev-arrow {{#if customArrowClass}}{{customArrowClass}}{{/if}} slick-prev slick-arrow"></button>
<button aria-label="{{lang 'carousel.arrowAriaLabel'}} {{products.length}}" class="{{#if customArrowClass}}{{customArrowClass}} {{/if}}js-product-prev-arrow slick-prev slick-arrow"></button>
{{/if}}
{{#each products}}
<div class="productCarousel-slide js-product-slide">
{{> components/products/card settings=../settings theme_settings=../theme_settings customer=../customer event="list" position=(add @index 1)}}
</div>
{{/each}}
{{#if products.length '>' 1}}
<button aria-label="{{lang 'carousel.arrowAriaLabel'}} {{products.length}}" class="js-product-next-arrow {{#if customArrowClass}}{{customArrowClass}}{{/if}} slick-next slick-arrow"></button>
<button aria-label="{{lang 'carousel.arrowAriaLabel'}} {{products.length}}" class="{{#if customArrowClass}}{{customArrowClass}} {{/if}}js-product-next-arrow slick-next slick-arrow"></button>
{{/if}}
</section>

0 comments on commit 6b9fd96

Please sign in to comment.