{% if 'aviatur_general_homepage' in app.request.attributes.get('_route') or 'aviatur_search_hotels' in app.request.attributes.get('_route')
or 'aviatur_search_flights' in app.request.attributes.get('_route') or 'aviatur_search_cars' in app.request.attributes.get('_route')
or 'aviatur_search_bus' in app.request.attributes.get('_route') or 'aviatur_search_experiences' in app.request.attributes.get('_route')
or 'aviatur_search_flight_hotel_car' in app.request.attributes.get('_route') or 'aviatur_search_package' in app.request.attributes.get('_route')
or 'aviatur_search_cruise' in app.request.attributes.get('_route') or 'aviatur_search_insurance' in app.request.attributes.get('_route')
%}
{% endif %}
{% if app.session.get('domainsecure')!=app.session.get('domain')%}
{% set loginDomain = "https://" ~app.session.get('domainsecure')%}
{% elseif app.session.get('domainport')=="443"%}
{% set loginDomain="https://"~app.session.get('domainsecure')%}
{% else %}
{% set loginDomain="http://"~app.session.get('domainsecure')%}
{% endif %}
{% if parameters['blob_azure_assets'] is defined %}
{% set assetsBlobUrl = parameters['blob_azure_assets'] %}
{% else %}
{% set assetsBlobUrl = "https://aviaturcdndev.z5.web.core.windows.net/"%}
{% endif %}
{% set isHomeSearch = 'search' in app.request.attributes.get('_route') or 'homepage' in app.request.attributes.get('_route') ? true : false %}
<div class="page-head--responsive relative clearfix wrapper-flex-container {{ isHomeSearch ? "bg-white m:!bg-transparent s:!bg-transparent xs:!bg-transparent" : "!bg-white" }}" role="banner">
<div class="page-head__mobile-offset hidden-lap-and-up"></div>
<div class="page-head__container-mobile grid grid-cols-12 mx-6 justify-between m:justify-items-center s:justify-items-center xs:justify-items-center items-center">
{#<div class="page-head__bg-container--responsive hidden-lap-and-up hide"><div class="page-head__bg__img bg-img{{videoType}} js-headerImg"></div></div>#}
<div class="col-span-2 lg:hidden">
<div class="flex-row type-white hide"><span>COP</span>
<span class="type-white material-symbols-rounded hide">arrow_drop_down</span>
</div>
</div>
{% if app.session.has('whitemark')!=1%}
<div class="col-span-5 m:col-span-9 s:col-span-8 xs:col-span-8">
<a href="{{linkHeader}}">
<div class="text-center">
<div class="relative">
{# AZUL #}
<img class="page-head__aviatur {# m:hidden s:hidden xs:hidden #} {{ isHomeSearch ? "block m:hidden s:hidden xs:hidden" : "block" }}" src="{{ assetsBlobUrl ~ 'assets/'~ agency_folder.assetStyle() ~ '/img/header/aviatur_logo_blue.svg' }}" alt="Aviatur.com Tiquetes baratos a cualquier destino. Reserva y compra tiquetes aéreos, cuartos de hoteles, autos, cruceros y paquetes turísticos en línea" title="Aviatur.com - Tiquetes baratos a cualquier destino. Reserva y compra tiquetes aéreos, cuartos de hoteles, autos, cruceros y paquetes turísticos en línea"/>
{# BLANCO #}
<img class="page-head__aviatur {# hidden m:block s:block xs:block #} {{ isHomeSearch ? "hidden m:block s:block xs:block" : "hidden" }}" src="{{ assetsBlobUrl ~ 'assets/'~ agency_folder.assetStyle() ~ '/img/header/aviatur_logo_white.svg' }}" alt="Aviatur.com Tiquetes baratos a cualquier destino. Reserva y compra tiquetes aéreos, cuartos de hoteles, autos, cruceros y paquetes turísticos en línea" title="Aviatur.com - Tiquetes baratos a cualquier destino. Reserva y compra tiquetes aéreos, cuartos de hoteles, autos, cruceros y paquetes turísticos en línea"/>
</div>
</div>
</a>
</div>
{% endif %}
{% if is_mobile() %}
<div class="col-span-1 float-left px-2.5 text-center hidden m:block s:block xs:block">
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigStyle() ~'/App/header/secondary-nav-palm.html.twig') %}
</div>
{% else %}
<div class="col-span-7 px-2.5 m:hidden s:hidden xs:hidden">
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigStyle() ~'/App/header/secondary-nav.html.twig') with {'isMobile': false } %}
</div>
{% endif %}
{# <div class="hidden-palm hidden-lap" style="border-right: 0px;">
{% if app.session.get('WorldChangeCoin') is defined and app.session.get('WorldChangeCoin') == true %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigStyle() ~'/App/header/coin-list.html.twig') %}
{% endif %}
</div> #}
</div>
<div class="nav-top pull-right hide-palm hide">
{% if app.session.get('domainsecure')!=app.session.get('domain')%}
{% set loginDomain = "https://" ~app.session.get('domainsecure')%}
{% elseif app.session.get('domainport')=="443"%}
{% set loginDomain="https://"~app.session.get('domainsecure')%}
{% else %}
{% set loginDomain="http://"~app.session.get('domainsecure')%}
{% endif %}
{% if not app.user %}
<div class="nav-top__login hide sp-vinset pull-right">
<ul class="list-inline">
<li>
{% if app.session.get('WorldChangeCoin') is defined and app.session.get('WorldChangeCoin')==true %}
{# {% include twig_exists('@AviaturTwig/'~ agency_folder.twigStyle() ~'/App/header/coin-list.html.twig') %} #}
{% endif %}
<span id="js-openCallUs2" class="link-quiet link-span" data-modal="#js-modalPhones">Contáctenos</span>
<a href="{{loginDomain}}/login" class="link-quiet">Iniciar sesión</a>
</li>
</ul>
</div>
{% endif %}
</div>
{% set displayState=''%}
{% if 'aviatur_general_homepage' not in app.request.attributes.get('_route') or app.request.query.has('anchor') %}
{#hide palm menu if not homepage or anchored link#}
{% set displayState = 'hidden-palm' %}
{% endif %}
{# {% set nameImgApp='menu-img-mobile5.jpg' %}
{% if blackFriday is defined %}
{% if blackFriday=='true' %}
{% set nameImgApp='menu-img-mobile_black_friday.jpg'%}
{% endif %}
{% endif %} #}
{# <div class="js-nav-main-state wrapper-row nav-main__border_top">
<a class="js-viewHomePromos hide" href="{% if 'aviatur_general_homepage' not in app.request.get('_route') %}{{ linkHeader }}?anchor{% endif %}#home-promos">
<div class="page-head__menu-img-mobile" style="background-image:url('/assets/aviatur_assets/img/header/{{nameImgApp}}')"></div>
</a>
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigStyle() ~'/App/header/nav-main.html.twig') %}
</div> #}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigStyle() ~'/App/header/navbar-items.html.twig') %}
<div class="nav-top pull-right hide">
{% if app.user %}
<div class="nav-top__logged">
<ul class="list-inline">
<li class="hide-portable"><a class="link-quiet sp-inset--tiny" id="js-customerEdit" href="{{path('aviatur_customer_edit_info')}}">{{app.user.username}}</a></li>
<li><a class="link-quiet sp-inset--tiny" id="js-customerReservations" href="{{path('aviatur_customer_booking_nocheck')}}">Mis reservas</a></li>
<li><a class="link-quiet sp-inset--tiny" id="js-customerLogout" href="{{path('fos_user_security_logout')}}">Cerrar sesión</a></li>
</ul>
</div>
{% endif %}
</div>
</div>
{% set route = app.request.attributes.get('_route') %}
{% if route == 'aviatur_general_homepage' or route == 'aviatur_flight_oneway' or route == 'aviatur_flight_round' or route == 'aviatur_flight_multi_1' or route == 'aviatur_flight_multi_2' or route == 'aviatur_flight_multi_3' or route == 'aviatur_flight_multi_4' or route == 'aviatur_flight_multi_5' or route == 'aviatur_flight_multi_6' %}
<div class="wrapper frame alert warning hide" style="color:white;margin:0 auto;">
{% if "now"|date('U') >= '2020-03-19 00:00:00'|date('U') and "now"|date('U') < '2020-03-19 23:59:59'|date('U') %}
<p>Le recordamos que el día de hoy, el Presidente de la República Ivan Duque Márquez anunció la prohibición de la llegada de vuelos internacionales al país, así como el ingreso de pasajeros nacionales e internacionales al Aeropuerto El Dorado en Bogotá. Esta medida regirá desde el próximo lunes 23 de marzo a las 00:00 horas, y se extenderá durante 30 días.</p>
{% elseif "now"|date('U') >= '2020-03-20 00:00:00'|date('U') and "now"|date('U') <= '2021-04-30 23:59:59'|date('U')%}
<p>Le recordamos que el Presidente de la República Iván Duque Márquez anunció la prohibición de la llegada de vuelos internacionales al país, así como el ingreso de pasajeros nacionales e internacionales al Aeropuerto El Dorado en Bogotá. Esta medida empezó a regir desde el lunes 23 de marzo a las 00:00 horas y se extenderá hasta el próximo 11 de mayo.</p>
{% endif %}
</div>
{% endif %}
{% block styles %}
<style>
/* Hide scrollbar for Chrome, Safari and Opera */
.no__scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no__scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.scrollBarHidden::-webkit-scrollbar {
display: none;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
</style>
{% endblock %}
{% block javascripts %}
<script>
jQuery(document).ready(function () {
let $panelProfile = document.querySelector('#nav-mail') || null;
let $contentPanelProfile = document.querySelector('.content-panel__profile') || null;
document.addEventListener('click' , e => {
if (e.target.matches('.js-active-profile')) {
$panelProfile.classList.add('active-profile');
$contentPanelProfile.style.position = 'fixed';
}
if (e.target.matches('.content-panel__profile') || e.target.matches('#js-customerLogout')) {
$panelProfile.classList.remove('active-profile');
$contentPanelProfile.style.position = 'relative';
}
});
jQuery('.js-modal-login__open, .modal-header .close').click(function(){
if(jQuery('#js-modalLogin').css("display") != 'none'){
jQuery('#js-modalLogin').toggle();
}
if (jQuery("#js-modalLogin").is(":visible")) {
jQuery('body').append('<div class="modal-backdrop fade in"></div>');
} else {
jQuery('.modal-backdrop').remove();
}
});
});
</script>
{% endblock %}