<?php
/**
 * 
 * Template Name: destinos
 * 
 */
?>
<?php get_header(); ?>
	<?php if (get_locale() == 'es_PE') {?>
		<section id="destinos" class="contenedor-tg">
			<div class="titulo-tg">
				<div class="container">
					<div class="row">
						<div class="col-md-12 col-sm-12 col-xs-12">
							<h1><span class="tg-airplane"></span>Destinos Turísticos</h1>
						</div>
					</div>
				</div>
			</div>
			<div class="container">
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<a href="<?php the_field('tna-link') ?>">
							<div class="dest-item">
								<figure>
									<?php $tna_img= get_field('tna-img'); ?>
									<img src="<?php echo $tna_img['url']; ?>" alt="<?php echo $tna_img['title']; ?>" title="<?php echo $tna_img['title']; ?>">
								</figure>
								<div class="dest-titulo">
									<?php the_field('tna-titulo') ?>
								</div>
								<a href="<?php the_field('tna-link') ?>">
									<div class="dest-btn">
										<p><span class="tg-list"></span> Ver destinos</p>
									</div>
								</a>
							</div>
						</a>
					</div>		
					<div class="col-md-12 col-sm-12 col-xs-12">
						<a href="<?php the_field('tin-link') ?>">
							<div class="dest-item">
								<figure>
									<?php $tin_img= get_field('tin-img'); ?>
									<img src="<?php echo $tin_img['url']; ?>" alt="<?php echo $tin_img['title']; ?>" title="<?php echo $tin_img['title']; ?>">
								</figure>
								<div class="dest-titulo">
									<?php the_field('tin-titulo') ?>
								</div>
								<a href="<?php the_field('tin-link') ?>">
									<div class="dest-btn">
										<p><span class="tg-list"></span> Ver destinos</p>
									</div>
								</a>
							</div>
						</a>
					</div>	
				</div>
			</div>
		</section>

	<?php }else{ ?>
		<section id="destinos" class="contenedor-tg">
			<div class="titulo-tg">
				<div class="container">
					<div class="row">
						<div class="col-md-12 col-sm-12 col-xs-12">
							<h1><span class="tg-airplane"></span>Tourist Destination</h1>
						</div>
					</div>
				</div>
			</div>
			<div class="container">
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<a href="<?php the_field('tna-link-en') ?>">
							<div class="dest-item">
								<figure>
									<?php $tna_img= get_field('tna-img-en'); ?>
									<img src="<?php echo $tna_img['url']; ?>" alt="<?php echo $tna_img['title']; ?>" title="<?php echo $tna_img['title']; ?>">
								</figure>
								<div class="dest-titulo">
									<?php the_field('tna-titulo-en') ?>
								</div>
								<a href="<?php the_field('tna-link-en') ?>">
									<div class="dest-btn">
										<p><span class="tg-list"></span> View destinations</p>
									</div>
								</a>
							</div>
						</a>
					</div>		
					<div class="col-md-12 col-sm-12 col-xs-12">
						<a href="<?php the_field('tin-link-en') ?>">
							<div class="dest-item">
								<figure>
									<?php $tin_img= get_field('tin-img-en'); ?>
									<img src="<?php echo $tin_img['url']; ?>" alt="<?php echo $tin_img['title']; ?>" title="<?php echo $tin_img['title']; ?>">
								</figure>
								<div class="dest-titulo">
									<?php the_field('tin-titulo-en') ?>
								</div>
								<a href="<?php the_field('tin-link-en') ?>">
									<div class="dest-btn">
										<p><span class="tg-list"></span> View destinations</p>
									</div>
								</a>
							</div>
						</a>
					</div>	
				</div>
			</div>
		</section>
	<?php } ?>
<?php get_footer() ?>