<?php
/**
 * This file is responsible for the display of pages.
 * @version:1.0
 */
get_header(); 
?>
<div class="middle_wrapper">
 		
      <section id="banner" class="">
         <div class="container ">
            <div class="row">
                  <div id="banner-text" class="col-md-5 ">
                  <h5 class="wow fadeInUp main-h" data-wow-delay="0.2s" ><?php _e(get_theme_mod('banner_title', __('We Are Experts' , 'plumbing-lite'))); ?></h2></h5>
                  <h3 class="wow fadeInUp main-h2" data-wow-delay="0.5s" ><?php _e(get_theme_mod('banner_text1', __('QUICK SERVICE, QUALITY WORK & BE HAPPY... ', 'plumbing-lite')));  ?></h3>
                  <p class="wow fadeInUp main-h3" data-wow-delay="0.8s"><?php echo(get_theme_mod('banner_text2' ,__('', 'plumbing-lite')));  ?></p>
                  <?php if ( true == get_theme_mod( 'homepagebuttonbanneronoff', true ) ) : ?>
                  <div class="top-banner wow fadeInRight">
                     <a id="#services"  href="<?php echo esc_url(get_theme_mod('button_link' , '#services'));  ?>" class="button-n wow fadeInUp  js-scroll-trigger" data-wow-delay="1s" ><?php _e(get_theme_mod('button_text' , __('Our Services','plumbing-lite')));  ?></a>
                  </div>
                  <?php endif; ?>
               </div>
               <!-- Banner image -->

               <?php if ( true == get_theme_mod( 'homepagebannerimageonoff', true ) ) : ?>
               <div class="col-md-7 tr">
                <img src="<?php echo esc_attr(get_theme_mod('banner_image' , get_template_directory_uri() . '/assets/images/2.jpg','banner_image'));  ?>" alt="Banner Image" class="box-s">
               </div>
               <!-- Banner image -->
                <?php endif; ?>
            </div>
         </div>
      </section>
      <!-- /#banner end -->    


      
      <?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>', 'plumbing-lite' ), 
                esc_url( admin_url( 'plugins.php' ) ), 'https://docs.navthemes.com/docs/plumbing/'
            );
             get_footer();
           return;
         }

   $layout = maybe_unserialize( get_theme_mod( 'onepage_modules',array( 'services', 'team' , 'gallery', 'testimonials', 'work', 'blog') ) ); 
   
if (!empty($layout)) {
    foreach ($layout as $module => $val) {
        get_template_part('templates/modules/module', $val);
    }
}
?> 
</div>


<?php
get_footer();