 <!--===// Start: Slider
    =================================--> 
<?php $slider 						= get_theme_mod('slider',themes_get_slider_default()); ?>	
<!-- slider section -->
<section class="slider-section">
	<div class="slide-carousel owl-carousel">
		<?php
			if ( ! empty( $slider ) ) {
			$slider = json_decode( $slider );
			foreach ( $slider as $slide_item ) {
				$title = ! empty( $slide_item->title ) ? apply_filters( 'glides_translate_single_string', $slide_item->title, 'slider section' ) : '';
				$text = ! empty( $slide_item->text ) ? apply_filters( 'glides_translate_single_string', $slide_item->text, 'slider section' ) : '';
				$button = ! empty( $slide_item->text2) ? apply_filters( 'glides_translate_single_string', $slide_item->text2,'slider section' ) : '';
				$link = ! empty( $slide_item->link ) ? apply_filters( 'glides_translate_single_string', $slide_item->link, 'slider section' ) : '';
				$image = ! empty( $slide_item->image_url ) ? apply_filters( 'glides_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
	
		?>
			<div class="slide-item">
				<div class="row">
					<div class="col-lg-6">
						<div class="slider-content">
							<div class="container">
								<div class="main-content">
									<?php if ( ! empty( $title ) ) : ?>
										<h1 class="slide-title">
											<?php echo esc_html($title); ?>	
										</h1> 
									<?php endif; ?>
									
									<?php if ( ! empty( $text ) ) : ?>
										<p class="slide-discription">
											<?php echo esc_html($text); ?> 
										</p>
									<?php endif; ?>
									
									<?php if ( ! empty( $button ) ) : ?>
										<a href="<?php echo esc_url( $link ); ?>" class="btn_main"> <?php echo esc_html( $button ); ?> </a>
									<?php endif; ?>
									
									<div class="parallelogram1"></div>
									<div class="parallelogram2"></div>
									<div class="parallelogram3"></div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-6">
						<img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr__('Slider Image','glides'); ?>">
					</div>
				</div>
			</div>
		<?php } } ?>
	</div>
</section>
<!-- slider section -->