<?php
/**
 *Template Name: Downloads 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">Downloads</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">Downloads</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
				<div>
					<div class="container">
						<div class="row">
						
							<div class="col-md-12 col-sm-12 mb-2">
								<?php if( have_rows('downloads') ): ?>
                    						<?php while( have_rows('downloads') ): the_row(); 
                    						$image = get_sub_field('image');
                  							$title = get_sub_field('title');
											$pdf = get_sub_field('pdf_');
											
                    						?>
                                <div class="col-md-4 wow slideInLeft animated" data-wow-delay="400ms">
								<div class="our_services_heading3">
									<div class="wow slideInLeft animated" data-wow-delay="400ms"><?php echo $title;?></div>
								</div>
								<a href="<?php echo $pdf;?>" download>
								<img width="370" height="200" src="<?php echo $image;?>" alt="" style="height: 250px;width:100%;"/>
								</a>				
											
										
								</div>
                               
									 <?php endwhile;?>
                   					 <?php endif;?>
                                </div>
								</div>
                               
                              
	


								
							</div>
						</div>

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