    <?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( 'information' )->publish;
								if ($count_posts == 0){
									get_template_part( 'template-parts/html/information' );
								}else{
								?>

                    <!--=========codedokan==============
                             Information section Start
                    =============codedokan=============-->  
        <section class="information-area">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="secTitle">
                            <?php echo $codedokan['information_title']; ?>
                        </h1>
        
                        <div class="sec-content2">
                            <h1 class="sec-title2">
                                <?php echo $codedokan['information_title']; ?>
                            </h1>
                            <img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-image.png" alt="">
                        </div>
        
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-12 col-md-12 info_color">
                        
                        <ul class="nav nav-pills" id="information-tab" role="tablist">
						<?php
								$term_id_one = $codedokan['information_cat_one'];
								$term_id_two = $codedokan['information_cat_two'];
								$term_id_three = $codedokan['information_cat_three'];
								$term_id_four = $codedokan['information_cat_four'];
								$term_id_five = $codedokan['information_cat_five'];
							?>
							
                            <?php if($term_id_one){ ?>
							<li class="nav-item" role="presentation">
                              <div class="nav-link active" id="Infomation-tab1" data-bs-toggle="pill" data-bs-target="#Info-tabs1" role="tab" aria-controls="Info-tabs1" aria-selected="true"> <?php if($term_id_one){$cat_name = get_term($term_id_one); echo $cat_name->name;} ?> </div>
                            </li>
							<?php } ?>


                            <?php if($term_id_two){ ?>
							<li class="nav-item" role="presentation">
                              <div class="nav-link" id="Infomation-tab2" data-bs-toggle="pill" data-bs-target="#Info-tabs2" role="tab" aria-controls="Info-tabs2" aria-selected="false"> <?php if($term_id_two){$cat_name = get_term($term_id_two); echo $cat_name->name;} ?> </div>
                            </li>
							<?php } ?>


                            <?php if($term_id_three){ ?>
							<li class="nav-item" role="presentation">
                              <div class="nav-link" id="Infomation-tab3" data-bs-toggle="pill" data-bs-target="#Info-tabs3" role="tab" aria-controls="Info-tabs3" aria-selected="false"> <?php if($term_id_three){$cat_name = get_term($term_id_three); echo $cat_name->name;} ?> </div>
                            </li>
							<?php } ?>

                            <?php if($term_id_four){ ?>
							<li class="nav-item" role="presentation">
                              <div class="nav-link" id="Infomation-tab4" data-bs-toggle="pill" data-bs-target="#Info-tabs4" role="tab" aria-controls="Info-tabs4" aria-selected="false"> <?php if($term_id_four){$cat_name = get_term($term_id_four); echo $cat_name->name;} ?> </div>
                            </li>
							<?php } ?>

                            <?php if($term_id_five){ ?>
							<li class="nav-item" role="presentation">
                              <div class="nav-link" id="Infomation-tab5" data-bs-toggle="pill" data-bs-target="#Info-tabs5" role="tab" aria-controls="Info-tabs5" aria-selected="false"> <?php if($term_id_five){$cat_name = get_term($term_id_five); echo $cat_name->name;} ?> </div>
                            </li>
							<?php } ?>

                       

                        </ul>

                          
                        <div class="tab-content" id="pills-tabContent">
                            <?php if($term_id_one){ ?>
							<div class="tab-pane fade show active" id="Info-tabs1" role="tabpanel" aria-labelledby="Infomation-tab1 ">
								
								
								<?php
								$term = get_term_by( 'id', $term_id_one, 'informationcat' );
                                $cat_name = $term->name;    
                                $cat_slug = $term->slug; 
								$how_post = $codedokan['how_information'];
								
							?>
							<?php   
									$args = array( 
										'post_type' => 'information',
										'posts_per_page' => $how_post,
										  'tax_query' => array(
											'relation' => 'OR',     
											array(
												'taxonomy' => 'informationcat',
												'field'    => 'slug',
												'terms'    => $cat_slug,
											),
								
											) 
										); 
									$loop = new WP_Query( $args );
									while ( $loop->have_posts() ) : $loop->the_post(); ?>
									
								<div class="information-wrpp">
                                    <div class="row">
                                        <div class="col-lg-2 col-md-2">
                                            <div class="date-content">
                                                <figure class="calender">
                                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/calendar.png" alt="">
                                                </figure>
                                                <div class="info-date">
                                                    <span> <?php echo get_the_time("j"); ?>  </span> <?php echo get_the_time("m-Y"); ?>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 col-md-6">
                                            <div class="infoContent ">
                                                <i class="las la-hand-point-right"></i> <a href=""> <?php the_title() ?> </a>

                                            </div>
                                        </div>
                                        <div class="col-lg-4 col-md-4">
                                           <div class="viewDownload">
                                                <ul>
												
												

												<?php if( '' !== get_post()->post_content ) { ?>
                                                    <li class="view-d">  <a href="<?php the_permalink()?>"> <?php echo $codedokan['info_view']; ?> <span> <i class="las la-eye"></i></span> </a></li>
												<?php } ?>
												<?php $information_image = get_post_meta(get_the_ID(),'information_image', true); if($information_image){ ?>
                                                    <li class="view-d"> <a href="<?php echo $information_image; ?>" target="_blank"> <?php echo $codedokan['info_download']; ?> <span> <i class="las la-download"></i></span>  </a> </li>
												<?php } ?>
                                                </ul>
                                           </div>

                                        </div>


                                    </div>
                                </div>
								
								 <?php endwhile; wp_reset_query(); ?> 
								
								
                            </div>
							<?php } ?>


                            <?php if($term_id_two){ ?>
							<div class="tab-pane fade" id="Info-tabs2" role="tabpanel" aria-labelledby="Infomation-tab2">
                                
								<?php
								$term = get_term_by( 'id', $term_id_two, 'informationcat' );
                                $cat_name = $term->name;    
                                $cat_slug = $term->slug; 
								$how_post = $codedokan['how_information'];
								
							?>
							<?php   
									$args = array( 
										'post_type' => 'information',
										'posts_per_page' => $how_post,
										  'tax_query' => array(
											'relation' => 'OR',     
											array(
												'taxonomy' => 'informationcat',
												'field'    => 'slug',
												'terms'    => $cat_slug,
											),
								
											) 
										); 
									$loop = new WP_Query( $args );
									while ( $loop->have_posts() ) : $loop->the_post(); ?>
									
								<div class="information-wrpp">
                                    <div class="row">
                                        <div class="col-lg-2 col-md-2">
                                            <div class="date-content">
                                                <figure class="calender">
                                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/calendar.png" alt="">
                                                </figure>
                                                <div class="info-date">
                                                    <span> <?php echo get_the_time("j"); ?>  </span> <?php echo get_the_time("m-Y"); ?>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 col-md-6">
                                            <div class="infoContent ">
                                                <i class="las la-hand-point-right"></i> <a href=""> <?php the_title() ?> </a>

                                            </div>
                                        </div>
                                        <div class="col-lg-4 col-md-4">
                                           <div class="viewDownload">
                                                <ul>
												
												

												<?php if( '' !== get_post()->post_content ) { ?>
                                                    <li class="view-d">  <a href="<?php the_permalink()?>"> <?php echo $codedokan['info_view']; ?> <span> <i class="las la-eye"></i></span> </a></li>
												<?php } ?>
												<?php $information_image = get_post_meta(get_the_ID(),'information_image', true); if($information_image){ ?>
                                                    <li class="view-d"> <a href="<?php echo $information_image; ?>" target="_blank"> <?php echo $codedokan['info_download']; ?> <span> <i class="las la-download"></i></span>  </a> </li>
												<?php } ?>
                                                </ul>
                                           </div>

                                        </div>


                                    </div>
                                </div>
								
								 <?php endwhile; wp_reset_query(); ?> 
                                
                              
                          
                              
                            </div>
							<?php } ?>


                            <?php if($term_id_three){ ?>
							<div class="tab-pane fade" id="Info-tabs3" role="tabpanel" aria-labelledby="Infomation-tab3">
                                
								<?php
								$term = get_term_by( 'id', $term_id_three, 'informationcat' );
                                $cat_name = $term->name;    
                                $cat_slug = $term->slug; 
								$how_post = $codedokan['how_information'];
								
							?>
							<?php   
									$args = array( 
										'post_type' => 'information',
										'posts_per_page' => $how_post,
										  'tax_query' => array(
											'relation' => 'OR',     
											array(
												'taxonomy' => 'informationcat',
												'field'    => 'slug',
												'terms'    => $cat_slug,
											),
								
											) 
										); 
									$loop = new WP_Query( $args );
									while ( $loop->have_posts() ) : $loop->the_post(); ?>
									
								<div class="information-wrpp">
                                    <div class="row">
                                        <div class="col-lg-2 col-md-2">
                                            <div class="date-content">
                                                <figure class="calender">
                                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/calendar.png" alt="">
                                                </figure>
                                                <div class="info-date">
                                                    <span> <?php echo get_the_time("j"); ?>  </span> <?php echo get_the_time("m-Y"); ?>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 col-md-6">
                                            <div class="infoContent ">
                                                <i class="las la-hand-point-right"></i> <a href=""> <?php the_title() ?> </a>

                                            </div>
                                        </div>
                                        <div class="col-lg-4 col-md-4">
                                           <div class="viewDownload">
                                                <ul>
												
												

												<?php if( '' !== get_post()->post_content ) { ?>
                                                    <li class="view-d">  <a href="<?php the_permalink()?>"> <?php echo $codedokan['info_view']; ?> <span> <i class="las la-eye"></i></span> </a></li>
												<?php } ?>
												<?php $information_image = get_post_meta(get_the_ID(),'information_image', true); if($information_image){ ?>
                                                    <li class="view-d"> <a href="<?php echo $information_image; ?>" target="_blank"> <?php echo $codedokan['info_download']; ?> <span> <i class="las la-download"></i></span>  </a> </li>
												<?php } ?>
                                                </ul>
                                           </div>

                                        </div>


                                    </div>
                                </div>
								
								 <?php endwhile; wp_reset_query(); ?> 
                                

                          
                            </div>
							<?php } ?>

                            <?php if($term_id_four){ ?>
							<div class="tab-pane fade" id="Info-tabs4" role="tabpanel" aria-labelledby="Infomation-tab4">
                                
								<?php
								$term = get_term_by( 'id', $term_id_four, 'informationcat' );
                                $cat_name = $term->name;    
                                $cat_slug = $term->slug; 
								$how_post = $codedokan['how_information'];
								
							?>
							<?php   
									$args = array( 
										'post_type' => 'information',
										'posts_per_page' => $how_post,
										  'tax_query' => array(
											'relation' => 'OR',     
											array(
												'taxonomy' => 'informationcat',
												'field'    => 'slug',
												'terms'    => $cat_slug,
											),
								
											) 
										); 
									$loop = new WP_Query( $args );
									while ( $loop->have_posts() ) : $loop->the_post(); ?>
									
								<div class="information-wrpp">
                                    <div class="row">
                                        <div class="col-lg-2 col-md-2">
                                            <div class="date-content">
                                                <figure class="calender">
                                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/calendar.png" alt="">
                                                </figure>
                                                <div class="info-date">
                                                    <span> <?php echo get_the_time("j"); ?>  </span> <?php echo get_the_time("m-Y"); ?>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 col-md-6">
                                            <div class="infoContent ">
                                                <i class="las la-hand-point-right"></i> <a href=""> <?php the_title() ?> </a>

                                            </div>
                                        </div>
                                        <div class="col-lg-4 col-md-4">
                                           <div class="viewDownload">
                                                <ul>
												
												

												<?php if( '' !== get_post()->post_content ) { ?>
                                                    <li class="view-d">  <a href="<?php the_permalink()?>"> <?php echo $codedokan['info_view']; ?> <span> <i class="las la-eye"></i></span> </a></li>
												<?php } ?>
												<?php $information_image = get_post_meta(get_the_ID(),'information_image', true); if($information_image){ ?>
                                                    <li class="view-d"> <a href="<?php echo $information_image; ?>" target="_blank"> <?php echo $codedokan['info_download']; ?> <span> <i class="las la-download"></i></span>  </a> </li>
												<?php } ?>
                                                </ul>
                                           </div>

                                        </div>


                                    </div>
                                </div>
								
								 <?php endwhile; wp_reset_query(); ?> 
                                
                               

                            </div>
							<?php } ?>

                            <?php if($term_id_five){ ?>
							<div class="tab-pane fade" id="Info-tabs5" role="tabpanel" aria-labelledby="Infomation-tab5">
                                
								
								<?php
								$term = get_term_by( 'id', $term_id_five, 'informationcat' );
                                $cat_name = $term->name;    
                                $cat_slug = $term->slug; 
								$how_post = $codedokan['how_information'];
								
							?>
							<?php   
									$args = array( 
										'post_type' => 'information',
										'posts_per_page' => $how_post,
										  'tax_query' => array(
											'relation' => 'OR',     
											array(
												'taxonomy' => 'informationcat',
												'field'    => 'slug',
												'terms'    => $cat_slug,
											),
								
											) 
										); 
									$loop = new WP_Query( $args );
									while ( $loop->have_posts() ) : $loop->the_post(); ?>
									
								<div class="information-wrpp">
                                    <div class="row">
                                        <div class="col-lg-2 col-md-2">
                                            <div class="date-content">
                                                <figure class="calender">
                                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/calendar.png" alt="">
                                                </figure>
                                                <div class="info-date">
                                                    <span> <?php echo get_the_time("j"); ?>  </span> <?php echo get_the_time("m-Y"); ?>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 col-md-6">
                                            <div class="infoContent ">
                                                <i class="las la-hand-point-right"></i> <a href=""> <?php the_title() ?> </a>

                                            </div>
                                        </div>
                                        <div class="col-lg-4 col-md-4">
                                           <div class="viewDownload">
                                                <ul>
												
												

												<?php if( '' !== get_post()->post_content ) { ?>
                                                    <li class="view-d">  <a href="<?php the_permalink()?>"> <?php echo $codedokan['info_view']; ?> <span> <i class="las la-eye"></i></span> </a></li>
												<?php } ?>
												<?php $information_image = get_post_meta(get_the_ID(),'information_image', true); if($information_image){ ?>
                                                    <li class="view-d"> <a href="<?php echo $information_image; ?>" target="_blank"> <?php echo $codedokan['info_download']; ?> <span> <i class="las la-download"></i></span>  </a> </li>
												<?php } ?>
                                                </ul>
                                           </div>

                                        </div>


                                    </div>
                                </div>
								
								 <?php endwhile; wp_reset_query(); ?> 
                                


                               
                            </div>
							<?php } ?>


                          </div>
                          
                          
                    </div>
                </div>
            </div>
        </section>
                    
                    

                    <!--=========codedokan==============
                        Informatoin section End
                    =============codedokan=============-->   
					 <?php } ?>   