<?php 
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! function_exists( 'ecommerce_comp_retailsy_slider' ) ) :
	function ecommerce_comp_retailsy_slider() {
	$slider_ttl 			= get_theme_mod('slider_ttl',__('Exclusive Offers 30% Off','ecommerce-companion'));
	$slider_subttl 			= get_theme_mod('slider_subttl',__('Hot Trending Collection 2023','ecommerce-companion'));
	$slider_desc 			= get_theme_mod('slider_desc',__('Lorem, ipsum dolor sit amet consectetur adipisicing elit. Natus omnis laborum nulla aut eaque, quidem, atque eum at incidunt, nesciunt officiis  mollitia voluptas saepe quae neque? Optio dicta aliquid ipsa?','ecommerce-companion'));
	$slider_bg_img 			= get_theme_mod('slider_bg_img', esc_url(ECOMMERCE_COMP_PLUGIN_URL . 'inc/themes/storefit/assets/images/homepage1/page-slider/slider.png'));
	$slider_product_img		= get_theme_mod('slider_product_img', esc_url(ECOMMERCE_COMP_PLUGIN_URL . 'inc/themes/storefit/assets/images/homepage1/page-slider/product.png'));
	$slider_btn_lbl 		= get_theme_mod('slider_btn_lbl',__('Shop Now','ecommerce-companion'));
	$slider_btn_url 		= get_theme_mod('slider_btn_url','#');
?>	
<section class="slider3">
	<div class="jcs-container">
		<div class="slider3-flex jcs-row jcs-jf-fe">
			<div class="page2-slider-wrapper down  no_slider">
				<div class="page2-slider">
					<div class="slider3-wrap">
						<?php if ( ! empty( $slider_bg_img ) ) : ?>
							<img src="<?php echo esc_url($slider_bg_img); ?>" <?php if ( ! empty( $slider_ttl ) ) : ?>alt="<?php echo esc_html($slider_ttl); ?>"<?php endif; ?>>
						<?php endif; ?>	
						<div class="jcs-row">
							<div class="banner-text-section">
								<?php if ( ! empty( $slider_ttl ) ) : ?>
									<div class="banner-main-content down animate seven"><?php echo esc_html($slider_ttl); ?></div>
								<?php endif; ?>	
								
								<?php if ( ! empty( $slider_subttl ) ) : ?>
									<div class="offer down animate seven"><?php echo esc_html($slider_subttl); ?></div>
								<?php endif; ?>	
								
								<div class="bubble-flex item-wrapper gap10">								
									<?php if ( ! empty( $slider_btn_lbl ) ) : ?>
										<a href="<?php echo esc_url($slider_btn_url); ?>" class="cbb orange"><span><?php echo esc_html($slider_btn_lbl); ?></span><i
											class="fa fa-chevron-right"></i></a>
									<?php endif; ?>		
								</div>
							</div>
							<?php if ( ! empty( $slider_product_img ) ) : ?>
								<div class="page2-slider-image"><img src="<?php echo esc_url($slider_product_img); ?>" alt="Product">
								</div>
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
<?php
}
endif;
if ( function_exists( 'ecommerce_comp_retailsy_slider' ) ) {
$ecommerce_companion_section_priority = apply_filters( 'retailsy_section_priority', 11, 'ecommerce_comp_retailsy_slider' );
add_action( 'retailsy_sections', 'ecommerce_comp_retailsy_slider', absint( $ecommerce_companion_section_priority ) );
}
?>