';
echo "";/*.at-action-wrapper*/
}
?>
$online_shop_feature_post_number,
'post_status' => 'publish',
'post_type' => 'product',
'no_found_rows' => 1,
'meta_query' => array(),
'tax_query' => array(
'relation' => 'AND',
)
);
if( 0 != $online_shop_feature_product_cat ){
$query_args['tax_query'][] = array(
'taxonomy' => 'product_cat',
'field' => 'term_id',
'terms' => $online_shop_feature_product_cat,
);
}
}
else{
$online_shop_feature_post_cat = $online_shop_customizer_all_values['online-shop-feature-post-cat'];
$query_args = array(
'posts_per_page' => $online_shop_feature_post_number,
'no_found_rows' => true,
'post_status' => 'publish',
'ignore_sticky_posts' => true,
'post__not_in' => $sticky
);
if( 0 != $online_shop_feature_post_cat ){
$query_args['cat'] = $online_shop_feature_post_cat;
}
}
$slider_query = new WP_Query( $query_args );
if ( $slider_query->have_posts() ):
while ($slider_query->have_posts()): $slider_query->the_post();
if (has_post_thumbnail()) {
$image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
}
else {
$image_url[0] = get_template_directory_uri() . '/assets/img/default-image.jpg';
}
$bg_image_style = '';
if( 'full-screen-bg' == $online_shop_fs_image_display_options ){
$bg_image_style = 'background-image:url(' . esc_url( $image_url[0] ) . ');background-repeat:no-repeat;background-size:cover;background-position:center;';
}
?>