<?php
/**
 * This file is responsible for the display of front page.
 * @version:1.0
 */
get_header(); 
?>
       

    <?php if(is_front_page()): ?>
    
     <!-- #banner start -->
               <section id="banner" class=" mb-90">
                  <div class="container ">
                     <div class="row">
                        <!-- #banner-text start -->            
                        <div id="banner-text" class="col-md-7 text-c text-left ">
                           <h5 class="wow fadeInUp main-h" data-wow-delay="0.2s" ><?php _e (get_theme_mod('banner_title', __('' , 'intechnic-lite'))); ?></h5>
                           <p class="banner-text wow fadeInUp main-h3" data-wow-delay="0.8s"><?php _e (get_theme_mod('banner_text1' , __('','intechnic-lite')));?></p>

                           <?php if ( true == get_theme_mod( 'homepagebuttonbanneronoff', true ) ) : ?>

                           <?php if(!empty(get_theme_mod('button_text'))){  ?>
                           <div class="top-banner wow fadeInRight">
                              
                              <a id="#services"  href="<?php echo (get_theme_mod('button_link' , '#services'));  ?>" class="btn btn-default  wow fadeInUp  js-scroll-trigger" data-wow-delay="0.5s" href="#">
                                <span class="skew_14">
                                  <?php _e (get_theme_mod('button_text' , __('','intechnic-lite')));  ?>
                                </span>
                              </a>
                            
                             
                           </div>
                            <?php } ?>  
                           <?php endif; ?>
                        </div>
                        <div class=" col-md-5">
                           <div class="video-imgs">
                            <?php if(!empty(get_theme_mod('homepage_video_url'))){ ?>
                              <a href="#nogo" class="hero__play"><img  src="<?php echo image('img-g.png');?>"></a>
                            <?php } ?>
                           </div>
                        </div>
                        <!-- /#banner-text End -->
                     </div>
                  </div>
               </section>
               <div class="container-fluid p0 banner-shap-img">
               </div>
            </div>
         </div>
         <!-- /#banner end -->
         <!--#Our banner-shap- Area -->
         <!--#EndOur banner-shap- Area -->


         <?php
         // Early exit if Kirki is not installed
          if ( ! class_exists( 'Kirki' ) ) {
            
              printf( __( '<h5 class="kirki-nf">
              Please install recommended theme <a href="%s">plugins</a> to begin customizations. For instructions, click <a href="%s">here</a>.</h5>', 'intechnic-lite' ), 
                esc_url( admin_url( 'plugins.php' ) ), 'https://docs.navthemes.com/docs/intechnic-lite/'
            );


              get_footer();
            return;
          }

         $layout = maybe_unserialize( get_theme_mod( 'homepage_modules', 
                        array( 
                            'aboutsectionone',
                            'partner', 
                            'aboutsectiontwo' , 
                            'services',
                            'aboutsectionthree', 
                            'process', 
                            'pricing',
                            'testimonials'
                          ) ) ); 

         if (!empty($layout)) {
             foreach ($layout as $module => $val) {
                 get_template_part('templates/modules/module', $val);
             }
         }
         ?>
 <?php endif;?>

   <script type="text/javascript">
    
    $ = jQuery;

 </script>
 
 
        <?php
        get_footer();