<?php 
/**
 * Template Name: Lab
*/
 
get_header();
	

?>

   
<?php  get_template_part('parts/topimage'); ?>
  
 <div id="main">
 
 <div class="container">
  
    <h1 class="page-title"><?php the_title() ?></h1>
    	
     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
     		  <div class="lab-content"> 
              <div class="row">
                  <div class="col-lg-6">                  
                         <div class="entry">                         
						 <?php the_content(); ?>
                         </div><!--entry-->
      
       
           
        <ul class="details">
  		 <?php if (get_field ('phone')) { ?>
            	<li>
                 <a href="tel:<?php the_field ('phone'); ?>" rel="nofollow" class="call">          
                   <i class="fa fa-solid fa-phone-volume"></i> 
                  
                   <?php the_field ('phone'); ?>
                   </a>           
             </li>
            <?php } ?>
            
             <?php if (get_field ('phone_2')) { ?>
            	<li>
                
                <a href="tel:<?php the_field ('phone_2'); ?>" rel="nofollow" class="call">          
                   <i class="fa fa-solid fa-phone-volume"></i> 
                   
                   <?php the_field ('phone_2'); ?>
                   </a>           
             </li>
            <?php } ?>
                    
            
             <?php if (get_field ('email')) { ?>
             <li> 
             
              <a href="mailto:<?php the_field ('email'); ?>" class="email">        	
                  <i class="fa-regular fa-at"></i>
               
                <?php the_field ('email'); ?>
                </a>            
            </li>
            <?php } ?>
   			</ul>	
     
	 
	 <?php endwhile;
		endif;
			?>
        
         </div><!--col-->
         
          <div class="col-lg-6">
           
            <?php if(has_post_thumbnail())  { ?>       
               <div class="lab-img">
               <img src="<?php the_post_thumbnail_url ('large'); ?>" alt="<?php echo getalt() ?>" />
                </div><!--lab-img-->
         	<?php }  ?>
         </div><!--col-->
        </div><!--row-->    
       </div><!--content-->
      

       
 	  <div id="pagenav">
      	<ul>
<?php if( have_rows('pagenav') ):?> <?php while ( have_rows('pagenav') ) : the_row(); ?>  
		<li>
        	<a href="#fsec-<?php the_sub_field('sec_num'); ?>" class="smooth"><?php the_sub_field ('menu_title'); ?></a>
            <i class="fa-sharp fa-solid fa-triangle"></i>
        </li>
         
 <?php endwhile; ?>
      <?php endif;?>
        </ul>
      </div><!--pagenav-->
  </div><!--container--> 
             
     <?php get_template_part('parts/flexible-content'); ?>
  
 
</div><!--main-->
	
      
    
<?php get_footer(); ?>