4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'app/helpers/workarea/storefront/product_media_slider_helper.rb', line 4
def mobile_pdp_image_slider_options(product_id)
{
waitForImages: true,
options: {
slidesToShow: 1,
slidesToScroll: 1,
autoplay: false,
mobileFirst: true,
dots: true,
arrows: true,
responsive: [
{
breakpoint: Workarea.config.storefront_break_points[:medium],
settings: {
slidesToShow: 4,
dots: false,
vertical: true,
verticalSwiping: true
}
}
]
},
forceSetPosition: true
}.to_json
end
|