<?php
/**
 *  UABB Video Gallery Module file
 *
 *  @package UABB Video Gallery Module
 */

?>

jQuery(document).ready(function() {
	new UABBVideoGallery({
		id: '<?php echo $id; ?>',
		layout:'<?php echo $settings->layout; ?>',
		action:'<?php echo $settings->click_action; ?>',
		slidesToShow:<?php echo ( $settings->gallery_columns ) ? $settings->gallery_columns : '4'; ?>,
		slidesToScroll :<?php echo ( $settings->slides_to_scroll ) ? $settings->slides_to_scroll : '1'; ?>,
		autoplaySpeed:<?php echo ( $settings->autoplay_speed ) ? $settings->autoplay_speed : '5000'; ?>,
		autoplay:<?php echo ( 'yes' === $settings->autoplay ) ? 'true' : 'false'; ?>,
		infinite:<?php echo ( 'yes' === $settings->infinite ) ? 'true' : 'false'; ?>,
		pauseOnHover:<?php echo ( 'yes' === $settings->pause_on_hover ) ? 'true' : 'false'; ?>,
		speed:<?php echo ( $settings->transition_speed ) ? $settings->transition_speed : '500'; ?>,
		arrows:<?php echo ( 'yes' === $settings->enable_arrow ) ? 'true' : 'false'; ?>,
		dots:<?php echo ( 'yes' === $settings->enable_dots ) ? 'true' : 'false'; ?>,
		small_breakpoint: <?php echo $global_settings->responsive_breakpoint; ?>,
		medium_breakpoint: <?php echo $global_settings->medium_breakpoint; ?>,
		medium:<?php echo ( $settings->gallery_columns_medium ); ?>,
		small:<?php echo ( $settings->gallery_columns_responsive ); ?>,
		slidesToScroll_medium :<?php echo ( $settings->slides_to_scroll_medium ) ? $settings->slides_to_scroll_medium : '1'; ?>,
		slidesToScroll_small :<?php echo ( $settings->slides_to_scroll_responsive ) ? $settings->slides_to_scroll_responsive : '1'; ?>,
	});
});
