jquery(function ($) {
var $maxslider = $('.maxslider');
$maxslider.each(function () {
var $this = $(this);
var navigation = $this.data('navigation');
$this.slick({
dots: navigation === 'dots',
arrows: navigation === 'arrows',
autoplay: $this.data('autoslide'),
autoplayspeed: $this.data('slide-speed'),
fade: $this.data('effect') === 'fade',
speed: 600,
prevarrow: '',
nextarrow: '',
responsive: [
{
breakpoint: 767,
settings: {
arrows: false,
dots: !!navigation
}
}
]
});
})
});