If more than one upload do something, greater than >

2 posts by 1 authors in: Forums > CMS Builder
Last Post: July 2, 2017   (RSS)

By Mikey - July 2, 2017 - edited: July 2, 2017

Of course just as soon as I post I get it figured out.

Here's my solution if anyone finds it helpful.

<script type="text/javascript">
$(function() {
        $('.bx-wrapper').bxSlider({
            auto: false,
            adaptiveHeight: true,
            pager: false,
                <?php if (count($productsRecord['uploads']) > 1):  ?>
            autoControls: false,
            captions: false,
            //pagerCustom: '#bx-pager',
            nextSelector: '.slider-next',
            prevSelector: '.slider-prev',
            nextText: '<i class="fa fa-chevron-circle-right"></i>',
            prevText: '<i class="fa fa-chevron-circle-left"></i>',
                <?php endif; ?>
            pause: 6000, // The amount of time (in ms) between each auto transition
            autoHover: true, // Auto show will pause when mouse hovers over slider
            mode: 'fade'
        });
    });
</script>

Zicky