<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="UTF-8">
	<title><?php wp_title('-', 'true', 'right'); ?><?php bloginfo('name'); ?></title>

	<!-- [Meta] -->
	<meta name="author" content="">
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="robots" content="all, index, follow">
	<meta name="googlebot" content="all, index, follow">
	<meta name=apple-mobile-web-app-capable content=yes>

	 <!-- [Iconos] -->
	<link rel="apple-touch-icon" href="<?php echo get_template_directory_uri() ?>/img/turismoengrupo_ico.png">
    <link rel="shortcut icon" href="<?php echo get_template_directory_uri() ?>/img/turismoengrupo_ico.png" type="image/vnd.microsoft.icon" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="format-detection" content="telephone=no">

	<!-- [Css] -->
	<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/normalize.min.css">
	<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/estilo.css">
	<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/fuentes.css">
	<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/tg-ico.css">
	<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/remodal.css">
	<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/animate.min.css">
	<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri() ?>/css/fancybox.css?v=2.1.5" media="screen" />
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
	<?php wp_head(); ?>
</head>
<body>
	<?php if (is_front_page()): ?>
	<script>(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) return;
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/es_ES/sdk.js#xfbml=1&version=v2.5";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));</script>
	<?php endif; ?>

<?php
$args = array(
    'post_type' => 'informacion',
    'posts_per_page' => '1',
	'orderby' => 'menu_order',
    'order' => 'ASC'
);
?>
<?php $the_query = new WP_Query($args); ?>
<?php if ($the_query->have_posts()) : ?>
    <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
	<header>
		<div class="cont-logo">
			<div class="container">
				<div class="row">
					<figure  class="wow flip" data-wow-iteration="infinite"  data-wow-duration="7s" data-wow-delay="2s">
						<a href="<?php echo site_url(); ?>">
							<?php $ig_logo= get_field('ig-logo'); ?>
							<img src="<?php echo $ig_logo['url']; ?>" alt="<?php echo $ig_logo['title']; ?>" title="<?php echo $ig_logo['title']; ?>">
						</a>
					</figure>

					<div class="redes-top">
						<!--div class="lema-top">
							<a href="http://pagos.turismoengrupo.com.pe/" target="blank">
								<p><img class="pago-icon" src="http://www.turismoengrupo.com.pe/wp-content/uploads/2017/02/icon-pago1.png"><?php the_field('ig-frase') ?></p>
							</a>
						</div-->
						<div class="h-number">
							<div class="h-ico">
								<span class="tg-phone"></span>
							</div>
							<p>
								<?php the_field('ig-fijo') ?>
							</p>
						</div>
						<!--<div class="h-number">
							<div class="h-ico">
								<span class="tg-bubbles2"></span>
							</div>
							<p>
								ventas@turismoengrupo.com.pe
							</p>
						</div>-->
						<div class="h-number h-fb">
							<a href="<?php the_field('ig-fb') ?>" target="blank">
								<div class="h-ico">
									<span class="tg-facebook"></span>
								</div>
							</a>
						</div>
						<div class="h-number h-tw">
							<a href="<?php the_field('ig-tw') ?>" target="blank">
								<div class="h-ico">
									<span class="tg-twitter"></span>
								</div>
							</a>
						</div>
						<div class="h-number h-yt">
							<a href="<?php the_field('ig-yt') ?>" target="blank">
								<div class="h-ico">
									<span class="tg-youtube3"></span>
								</div>
							</a>
						</div>
						<div class="h-number h-flick">
							<a href="<?php the_field('ig-flick') ?>" target="blank">
								<div class="h-ico">
									<span class="tg-flickr2"></span>
								</div>
							</a>
						</div>
					</div>
				</div>
			</div>
		</div>
    <?php endwhile; ?>
    <?php wp_reset_postdata(); ?>
