   <?php
/**
 * Theme Name: EduCare
 * Theme URI: http://demo.com/educare
 * Author: demo.com
 * Author URI: http://demo.com
 * Description: Themes Is WordPress Theme Market
 * @package eschool
 */
 global $codedokan;
 ?>   

<?php 
								$count_posts = wp_count_posts( 'slider' )->publish;
								if ($count_posts == 0){
									get_template_part( 'template-parts/html/slider' );
								}else{
								?>


								
            <!--=========codedokan==============
                        Slider section Start
            =============codedokan=============-->  
        <div class="slider-section">
            <div class="slider-content">
                <div class="slider-active owl-carousel">
                    
					<?php
					$how = $codedokan['how_slider_image'];
									$code_dokan = new WP_Query(array(
										'post_type' => 'slider',
										'offset'     =>0,
										'posts_per_page' =>$how,
									));
									while($code_dokan->have_posts()) : $code_dokan->the_post(); ?>
									
					<div class="slider_wrpp">
					<?php $slider_image = get_post_meta(get_the_ID(),'slider_image', true); 
								 if($slider_image){ ?>
                        <div class="slide_image">
                            <a href=""> <img src="<?php echo $slider_image; ?>" /> </a>               
                        </div>
								 <?php } ?>
                        <div class="slider-padding">
                            <div class="container">
                                <div class="slider-item">
                                    <h1 class="slider-title">
                                         <?php the_title() ?>
                                    </h1>                            
                                </div>
                            </div>
                        </div>
                    </div>
					
					<?php endwhile;?>

                  
                   
                
                </div>
            </div>
        </div>
            
            <!--=========codedokan==============
                Slider section End
            =============codedokan=============-->  
                                
                     <?php } ?>
                    