
<?php /* Template Name: Home Page */ ?>

<?php get_header(); ?>

<div class="wrap">
    <div id="primary" class="content-area">
        <main id="main" class="site-main" role="main">
            <div id="home" class="fullCommon mainSlider"><?php masterslider(2); ?> </div>
           <!-- <div class="fullCommon mainHomeBanner" style="background-image:url('https://www.doricinfra.com/wp-content/uploads/2020/12/Doric-Infra-01.jpg');">
               <div class="container">
                    <h1><strong>We Do big</strong> Things <span>With <strong>big Ideas</strong></span></h1>
               </div>
            </div>
            -->
            <div id="about-Us" class="fullCommon comPad_100 sec01">
                <div class="container">
                  <div class="row">
                    <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 sec01_left">
                        <?php echo the_field('add_about_left_content');?>
                    </div>
                    <div class="col-xs-12 col-sm-5 col-md-5 col-lg-5  float-right sec01_right">
                        <img src="<?php echo the_field('add_about_right_image');?>"/>
                    </div>
                </div>
               </div>
            </div>   
            
            <div class="fullCommon sec02_vision">
                <div class="container">
                  <div class="row">
                    <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 comVision sec_com_01">
                        <span><?php echo the_field('add_our_promise__content');?></span>
                    </div>
                    <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 comVision sec_com_02">
                        <span><?php echo the_field('add_our_vision_content');?></span>
                    </div>                  
                    <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 comVision sec_com_03">
                        <span><?php echo the_field('add_our_focus_content');?></span>
                    </div>
                </div>
               </div>
            </div>   
                    
            
        
            <div id="ourservices" class="fullCommon comPad_100 sec03">
                <div class="container">
                  <h2 class="mar_bt_50 text-center text-uppercase">Our Services </h2>
                  <div class="row">
                  <ul>  
                    <?php            
                        // Check rows exists.
                        if( have_rows('add_services') ):
                        
                            // Loop through rows.
                            while( have_rows('add_services') ) : the_row();
                        
                                // Load sub field value.
                                $sub_title_ser = get_sub_field('add_service_title');
                                $sub_content_ser = get_sub_field('add_service_content');
                                ?>
                                <li class="text-center servicesCol">
                                    <?php echo $sub_content_ser; ?>
                                </li>
                                <?php
                                    // End loop.
                                    endwhile;
                                
                                // No value.
                                else :
                                    // Do something...
                                endif;
                        ?>
                      </ul>            
                </div>
               </div>
            </div>  
        
        
            <div class="fullCommon comPad_100 sec02">
                <div class="container">
                <h2 class="mar_bt_50 text-center text-uppercase">Our Impact </h2>
                  <div class="row">
                    <?php            
                        // Check rows exists.
                        if( have_rows('add_project_counter') ):
                        
                            // Loop through rows.
                            while( have_rows('add_project_counter') ) : the_row();
                        
                                // Load sub field value.
                                $sub_icon = get_sub_field('add_icon');
                                $sub_title = get_sub_field('add_title');
                                $sub_icon_2 = get_sub_field('add_counter_new');
                                ?>
                                <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3 colCounter">
                                    <!--<img src="<?php echo $sub_icon; ?>"/>-->
                                    <span class="count"><?php echo $sub_icon_2; ?></span>
                                    <h3><?php echo $sub_title; ?></h3>

                                </div>
                                <?php
                                    // End loop.
                                    endwhile;
                                
                                // No value.
                                else :
                                    // Do something...
                                endif;
                        ?>
                      <div class="impactBt">*<i>As of AY <?php echo date("Y"); ?></i></div>            
                </div>
               </div>
            </div>   
        
             <div class="fullCommon pad_tp_100 sec03_projects">
                <div class="container">
                  <h2 class="mar_bt_50 text-center text-uppercase">COMPLETED PROJECTS (EXECUTED TURN-KEY)</h2>
                  <div class="row">
                   <?php $catquery = new WP_Query( 'cat=8&posts_per_page=25' ); ?>
                   <div class="mainSlideNews">
                    <div class="slider">
                        <?php while($catquery->have_posts()) : $catquery->the_post(); ?>
                        <div class="items">
                            <h3><a><?php the_title(); ?></a></h3>
                            <?php the_content(); ?>
                        </div>
                        <?php endwhile; ?> 
                    </div>
                    </div>    
                    <?php wp_reset_postdata(); ?>
                                          
                </div>
               </div>
            </div>  
            
            <div class="fullCommon pad_tp_100 sec03_projects inteProject">
                <div class="container">
                  <h2 class="mar_bt_50 text-center text-uppercase">COMPLETED PROJECTS - INTERIORS AND MEP</h2>
                  <div class="row">
                   <?php $catquery = new WP_Query( 'cat=9' ); ?>
                      <ul class="slider01">
                        <?php while($catquery->have_posts()) : $catquery->the_post(); ?>
                        <li>
                            <h3><a><?php the_title(); ?></a></h3>
                            <?php the_content(); ?>
                        </li>
                        <?php endwhile; ?> 
                        </ul>
                    <?php wp_reset_postdata(); ?>
                                          
                </div>
               </div>
            </div>  
            
            <div class="fullCommon pad_tp_100 sec03_projects upComProject">
                <div class="container">
                  <h2 class="mar_bt_50 text-center text-uppercase">Upcoming Projects</h2>
          
                  <div class="row upcomMain_new">
                   <?php $catquery = new WP_Query( 'cat=10' ); ?>
                      <ul class="slider02">
                        <?php while($catquery->have_posts()) : $catquery->the_post(); ?>
                        <li class="items02">
                            <h3><a><?php the_title(); ?></a></h3>
                            <div class="upComContent">
                                <?php the_content(); ?>
                            </div>
                        </li>
                        <?php endwhile; ?> 
                        </ul>
                    <?php wp_reset_postdata(); ?>
                </div>
               </div>
            </div>  
            
            
            <div class="fullCommon comPad_100 ourAddBene">
                <div class="container">
                <h2 class="mar_bt_50 text-center text-uppercase">OUR ADDED BENEFITS </h2>
                  <div class="row">
                    <?php echo the_field('add_our_added_benefits');?>
                  </div>
               </div>
            </div>  
            
            
            
            
        </main><!-- #main -->
    </div><!-- #primary -->
</div><!-- .wrap -->

<?php get_footer(); ?>

