wordpress/wp-content/themes/basic/themify/themify-builder/includes/components/base.php
/**
     * Computes and returns the HTML for a background slider.
     *
     * @since 2.3.3
     *
     * @param array  $row_or_col   Row or column definition.
     * @param string $order        Order of row/column (e.g. 0 or 0-1-0-1 for sub columns)
     * @param string $type Accepts 'row', 'col', 'sub-col'
     *
     * @return bool Returns false if $row_or_col doesn't have a bg slider. Otherwise outputs the HTML for the slider.
     */
Computes and returns the HTML for a background slider.

@param array  $row_or_col   Row or column definition.

@return bool Returns false if $row_or_col doesn't have a bg slider. Otherwise outputs the HTML for the slider.
Computes and returns the HTML for a background slider . @param array $row_or_col Row or column definition . @return bool Returns false if $row_or_col doesn ' t have a bg slider . Otherwise outputs the HTML for the slider .
public static function do_slider_background($row_or_col, $type = 'row') {
	if (!isset($row_or_col['styling']['background_type']) || 'slider' !== $row_or_col['styling']['background_type'] || empty($row_or_col['styling']['background_slider'])) {
	    return false;
	}
	$images = themify_get_gallery_shortcode($row_or_col['styling']['background_slider']);
	if (!empty($images)) :
	    $size = isset($row_or_col['styling']['background_slider_size']) ? $row_or_col['styling']['background_slider_size'] : false;
	    if (!$size) {
		$size = themify_get_gallery_shortcode_params($row_or_col['styling']['background_slider'], 'size');
		if (!$size)
		    $size = 'large';
	    }
	    $bgmode = !empty($row_or_col['styling']['background_slider_mode']) ? $row_or_col['styling']['background_slider_mode'] : 'fullcover';
	    $slider_speed = !empty($row_or_col['styling']['background_slider_speed']) ?$row_or_col['styling']['background_slider_speed'] : '2000';
	    ?>
	    <div class="tf_hide <?php echo $type; ?>-slider tb_slider" data-bgmode="<?php echo $bgmode; ?>" data-sliderspeed="<?php echo $slider_speed ?>">
	        <ul class="tf_abs row-slider-slides tf_clearfix">
		    <?php
		    foreach($images as $i=>$img) {
			$img_data = wp_get_attachment_image_src($img->ID, $size);
			?>
			<li data-bg="<?php echo esc_url(themify_https_esc($img_data[0])); ?>" class="normal">
			    <a class="row-slider-dot" data-index="<?php echo $i; ?>"></a>
			</li>
			<?php
		    }
		    ?>
	        </ul>
	        <div class="row-slider-nav">
	    	<a class="tf_abs row-slider-arrow row-slider-prev">&lsaquo;</a>
	    	<a class="tf_abs row-slider-arrow row-slider-next">&rsaquo;</a>
	        </div>
	    </div>
	    <!-- /.row-bgs -->
	    <?php
		return true;
	endif; 
	return false;
    }
public static function do_slider_background ( $ row_or_col , $ type = 'row' ) { if ( ! isset ( $ row_or_col [ 'styling' ] [ 'background_type' ] ) || 'slider' !== $ row_or_col [ 'styling' ] [ 'background_type' ] || empty ( $ row_or_col [ 'styling' ] [ 'background_slider' ] ) ) { return false ; } $ images = themify_get_gallery_shortcode ( $ row_or_col [ 'styling' ] [ 'background_slider' ] ) ; if ( ! empty ( $ images ) ) : $ size = isset ( $ row_or_col [ 'styling' ] [ 'background_slider_size' ] ) ? $ row_or_col [ 'styling' ] [ 'background_slider_size' ] : false ; if ( ! $ size ) { $ size = themify_get_gallery_shortcode_params ( $ row_or_col [ 'styling' ] [ 'background_slider' ] , 'size' ) ; if ( ! $ size ) $ size = 'large' ; } $ bgmode = ! empty ( $ row_or_col [ 'styling' ] [ 'background_slider_mode' ] ) ? $ row_or_col [ 'styling' ] [ 'background_slider_mode' ] : 'fullcover' ; $ slider_speed = ! empty ( $ row_or_col [ 'styling' ] [ 'background_slider_speed' ] ) ? $ row_or_col [ 'styling' ] [ 'background_slider_speed' ] : '2000' ; ?> <div class="tf_hide  <?php echo $ type ; ?> -slider tb_slider" data-bgmode=" <?php echo $ bgmode ; ?> " data-sliderspeed=" <?php echo $ slider_speed ?> ">
	        <ul class="tf_abs row-slider-slides tf_clearfix">
		     <?php foreach ( $ images as $ i => $ img ) { $ img_data = wp_get_attachment_image_src ( $ img -> ID , $ size ) ; ?> <li data-bg=" <?php echo esc_url ( themify_https_esc ( $ img_data [ 0 ] ) ) ; ?> " class="normal">
			    <a class="row-slider-dot" data-index=" <?php echo $ i ; ?> "></a>
			</li>
			 <?php } ?> </ul>
	        <div class="row-slider-nav">
	    	<a class="tf_abs row-slider-arrow row-slider-prev">&lsaquo;</a>
	    	<a class="tf_abs row-slider-arrow row-slider-next">&rsaquo;</a>
	        </div>
	    </div>
	    <!-- /.row-bgs -->
	     <?php return true ; endif ; return false ; }
Computes and returns the HTML for a background slider.
Computes and returns the HTML for a background slider .
// images