{% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/front.html.twig') %}
{% if app.session.has('operatorId') != 1 %}
{% set urlArticle = app.request.uri %}
{% set text = articulo %}
{% set separator1 = "background-image: url('" %}
{% set separator2 = "');" %}
{% set imageArticle= ""~render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::extractUrlAction', { 'separator1':separator1 ,'separator2':separator2,'text':text,'type':'content' }))%}
{% set dataImage= json_decode(imageArticle, true)%}
{% set contentInfo = json_decode(articulo.description, true) %}
{% if contentInfo['origin1'] is defined %}
{% set originArticle = contentInfo['origin1'] %}
{% set nameCity = render(controller('Aviatur\\BlogBundle\\Controller\\DefaultController::nameCityBlogAction', {'iata':originArticle}))%}
{% endif %}
{% set city = articulo.url %}
{% set city = city|replace({'-': ' '}) %}
{% endif %}
{% block head_title %}Hoteles en {{nameCity|title|slice(0, 13)}} | Buscador de hoteles baratos en Aviatur.com{% endblock head_title %}
{% block head_meta_title %}Hoteles en {{nameCity|title|slice(0, 13)}} | Buscador de hoteles baratos en Aviatur.com{% endblock head_meta_title %}
{% block head_description_content %}
{% if app.session.has('operatorId') != 1 %}
{% if nameCity is defined %}
{% if originArticle=="A28" %}
Hoteles y alojamientos en Melgar. Con Aviatur reserve el hotel que se acomode a su necesidad y disfrute con amigos o en familia de la piscina bajo el sol.
{% elseif originArticle=="A01"%}
Hoteles con noches disponibles en Barú. Con Aviatur reserve el hotel que se acomode a su necesidad y disfrute del Caribe y de un cóctel en la playa.
{% elseif originArticle=="VDL"%}
Con Aviatur reserve hoteles y alojamientos en Villa de Leyva y disfrute de los lugares turísticos y paradisíacos de este destino, el más visitado de Boyacá.
{% elseif cookieLastSearch.description is defined and cookieLastSearch.description!='No disponible'%}
{{cookieLastSearch.description}} {{ cookieLastSearch.description > 1 ? 'Hoteles':'Hotel' }} con noches disponibles en {{nameCity|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro
{% else %}
Hoteles y alojamientos en {{nameCity|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro
{% endif %}
{% else %}
{% if cookieLastSearch.description is defined and cookieLastSearch.description!='No disponible'%}
{{ cookieLastSearch.description }} {{ cookieLastSearch.description > 1 ? 'Hoteles':'Hotel' }} con noches disponibles en {{city|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro
{% else %}
Hoteles y alojamientos en {{city|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro
{% endif %}
{% endif %}
{% endif %}
{% endblock head_description_content %}
{% block head_meta_label %}
{% if app.session.has('operatorId') != 1 %}
<meta property="og:type" content="article" />
<meta property="og:title" content="Hoteles en {{nameCity|title|slice(0, 13)}} | Buscador de hoteles baratos en Aviatur.com" />
<meta property="og:url" content="{{urlArticle}}" />
<meta property="og:description" content="{% if cookieLastSearch.description is defined and cookieLastSearch.description!='No disponible'%} {{ cookieLastSearch.description }} Hoteles con noches disponibles en {{nameCity|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro{% else %} Hoteles y alojamientos en {{nameCity|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro{% endif %}"/>
<meta property="og:image" content="{{dataImage["img"]}}"/>
<meta property="og:image:width" content="900" />
<meta property="og:image:height" content="450" />
<meta property="og:site_name" content="Aviatur.com" />
<meta property="fb:admins" content="266311843398184" />
<meta property="og:locale" content="es_CO" />
<meta property="og:locale:alternate" content="es_CO" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@Aviatur" />
<meta name="twitter:creator" content="@Aviatur" />
<meta name="twitter:title" content="Hoteles en {{nameCity|title|slice(0, 13)}} | Buscador de hoteles baratos en Aviatur.com" />
<meta name="twitter:description" content="{% if cookieLastSearch.description is defined and cookieLastSearch.description!='No disponible'%} {{ cookieLastSearch.description }} Hoteles con noches disponibles en {{nameCity|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro{% else %} Hoteles y alojamientos en {{nameCity|title}}. Con Aviatur reserve el hotel que se acomode a su necesidad: cerca del aeropuerto, del centro{% endif %}" />
<meta name="twitter:url" content="{{urlArticle}}" />
<meta name = "twitter: image" content = "{{dataImage["img"]}}" />
{% if '?itm' in app.request.uri %}
{% set urlCanonical = app.request.uri|split('?itm') %}
<link rel="canonical" href="{{urlCanonical[0]}}" />
{% endif %}
{% if '?utm' in app.request.uri %}
{% set urlCanonical = app.request.uri|split('?utm') %}
<link rel="canonical" href="{{urlCanonical[0]}}" />
{% endif %}
{% endif %}
{% endblock head_meta_label %}
{% block searcher_header %}
<div class="page__body--search js-page-body-toggle {% if app.session.has('operatorId') == 1 %}page__body--front{% endif %} {% if 'aviatur_general_homepage' in app.request.get('_route') %}hidden-palm{% endif %}">
{% block search_content %}
<div class="wrapper search__light" style="padding-top:25px !important; padding-bottom:30px !important;">
<div class="search__light--box frame">
{% if app.session.has('notEnableFlightSearch') == 0 %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Hotel/hotelSearch_engine.html.twig') %}
{% endif %}
</div>
</div>
{% endblock %}
</div>
{% endblock searcher_header %}
{% block javascripts %}
{% javascripts
'@AviaturGeneralBundle/Resources/public/js/component_socialNetwork.js'
'@AviaturContentBundle/Resources/public/js/content-promo.js'
%}
<script type="text/javascript" src="/{{ asset_url }}"></script>
{% endjavascripts %}
<script type="text/javascript">
if (document.getElementsByClassName('frame-single')[0]) {
var share = document.getElementsByClassName('frame-single')[0];
share.style.paddingLeft = "0px";
}
if (document.getElementById("promos-hoteles")) {//para también te puede interesar, rutas, y otros links
var promosHotel = document.getElementById('promos-hoteles').innerHTML;
jQuery("#promos-hoteles").remove();
document.getElementById("promos_hoteles").innerHTML = promosHotel;
}
jQuery(document).ready(function () {
jQuery(".lazy").lazyload({
effect: "fadeIn",
threshold: 300
});
});
</script>
{% if app.user != "" and (is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_' ~ app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_' ~ app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') and promoType is defined) %}
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('.js-ajax-homePromo').on('click', function () {
jQuery('.modal-title').html('Edit Promo');
jQuery('#js-form-homePromo').empty();
_loadSpinner("js-form-homePromo");
var url = "{{ path('aviatur_edit_homepromo', {promoType: 'hoteles-destino', id: 'xx', size: 'yy'}) }}";
var id = jQuery(this).data("id");
var size = jQuery(this).data("size");
var url = url.replace(/\xx/g, id);
var url = url.replace(/\yy/g, size);
jQuery.get(url, function (data) {
jQuery('#js-form-homePromo').html(data);
_removeSpinner("js-form-homePromo");
});
});
});
</script>
{% endif %}
{% endblock %}
{% block body %}<br>
{% set contentInfo = json_decode(articulo.description, true) %}
{% if contentInfo['breadcumb'] is defined %}
{% set breadcumb = contentInfo['breadcumb'] %}
{% endif %}
{% if contentInfo['type2'] is defined %}
{% set articleType = contentInfo['type2'] %}
{% endif %}
<div class="wrapper">
<div class="dispo-shared__sidebar_content_socialNetwork hide-portable" style="width: 4%;">
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/General/Components/component_socialNetwork.html.twig') %}
</div>
{% if breadcumb is defined and breadcumb!=""%}
<ol itemscope="" itemtype="http://schema.org/BreadcrumbList" class="breadcumb">
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://www.aviatur.com">
<span itemprop="name">Aviatur.com</span></a>
<i class="icon icon_chevron_right"></i>
<meta itemprop="position" content="1">
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://www.aviatur.com/buscar/hoteles">
<span itemprop="name">Hoteles</span></a>
<i class="icon icon_chevron_right"></i>
<meta itemprop="position" content="2">
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://www.aviatur.com/hoteles/hoteles-baratos-en">
<span itemprop="name">Hoteles Baratos</span></a>
<i class="icon icon_chevron_right"></i>
<meta itemprop="position" content="3">
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://www.aviatur.com/hoteles/hoteles-baratos-en/{{articleType}}">
<span itemprop="name">{{articleType|replace({'america': 'américa', 'oceania': 'oceanía','africa': 'áfrica'})|capitalize}}</span></a>
<i class="icon icon_chevron_right"></i>
<meta itemprop="position" content="4">
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://www.aviatur.com/hoteles/hoteles-baratos-en-{{articulo.url}}">
<span itemprop="name">{{breadcumb}}</span></a>
<meta itemprop="position" content="5">
</li>
</ol>
{% endif %}
<div id="promos-hoteles">
<section id="home-promos" class="wrapper flex-center">
{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
<a href="#" class="js-ajax-homePromo" data-id="0" data-size="picture" style="margin-bottom: 5px; display: block; font-size: 16px; font-weight: bold;" data-toggle="modal" data-target="#js-promo-editModal">CREAR UNA NUEVA PROMO</a>
{% endif %}
{% for hotelPromo in hotelPromos %}
{% if hotelPromo.size == "picture" and hotelPromo.linkSwitch== articulo.url%}
{% if hotelPromo.mobile == true or not is_mobile() or is_tablet()%}
{% set imageGuessedName = (hotelPromo.link|split('?')|first)|split('/')|last ~ "_" ~ hotelPromo.id ~ ".jpeg" %}
{% set pathToImage = "assets/" ~ agency_folder.assetStyle() ~ "/img/promo/box/"%}
{% if file_exists(pathToImage ~ imageGuessedName)%}
{% set imageLink = pathToImage ~ imageGuessedName %}
{% else %}
{% set imageLink = pathToImage ~ hotelPromo.id ~ ".jpeg" %}
{% endif %}
<div id="promo{{ loop.index }}" class="promo_box">
{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
<a href="#" class="js-ajax-homePromo" data-id="{{ hotelPromo.id }}" data-size="picture" style="margin-bottom: 2px" data-toggle="modal" data-target="#js-promo-editModal">EDITAR</a> -
{% endif %}
{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
<a href="{{ path('aviatur_edit_homepromo_delete', {id: hotelPromo.id, promoType: promoType}) }}">BORRAR</a>
{% endif %}
{% if hotelPromo.link|length > 0 or hotelPromo.link != null %}
<a href="{{ hotelPromo.link }}" target="_blank">
{% endif %}
<div class="relative">
<img src="/version/{{ hotelPromo.date| date('U') }}/{{imageLink}}" alt="{{hotelPromo.title}}">
{% if hotelPromo.content != null %}
<div class="promo_box-conditions">
<span>{{ hotelPromo.content }}</span>
</div>
{% endif %}
</div>
<div class="promo-content">
{% if hotelPromo.title != null %}
<h3 class="promo_box-title">
{%if '/' in hotelPromo.title%}
{% set promoTitle= hotelPromo.title|split('/')%}
{{promoTitle[0]}}<br>{{promoTitle[1]}}
{% else %}
{{ hotelPromo.title }}
{% endif %}
</h3>
{% endif %}
{% if hotelPromo.titleSwitch != null and hotelPromo.price != null %}
<p class="promo_box-subtitle text-left">{{ hotelPromo.price }}<br>{{ hotelPromo.titleSwitch }}</p>
{% elseif hotelPromo.titleSwitch != null and hotelPromo.price == null%}
<p class="promo_box-subtitle text-left">{{ hotelPromo.titleSwitch }}</p>
{% else %}
<p class="promo_box-subtitle text-left">{{ hotelPromo.price }}</p>
{% endif %}
</div>
{% if hotelPromo.link|length > 0 or hotelPromo.link != null %}
</a>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endfor %}
</section>
</div>
{{ articulo.text|raw }}
</div>
<div id="js-scrollTopBtn" class="btn--scroll-top pointer" role="button">▲</div>
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_datepickerContainer.html.twig') %}
{% if app.user != "" and (is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_'~app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_'~app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_'~app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/mainSearch_editModal.html.twig') %}
{% endif %}
{% endblock %}
{% block javascripts_bottom %}
{{ parent() }}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_js.html.twig') %}
<script type="text/javascript" src="{{ asset('assets/common_assets/js/vendor/owl.carousel.min.js') }}"></script>
{% endblock javascripts_bottom %}