<?php endif; ?>
		<div class="cont-menu">
			<div class="container">
				<div class="row menu">
					<nav>
						<div id="btn_bar2" class="menu_bar">
			               <p id="btn_bar" class="tg-menu"></p>
			            </div>
						<ul>
							<?php if (get_locale() == 'es_PE') {?>
							<li><a href="<?php echo site_url(); ?>">Inicio</a></li>
							<li><a href="<?php echo site_url(); ?>/nosotros/">Nosotros</a></li>
							<li>
								<a href="<?php echo site_url(); ?>/destinos-turisticos/">&nbsp; Destinos Turísticos&nbsp; </a>
								<ul class="children">
									<li><a href="<?php echo site_url(); ?>/nacional/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-pista.png"> Turismo Nacional</a></li>
									<li><a href="<?php echo site_url(); ?>/internacional/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-avion.png"> Turismo Internacional</a></li>
								</ul>
							</li>
							<li>
								<a href="http://pagos.turismoengrupo.com"> &nbsp;&nbsp; TG Estudiantil &nbsp;&nbsp;</a>
								<ul class="children">
									<!--li><a href="<?php echo site_url(); ?>/circuito-cercano/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-circuito.png">Circuito Cercano</a></li-->
									<li><a href="http://pagos.turismoengrupo.com/"><img src="http://www.turismoengrupo.com/wp-content/uploads/2017/02/icon-pago1.png" height= 35px>Envía tu Pago</a></li>
									<li><a href="<?php echo site_url(); ?>/viajes-de-promocion/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-promocion.png">Viajes de Promoción</a></li>
									<li><a href="<?php echo site_url(); ?>/viajes-de-estudios/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-menu.png">Viajes de Estudios</a></li>
								</ul>
							</li>
							<li><a href="<?php echo site_url(); ?>/galeria/">Galeria</a></li>
							<li><a href="<?php echo site_url(); ?>/promociones/">Promociones</a></li>
							<li><a href="<?php echo site_url(); ?>/contacto/">Contáctenos</a></li>
							<div class="h-numeros">
								<p><span class="unim-old-phone"></span>(511) 514-2330</p> <br>
								<p><span class="unim-email"></span>marketing@turismoengrupo.com.pe</p>
							</div>
						<?php
						$args = array(
						    'post_type' => 'informacion',
						    'posts_per_page' => '1',
							'orderby' => 'menu_order',
						    'order' => 'ASC'
						);
						?>
						<?php $the_query = new WP_Query($args); ?>
						<?php if ($the_query->have_posts()) : ?>
						    <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
							<div class="h-redes">
								<a href="<?php the_field('ig-fb') ?>" target="blank">
									<p><span class="tg-facebook"></span></p>
								</a>
								<a href="<?php the_field('ig-tw') ?>" target="blank">
									<p><span class="tg-twitter"></span></p>
								</a>
								<a href="<?php the_field('ig-yt') ?>" target="blank">
									<p><span class="tg-youtube3"></span></p>
								</a>
								<a href="<?php the_field('ig-flick') ?>" target="blank">
									<p><span class="tg-flickr2"></span></p>
								</a>
							</div>
						    <?php endwhile; ?>
						    <?php wp_reset_postdata(); ?>
						<?php endif; ?>
							<?php }else{ ?>
							<li><a href="<?php echo site_url(); ?>">Home</a></li>
							<li><a href="<?php echo site_url(); ?>/about-us/">About us</a></li>
							<li>
								<a href="<?php echo site_url(); ?>/destination/">&nbsp;Tourist Destination &nbsp;</a>
								<ul class="children">
									<li><a href="<?php echo site_url(); ?>/national/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-pista.png">National Tourism</a></li>
									<li><a href="<?php echo site_url(); ?>/international/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-avion.png">International Tourism</a></li>
								</ul>
							</li>
							<li>
								<a href="<?php echo site_url(); ?>/tourism-group/">&nbsp;&nbsp; TG Student &nbsp;&nbsp;</a>
								<ul class="children">
									<!--li><a href="<?php echo site_url(); ?>/trips-nearby/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-circuito.png">Trips Nearby</a></li-->
									<li><a href="http://pagos.turismoengrupo.com/"><img src="http://www.turismoengrupo.com/wp-content/uploads/2017/02/icon-pago1.png" height= 35px >Sending payments</a></li>
									<li><a href="<?php echo site_url(); ?>/travel-promotion/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-promocion.png">Travel Promotion</a></li>
									<li><a href="<?php echo site_url(); ?>/study-trip/"><img src="<?php echo get_template_directory_uri() ?>/img/ico-menu.png" alt="">Study Trip</a></li>
								</ul>
							</li>
							<li><a href="<?php echo site_url(); ?>/gallery/">Gallery</a></li>
							<li><a href="<?php echo site_url(); ?>/promotions/">Promotions</a></li>
							<li><a href="<?php echo site_url(); ?>/contact-us/">Contact us</a></li>
							<div class="h-numeros">
								<p><span class="unim-old-phone"></span>(511) 514-2330</p> <br>
								<p><span class="unim-email"></span>marketing@turismoengrupo.com.pe</p>
							</div>
						<?php
						$args = array(
						    'post_type' => 'informacion',
						    'posts_per_page' => '1',
							'orderby' => 'menu_order',
						    'order' => 'ASC'
						);
						?>
						<?php $the_query = new WP_Query($args); ?>
						<?php if ($the_query->have_posts()) : ?>
						    <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
							<div class="h-redes">
								<a href="<?php the_field('ig-fb') ?>" target="blank">
									<p><span class="tg-facebook"></span></p>
								</a>
								<a href="<?php the_field('ig-tw') ?>" target="blank">
									<p><span class="tg-twitter"></span></p>
								</a>
								<a href="<?php the_field('ig-yt') ?>" target="blank">
									<p><span class="tg-youtube3"></span></p>
								</a>
								<a href="<?php the_field('ig-flick') ?>" target="blank">
									<p><span class="tg-flickr2"></span></p>
								</a>
							</div>
						    <?php endwhile; ?>
						    <?php wp_reset_postdata(); ?>
						<?php endif; ?>

							<?php } ?>
						</ul>

						<!--div class="menu-idioma">
							<a href="<?php echo site_url(); ?>/es">
								<img src="<?php echo get_template_directory_uri() ?>/img/id-es.jpg" alt="Spanish" title="Spanish">
							</a>
							<a href="<?php echo site_url(); ?>/en">
								<img src="<?php echo get_template_directory_uri() ?>/img/id-en.jpg" alt="English" title="English">
							</a>
						</div-->
					</nav>
				</div>
			</div>
		</div>
	</header>
		<?php if (is_front_page()): ?>
	    <div id="inicio">
	        <div class="camera_wrap camera_azure_skin slider" id="camera_wrap_1">
			    <?php
			    $args = array(
				    'post_type' => 'slider',
				    'posts_per_page' => '6',
				    'orderby' => 'rand'
			    );
			    ?>
			    <?php $the_query = new WP_Query($args); ?>
			    <?php if ($the_query->have_posts()) : ?>
			        <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
			        	<?php $slider_img= get_field('slider-img'); ?>
	            <div data-src="<?php echo $slider_img['url']; ?>"></div>
		            <?php endwhile; ?>
		            <?php wp_reset_postdata(); ?>
		        <?php endif; ?>
	        </div>
	    </div>
		<?php endif; ?>
	<?php if (is_front_page()): ?>
		<?php if (get_locale() == 'es_PE') {?>
			<div class="anuncio-general wow bounceInLeft" id="flot-air" data-wow-duration="10s" data-wow-delay="2s">
				<a href="http://www.turismoengrupo.com.pe/promociones/"  title="Promociones" alt="Promociones">
					<img src="<?php echo get_template_directory_uri() ?>/img/avion_anuncio.png" alt="Promociones" title="Promociones" >
				</a>
			</div>
		<?php }else{ ?>
			<div class="anuncio-general wow bounceInLeft" id="flot-air" data-wow-duration="10s" data-wow-delay="2s">
				<a href="http://www.turismoengrupo.com.pe/promotions/"  title="Promotions" alt="Promotions" >
					<img src="<?php echo get_template_directory_uri() ?>/img/avion_anuncio_en.png" alt="Promotions" title="Promotions">
				</a>
			</div>
		<?php } ?>
	<?php endif; ?>


	<style type="text/css">
		img.pago-icon {
		    float: left;
		    width: 44px;
		    margin-top: 6px;
		    padding-right: 8px;
		}
	</style>


	<?php
$args = array(
    'post_type' => 'informacion',
    'posts_per_page' => '1',
	'orderby' => 'menu_order',
    'order' => 'ASC'
);
?>
<?php $the_query = new WP_Query($args); ?>
<?php if ($the_query->have_posts()) : ?>
    <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>

		<!--section class="online-pago">
			<div class="center-align">
				<div class="lema-top onpago">
					<a href="http://pagos.turismoengrupo.com.pe/" target="blank">
						<p><img class="pago-icon" src="http://www.turismoengrupo.com.pe/wp-content/uploads/2017/02/icon-pago1.png"><?php the_field('ig-frase') ?></p>
					</a>
				</div>
			</div>
		</section-->

 <?php endwhile; ?>
    <?php wp_reset_postdata(); ?>
<?php endif; ?>

<style type="text/css">
	@media only screen and (max-width: 992px) {
		.lema-top.onpago{
			display: inline-block;
			max-width: 200px;
			position: relative;
    		z-index: 999!important;
		}
		section.online-pago {
   			position: absolute;
    		right: 0;
    		top: 150px;
		}
	}
	@media only screen and (min-width: 993px) {
		.lema-top.onpago{
			display: none;
		}
	}
</style>