    <?php
/**
 * Theme Name: EduCare
 * Theme URI: http://demo.com
 * Author: demo.com
 * Author URI: http://demo.com
 * Description: Themes Is WordPress Theme Market
 * @package eschool
 */
 global $codedokan;
 ?>    
 
 
 <?php 	if($codedokan['full_box'] == 2 ): ?>
<?php endif; if($codedokan['full_box'] == 1 ): ?>
<div class="container">
<?php endif; ?>





                    <!--=======================
                        codedokan_main_section start
                    ==========================--> 
        <section class="codedokan_main_section">

                <div class="row">
                    <div class="col-lg-9 col-md-9"><!-- col-9 start -->

                <!--=======================
                    About_section start
                ==========================-->
				 <?php 
								$count_posts = wp_count_posts( 'aboutus' )->publish;
								if ($count_posts == 0){
									get_template_part( 'template-parts/html/about' );
								}else{
								?>
								
				<?php
	if($codedokan['about_confiq'] == 1 ): ?>
	
	<?php
									$code_dokan = new WP_Query(array(
										'post_type' => 'aboutus',
										'offset'     =>0,
										'posts_per_page' =>1,
									));
									while($code_dokan->have_posts()) : $code_dokan->the_post(); ?>
									
                        <div class="about_section">
                            <div class="row">
                                <div class="col-lg-12 col-md-12">
                                   <h3 class="about-title">
                                    <i class="las la-address-card"></i> <?php the_title();?>
                                    </h3>
									<?php $img = get_post_meta(get_the_ID(),'about_image', true);
				if($img){ ?>
				
				
                                    <div class="about_image">
                                        <img src="<?php echo $img; ?>" alt="">
                                    </div>
				<?php } ?>


                                    <div class="about_content">
                                      <?php echo content($codedokan['how_about_word']); ?>  <a href="<?php the_permalink(); ?>"> <?php echo $codedokan['read_more']; ?></a>
                                    </div>
                                </div>
                            </div>
                        </div>
						
						<?php endwhile;?>   
						
						<?php endif; ?>
						
						<?php } ?>

                <!--=======================
                    About_section End
                ==========================-->

<?php 
								$count_posts = wp_count_posts( 'speech' )->publish;
								if ($count_posts == 0){
									get_template_part( 'template-parts/html/speech' );
								}else{
								?>
								
				<?php
	if($codedokan['speech_confiq'] == 1 ): ?>
	
                <!--====================
                    speech section start
                ======================-->
                    <section class="speech-section">
                        <div class="row">
                            <div class="col-lg-12 col-md-12">
                                <div class="speech-active owl-carousel">
                                    
									<?php
							$how = $codedokan['how_speech'];
									$code_dokan = new WP_Query(array(
										'post_type' => 'speech',
										'offset'     =>0,
										'posts_per_page' =>$how,
										'order'     => 'ASC',
									));
									while($code_dokan->have_posts()) : $code_dokan->the_post(); ?>
									
									<div class="speech-wrpp">
                                        <h4 class="about-title">
                                            <i class="las la-address-book"></i>  <?php echo the_title(); ?>
                                        </h4>
										<?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); if($image){?>
                                        <div class="speech-image">
                                            <img src="<?php echo $image; ?>" alt="">
                                        </div>
										<?php } ?>
                                        
                                        <div class="speech-content">
                                         <?php echo content($codedokan['how_speech_word']); ?> <a href="<?php the_permalink(); ?>"> <?php echo $codedokan['read_more']; ?></a>
                                        </div>
                                    </div>
									
									 <?php endwhile;?>   


                               
                                </div>

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

