<?php

/**
 * Theme Name: ESchool
 * Theme URI: http://demo.com/eschool
 * Author: demo.com
 * Author URI: http://demo.com
 * Description: Themes Is WordPress Theme Market
 * @package eschool
 */
get_header();
global $codedokan;
?> 



<?php				
						$obj = get_queried_object();
						$categroy_name = $obj->name;
						?>

			

 <!--================================
							Blog-Page-start
                      ===============================-->        
        <div class="blog-page">
                <div class="container">
                    <div class="row">              
                        <div class="col-lg-12 col-md-12">
                            <div class="video-p-title">
                               <?php echo $categroy_name;?> 
                                <div class="icon-class">
                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-image.png" alt="">
                                </div>
                            
                            </div>
                        </div>
                    </div>
                    <div class="row">
                    
					 <?php if(have_posts()) : while(have_posts()) : the_post();?>
					<div class="codedokan-3 codedokan-m2">
                        <div class="course-wrpp">
							<?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); if($image){?>
                                <figure class="course-image"><!--Image Crop: w:800px H:475px-->
                                    <img src="<?php echo $image; ?>" alt="">
                                </figure>
								<?php } ?>
                                <h4 class="course-title">
                                    <a href="<?php the_permalink()?>"><?php the_title() ?> </a>	
                                </h4>
                                <div class="course-priceContent">
								<?php $course_price = get_post_meta(get_the_ID(),'course_price', true); if($course_price){ ?>
                                    <div class="course-price">
                                        <?php echo $course_price; ?>
                                    </div>
								<?php } ?>

                                    <?php $more = get_post_meta(get_the_ID(),'courses_more_text', true); if($more){ ?>
									<div class="course-btn">
                                        <a href="<?php the_permalink()?>"> <?php echo $more; ?> </a>
                                    </div>
									<?php } ?>
									
									
                                </div><!--End Price-->
                            </div><!--End wrpp-->
                    </div>

                    
                   <?php endwhile; endif; ?> 

                    
                   

                    

                    </div>
                           
                    
                    <div class="row">
						 <div class="col-lg-12 col-md-12"><?php wp_bootstrap_pagination(); ?></div>
						</div>
                            
                    
                    
            </div>
        </div>
					<!--================================
							Archive-Page-End
                      ===============================-->
	        
				



<?php
get_footer();
?>    