HEX
Server: Apache
System: Linux web5.visualcom.es 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ensaco.es (10019)
PHP: 8.3.32
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/ensaco.es/httpdocs/wp-content/plugins/bb-plugin/includes/row-js.php
<?php

if ( 'slideshow' == $settings->bg_type ) :

	$source = FLBuilderModel::get_row_slideshow_source( $row );

	if ( ! empty( $source ) ) :

		?>
YUI({'logExclude': { 'yui': true } }).use('fl-slideshow', function(Y) {

	if( null === Y.one('.fl-node-<?php echo $id; ?> .fl-bg-slideshow') ) {
		return;
	}

	var oldSlideshow = Y.one('.fl-node-<?php echo $id; ?> .fl-bg-slideshow .fl-slideshow'),
		newSlideshow = new Y.FL.Slideshow({
			autoPlay            : true,
			bgslideshow         : true,
			crop                : true,
			loadingImageEnabled : false,
			randomize           : <?php echo $settings->ss_randomize; ?>,
			responsiveThreshold : 0,
			touchSupport        : false,
			source              : [{<?php echo $source; ?>}],
			speed               : <?php echo $settings->ss_speed * 1000; ?>,
			stretchy            : true,
			stretchyType        : 'contain',
			transition          : '<?php echo $settings->ss_transition; ?>',
			transitionDuration  : <?php echo ! empty( $settings->ss_transitionDuration ) ? $settings->ss_transitionDuration : 1; // @codingStandardsIgnoreLine ?>
		});

	if(oldSlideshow) {
		oldSlideshow.remove(true);
	}

	jQuery( '.fl-node-<?php echo $id; ?>' ).imagesLoaded( function(){
		newSlideshow.render('.fl-node-<?php echo $id; ?> .fl-bg-slideshow');
	} );
});
		<?php

	endif;

endif;

?>