'slider',
);
if( isset( $widget_group ) && $widget_group != '' ) :
$loop_array2 = array(
'tax_query' => array(
array(
'taxonomy' => 'slider-group',
'field' => 'slug',
'terms' => $widget_group,
),
),
);
$loop_array = array_merge( $loop_array, $loop_array2 );
endif;
$loop = new WP_Query( $loop_array );
while ( $loop->have_posts() ) : $loop->the_post();
$class1 = (string) NULL;
$class2 = (string) NULL;
$style1 = (string) NULL;
$image = esc_url( get_post_meta( get_the_ID(), 'wpcf-background-image', true ));
$caption = esc_attr( get_post_meta( get_the_ID(), 'wpcf-caption', true ));
$caption2 = esc_attr( get_post_meta( get_the_ID(), 'wpcf-caption2', true ));
$button_name = esc_attr( get_post_meta( get_the_ID(), 'wpcf-button-name', true ));
$button_url = esc_url( get_post_meta( get_the_ID(), 'wpcf-button-url', true ));
if( !$button_url ) $button_url = '#';
$button_icon = esc_attr( get_post_meta( get_the_ID(), 'wpcf-button-icon', true ));
$button_name2 = esc_attr( get_post_meta( get_the_ID(), 'wpcf-button-name2', true ));
$button_url2 = esc_url( get_post_meta( get_the_ID(), 'wpcf-button-url2', true ));
if( !$button_url2 ) $button_url2 = '#';
$button_icon2 = esc_attr( get_post_meta( get_the_ID(), 'wpcf-button-icon2', true ));
$background_color = esc_attr( get_post_meta( get_the_ID(), 'wpcf-background-color', true ));
$background_shadow = esc_attr( get_post_meta( get_the_ID(), 'wpcf-background-shadow', true ));
$background_pattern = esc_attr( get_post_meta( get_the_ID(), 'wpcf-background-texture', true ));
$caption_background = esc_attr( get_post_meta( get_the_ID(), 'wpcf-caption-background', true ));
$align_horizontal = esc_attr( get_post_meta( get_the_ID(), 'wpcf-text-horizontal', true ));
$align_vertical = esc_attr( get_post_meta( get_the_ID(), 'wpcf-text-vertical', true ));
if( !$background_shadow ) {
$class1.= ' remove-shadow';
}
if( $image ) {
$style1.= "background-image: url($image);";
}
if( $background_color ) {
$style1.= "background-color: $background_color;";
}
if( $background_pattern ) {
$class2.= ' slide-patern-show';
}
if( $align_vertical == 'top' ) {
$class2.= ' slide-align-top';
}
if( $align_horizontal == 'left' ) {
$class2.= ' slide-align-left';
} else if( $align_horizontal == 'right' ) {
$class2.= ' slide-align-right';
}
if( $caption_background ) {
$class2.= ' caption-background';
}
?>
slideshow-slide" style="">