<?php
/**
 *Template Name: Facilities Template
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.

 */
get_header();?>
				<div class="big-title">
					<div class="container">
						<h1 class="entry-title">Facilities</h1>
						<div class="breadcrumb">
							<div class="container">
								<ul class="tm_bread_crumb">
									<li class="top"><a href="<?php echo home_url();?>">Home</a></li>
									<li class="sub tail current">Facilities</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
				<div>
					<div class="container">
						<?php if( have_rows('facilities') ): ?>
                    						<?php while( have_rows('facilities') ): the_row(); 
                    						$image1 = get_sub_field('image1');
                  							$title1 = get_sub_field('title1');
											$content1 = get_sub_field('content1');
											$image2 = get_sub_field('image2');
                  							$title2 = get_sub_field('title2');
											$content2 = get_sub_field('content2');
                    						?>
						<div class="row">
						
							<div class="col-md-12 col-sm-12 mb-2">
								<div class="our_services_heading3">
									<div class="wow slideInLeft animated" data-wow-delay="400ms"><?php echo $title1;?></div>
								</div>
								<div class="col-md-8 wow slideInLeft animated" data-wow-delay="400ms" style="padding-left:0px;">
								<?php echo $content1;?>

								</div>
								<div class="col-md-4 wow slideInRight animated" data-wow-delay="400ms">
								
													<img width="370" height="200" src="<?php echo $image1;?>" alt="" />
												
											
										</div>
								</div>
								</div>
								<?php if( get_sub_field('image2') ): ?>
                                <div class="row">
						
							<div class="col-md-12 col-sm-12 mb-2" >
								<div class="our_services_heading3">
									<div class="wow fadeInUp animated" data-wow-delay="500ms"><?php echo $title2;?></div>
								</div>
								<div class="col-md-4 wow slideInLeft animated" data-wow-delay="400ms" style="padding-left:0px;">
								
													<img width="370" height="200" src="<?php echo $image2;?>" alt="" />
												
											
										</div>
								<div class="col-md-8 wow slideInRight animated" data-wow-delay="400ms" >
								
						<?php echo $content2;?>

								</div>
								
								</div>
								</div>
                               
                               
                               <?php endif; ?>
								<?php endwhile;?>
                   				<?php endif;?>
						</div>

					</div>
				</div>
			</div>
				<?php get_footer();?>