<?php
 /* Template Name: Academic Calendar */ 
/**
 * 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;
?>  



						
					
					
                            
                	 
                <!--================================
                        Archive-Page-Start
                ===============================-->

            <div class="archive-page">
			
				<div class="row">              
                        <div class="col-lg-12 col-md-12">
                            <div class="video-p-title">
                               <?php echo the_title();?> 
                                <div class="icon-class">
                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-image.png" alt="">
                                </div>
                            
                            </div>
                        </div>
                    </div>
					
                <div class="container">
                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <thead>
                                     <tr>
                                   <th scope="col"> <?php echo $codedokan['calendar_serial'];?> </th>
                                  <th scope="col"> <?php echo $codedokan['calendar_particular'];?> </th>
                                  <th scope="col"> <?php echo $codedokan['calendar_duration'];?> </th>
                                  
                                 </tr>
                                </thead>
                                <tbody>

                                   <?php
		$the_query = new WP_Query( array('post_type'=>'calendar','order'=>'ASC','posts_per_page'=>500 ) 
                            ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>

                                 <tr>
                                   <th class="wrpper" scope="row"><?php echo get_post_meta(get_the_ID(),'calendar_serial', true); ?></th>
         
                                    <td class="wrpper"> <?php echo get_post_meta(get_the_ID(),'calendar_particular', true); ?>  </td>
                                     <td class="wrpper">
									 <?php echo get_post_meta(get_the_ID(),'calendar_duration', true); ?>
                                    </td>

                                 </tr>
                                 <?php endwhile;?>   
								 
                
                                </tbody>
                            </table>
                    </div>

                    
                
						</div>



                </div>
            </div>
                <!--================================
                        Archive-Page-End
                ===============================-->
        
                    
 
<?php
get_footer();
?>    