<?php endif; ?>
						
						<?php } ?>
     
                <!--====================
                    speech section End
                ======================-->

           

                    <?php if ( ! dynamic_sidebar( 'homepage_widget' ) ): ?> <?php endif; ?>




                <!--=======================
                    Category_section Start
                ==========================-->
                        <section class="category_section">
                            
							
							<?php
	if($codedokan['menu_one_show_hide'] == 1 ): ?>
							<div class="row">
                                <div class="col-lg-6 col-md-6">
                                   <div class="category_item">
								   <?php $codedokan_text = $codedokan['homepage_menu_one']; if($codedokan_text){?>
                                       <h3 class="information-title1">
                                          <i class="las la-bars"></i> <?php echo $codedokan_text; ?>
                                       </h3>
								   <?php } ?>
                                       <div class="cat_item_padding">
									   <?php $codedokan_image = $codedokan['homepage_menu_one_pic']['url']; if($codedokan_image){?>
                                            <div class="category_image">
                                                <img src="<?php echo $codedokan_image; ?>" alt="">
                                            </div>
									   <?php } ?>
                                            <div class="cat_menu">
                                                <?php $menu_id = "homepage_menu_one";
												   wp_nav_menu( array(
									  'theme_location' => $menu_id,
									  'before' => '<i class="las la-check"></i> ',
									  'fallback_cb' => 'default_footer_menu_homepage',
									  'depth' => 0,
									 
									)); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                  
                                <div class="col-lg-6 col-md-6">
                                   <div class="category_item">
								   <?php $codedokan_text = $codedokan['homepage_menu_two']; if($codedokan_text){?>
                                        <h3 class="information-title2">
                                           <i class="las la-bars"></i> <?php echo $codedokan_text; ?>  
                                       </h3>
								   <?php } ?>
                                       <div class="cat_item_padding">
                                            <?php $codedokan_image = $codedokan['homepage_menu_two_pic']['url']; if($codedokan_image){?>
                                            <div class="category_image">
                                                <img src="<?php echo $codedokan_image; ?>" alt="">
                                            </div>
									   <?php } ?>
                                            <div class="cat_menu">
                                                <?php $menu_id = "homepage_menu_two";
												   wp_nav_menu( array(
									  'theme_location' => $menu_id,
									  'before' => '<i class="las la-check"></i> ',
									  'fallback_cb' => 'default_footer_menu_homepage',
									  'depth' => 0,
									 
									)); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                               <?php endif; ?>
							   <?php
	if($codedokan['menu_one_show_hide'] == 1 ): ?>
                            
                            <div class="row">
                                <div class="col-lg-6 col-md-6">
                                   <div class="category_item">
								   <?php $codedokan_text = $codedokan['homepage_menu_three']; if($codedokan_text){?>
                                        <h3 class="information-title3">
                                            <i class="las la-bars"></i> <?php echo $codedokan_text; ?>
                                       </h3>
								   <?php } ?>
                                       <div class="cat_item_padding">
                                            <?php $codedokan_image = $codedokan['homepage_menu_three_pic']['url']; if($codedokan_image){?>
                                            <div class="category_image">
                                                <img src="<?php echo $codedokan_image; ?>" alt="">
                                            </div>
									   <?php } ?>
                                            <div class="cat_menu">
                                                <?php $menu_id = "homepage_menu_three";
												   wp_nav_menu( array(
									  'theme_location' => $menu_id,
									  'before' => '<i class="las la-check"></i> ',
									  'fallback_cb' => 'default_footer_menu_homepage',
									  'depth' => 0,
									 
									)); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                  
                                <div class="col-lg-6 col-md-6">
                                   <div class="category_item">
								   <?php $codedokan_text = $codedokan['homepage_menu_four']; if($codedokan_text){?>
										<h3 class="information-title4">
                                             <i class="las la-bars"></i> <?php echo $codedokan_text; ?>
                                       </h3>
								   <?php } ?>
									   
                                       <div class="cat_item_padding">
                                            <?php $codedokan_image = $codedokan['homepage_menu_four_pic']['url']; if($codedokan_image){?>
                                            <div class="category_image">
                                                <img src="<?php echo $codedokan_image; ?>" alt="">
                                            </div>
									   <?php } ?>
                                            <div class="cat_menu">
                                                <?php $menu_id = "homepage_menu_four";
												   wp_nav_menu( array(
									  'theme_location' => $menu_id,
									  'before' => '<i class="las la-check"></i> ',
									  'fallback_cb' => 'default_footer_menu_homepage',
									  'depth' => 0,
									 
									)); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
							<?php endif; ?>
                        </section>




                <!--=======================
                    Category_section End
                ==========================-->


                    </div><!-- col-9 End -->




                    <!-- col-3 start -->
                    <div class="col-lg-3 col-md-3">
                        <!-- ========= academic_information start ========== -->
                         <?php
	if($codedokan['menu_one_confiq'] == 1 ): ?>
	<div class="academic_information">
                            <?php $menu_id = "sidebar_menu_one";
												   wp_nav_menu( array(
									  'theme_location' => $menu_id,
									  'link_before' => '<i class="lar la-arrow-alt-circle-right"></i> ',
									  'fallback_cb' => 'default_footer_menu_sidebar',
									  'depth' => 0,
									 
									)); ?>
                        </div>
						<?php endif; ?>
                         <!-- ========= academic_information start ========== -->
                         
                               
                        <!-- ============notic board start==================== -->
                        
                        
                    <?php if ( ! dynamic_sidebar( 'homepage_widget_one' ) ): ?> <?php endif; ?>
                        
                        
                        <div class="notic_board">
						
						<?php
	if($codedokan['notice_confiq'] == 1 ): ?>
	
                            <?php $codedokan_text = $codedokan['noticeboard_title']; if($codedokan_text){?>
							<div class="notic_board_title">
                              <i class="las la-bars"></i> <?php echo $codedokan_text; ?>
                            </div>
							<?php } ?>
                            
                            <div class="noitc_board_item">
                            <div class="noitc_board_item">
                           <marquee direction = "up" height="200" scrollamount="3px" onmouseover="this.stop()" onmouseout="this.start()">       
                                    
                                     <ul>
                                         <?php
										 $how = $codedokan['how_notice'];
									$code_dokan = new WP_Query(array(
										'post_type' => 'notice',
										'offset'     =>0,
										'posts_per_page' => $how,
									));
									while($code_dokan->have_posts()) : $code_dokan->the_post(); ?>
									
										 <li><i class="lar la-arrow-alt-circle-right"></i> 
										 <a href="<?php the_permalink(); ?>"> <?php echo the_title(); ?> </a></li>
										 
										 <?php endwhile;?>   
                                         
                                     </ul>
                                 
                                 </marquee>
                            </div>
                            
                        </div>
						
						<?php endif; ?>
                        
						<?php
	if($codedokan['facebook'] == 1 ): ?>
	
                           <!-- =========== notic board End ================= -->
                            <?php $codedokan_text = $codedokan['facebook_title']; if($codedokan_text){?>
							<div class="notic_board_title">
                              <i class="las la-bars"></i> <?php echo $codedokan_text; ?>
                            </div>
							<?php } ?>
                            <div class="facebook-content">
                            <?php $timeline = $codedokan['timeline'];
						if($timeline == 1){
							$ftimeline = 'timeline';
						}elseif($timeline == 0){
							$ftimeline = 'time';
						}
						?>
                            <iframe
              src="https://www.facebook.com/plugins/page.php?href=<?php echo $codedokan['facebook_link'];?>&tabs=<?php echo $ftimeline;?>&width=<?php echo $codedokan['facebook_width'];?>&height=<?php echo $codedokan['facebook_height'];?>&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId=334182264340964"
              width="<?php echo $codedokan['facebook_width'];?>" height="<?php echo $codedokan['facebook_height'];?>" style="border:none;overflow:hidden" scrolling="no" frameborder="0"
              allowfullscreen="true"
              allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>
			  </div>
                            
                           <?php endif; ?> 
                        <!-- ======= Offical Link start ========== -->
                        
						 <?php if ( ! dynamic_sidebar( 'homepage_widget_two' ) ): ?> <?php endif; ?>
                        
						<?php
	if($codedokan['menu_two_confiq'] == 1 ): ?>
	
                           <!-- =========== notic board End ================= -->
                            <?php $codedokan_text = $codedokan['sidebar_menu_three']; if($codedokan_text){?>
                        <div class="official_link">
                            <div class="oLink_litle">
                                 <i class="las la-bars"></i> <?php echo $codedokan_text; ?>
                            </div>
							<?php } ?>
                        
                           <div class="oLink_menu">
                               <?php $menu_id = "sidebar_menu_two";
												   wp_nav_menu( array(
									  'theme_location' => $menu_id,
									  'link_before' => '<i class="lar la-arrow-alt-circle-right"></i> ',
									  'fallback_cb' => 'default_footer_menu_sidebar',
									  'depth' => 0,
									 
									)); ?>
                           </div>
                             
                        </div>
						<?php endif; ?>
                        
                        
                        
                        
                        <!-- ======= Offical Link End ========== -->
                             
                            <?php
	if($codedokan['menu_three_confiq'] == 1 ): ?> 
                        <!-- ======= Offical Link start ========== -->
                        
                        <div class="official_link">
						<?php $codedokan_text = $codedokan['sidebar_menu_two']; if($codedokan_text){?>
                            <div class="oLink_litle">
                             <i class="las la-bars"></i> <?php echo $codedokan_text; ?>
                            </div>
						<?php } ?>
                        
                           <div class="oLink_menu">
                               <?php $menu_id = "sidebar_menu_three";
												   wp_nav_menu( array(
									  'theme_location' => $menu_id,
									  'link_before' => '<i class="lar la-arrow-alt-circle-right"></i> ',
									  'fallback_cb' => 'default_footer_menu_sidebar',
									  'depth' => 0,
									 
									)); ?>
                           </div>
                            
                        </div>
                        
                        <?php endif; ?>
                        
                        
                        <!-- ======= Offical Link End ========== -->
                            
                        
                    </div>
                </div>
            </div>
        </section>  
                       
                       
                    <!--=======================
                        codedokan_main_section End
                    ==========================--> 
                    
                    
                     <?php 	if($codedokan['full_box'] == 2 ): ?>
<?php endif; if($codedokan['full_box'] == 1 ): ?>
</div>
<?php endif; ?>
                    