<?php
/**
* @Theme Name	:	Educa
* @file         :	home-slider.php
* @package      :	educa
* @author       :	Theme Farmer
* @license      :	readme.txt
* @filesource   :	wp-content/themes/educa/templates/home-slider.php
*/
$theme_data = educa_get_theme_var();
?>
<!-- Slider Start -->
<?php if(!$theme_data['hide_home_slider']):?>
<!-- Slider Start -->
<section class="row edu_slider">
	<div class="swiper-container swiper1">
		<div class="swiper-wrapper">
			<div class="swiper-slide">
				<img src="<?php echo esc_url($theme_data['slider_image_one']); ?>" class="img-responsive" alt="<?php echo esc_attr($theme_data['slide_1']->post_title); ?>"/>
				<div class="sld-overlay"></div>
				<div class="carousel-caption">
					<div class="container">
						<h1 class="animation fade-in-up"><?php echo esc_html($theme_data['slide_1']->post_title); ?></h1>
						<p class="animation zoom-in"><?php echo esc_html($theme_data['slide_1']->post_content); ?></p>
						<a href="<?php echo esc_url($theme_data['slide_button_link']); ?>" class="btn btn-success animation zoom-in-up"> <?php echo esc_html($theme_data['slide_button_text']); ?></a>
					</div>
				</div>
			</div>
			<div class="swiper-slide">
				<img src="<?php echo esc_url($theme_data['slider_image_two']); ?>" class="img-responsive" alt="<?php echo esc_attr($theme_data['slide_2']->post_title); ?>"/>
				<div class="sld-overlay"></div>
				<div class="carousel-caption">
					<div class="container">
						<h1 class="animation fade-in-up"><?php echo esc_html($theme_data['slide_2']->post_title); ?></h1>
						<p class="animation zoom-in"><?php echo esc_html($theme_data['slide_2']->post_content); ?></p>
						<a href="<?php echo esc_url($theme_data['slide_button_link']); ?>" class="btn btn-success animation zoom-in-up"> <?php echo esc_html($theme_data['slide_button_text']); ?></a>
					</div>
				</div>
			</div>
			<div class="swiper-slide">
				<img src="<?php echo esc_url($theme_data['slider_image_three']); ?>" class="img-responsive" alt="<?php echo esc_attr($theme_data['slide_3']->post_title); ?>"/>
				<div class="sld-overlay"></div>
				<div class="carousel-caption">
					<div class="container">
						<h1 class="animation fade-in-up"><?php echo esc_html($theme_data['slide_3']->post_title); ?></h1>
						<p class="animation zoom-in"><?php echo esc_html($theme_data['slide_3']->post_content); ?></p>
						<a href="<?php echo esc_url($theme_data['slide_button_link']); ?>" class="btn btn-success animation zoom-in-up"> <?php echo esc_html($theme_data['slide_button_text']); ?></a>
					</div>
				</div>
			</div>				
		</div>
		<!-- Add Pagination -->
		<div class="swiper-pagination swiper-pagination1"></div>
		<!-- Add Arrows -->
		<div class="swiper-button-next swiper-button-next1"><i class="fa fa-angle-right"></i></div>
		<div class="swiper-button-prev swiper-button-prev1"><i class="fa fa-angle-left"></i></div>
	</div>
</section>
<!-- Slider End -->
	
    <?php endif; ?>
    