{% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/front.html.twig') %}
{% set contentType = app.request.get('content') %}
{% if app.session.has('operatorId') != 1 %}
{% set host = app.request.getSchemeAndHttpHost()%}
{% endif %}
{% block javascripts %}
<script src="{{app.request.getSchemeAndHttpHost() ~ '/js/tinymce/tinymce.min.js'}}"></script>
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Content/Content/content_js.html.twig') %}
{% endblock %}
{% block head_title %}
{% if typeArticle is defined %}
{% if typeArticle=='aerolinea'%}
Aerolíneas | Información y ofertas en Aviatur.com
{% elseif typeArticle=='colombia'%}
Tiquetes baratos a diferentes ciudades de Colombia
{% elseif typeArticle=='america'%}
Ofertas en vuelos a destinos turísticos de América
{% elseif typeArticle=='oceania'%}
Ofertas en vuelos para su viaje a Oceanía
{% elseif typeArticle=='europa'%}
Ofertas en vuelos a diferentes ciudades y capitales de Europa
{% elseif typeArticle=='africa'%}
Ofertas en vuelos a ciudades de África
{% elseif typeArticle=='asia'%}
Información y ofertas para su viaje a Asia
{% elseif typeArticle=='blog'%}
Destinos creados para el blog | Aviatur
{% endif %}
{% endif %}
{% endblock head_title %}
{% block head_meta_title %}
{% if typeArticle is defined %}
{% if typeArticle=='aerolinea'%}
Aerolíneas | Información y ofertas en Aviatur.com
{% elseif typeArticle=='colombia'%}
Tiquetes baratos a diferentes ciudades de Colombia
{% elseif typeArticle=='america'%}
Ofertas en vuelos a destinos turísticos de América
{% elseif typeArticle=='oceania'%}
Ofertas en vuelos para su viaje a Oceanía
{% elseif typeArticle=='europa'%}
Ofertas en vuelos a diferentes ciudades y capitales de Europa
{% elseif typeArticle=='africa'%}
Ofertas en vuelos a ciudades de África
{% elseif typeArticle=='asia'%}
Información y ofertas para su viaje a Asia
{% elseif typeArticle=='blog'%}
Destinos creados para el blog
{% endif %}
{% endif %}
{% endblock head_meta_title %}
{% block head_description_content %}
{% if typeArticle is defined %}
{% if typeArticle=='aerolinea'%}
Encuentre aquí el destino nacional o internacional con su aerolínea preferida. Conozca los servicios, política de equipaje y rutas que ofrece cada aerolínea
{% elseif typeArticle=='colombia'%}
Encuentre ofertas en vuelos, información del aeropuerto, clima y aerolíneas de cada destino. Escoja un destino colombiano y disfrute de sus paisajes tropicales
{% elseif typeArticle=='america'%}
Si planea viajes al sur, centro o norte de América, aquí encontrará los destinos de su interés. Ofertas en vuelos, información de aeropuertos, clima y más
{% elseif typeArticle=='oceania'%}
Descubra los paisajes de Australia, Nueva Zelanda y los archipiélagos coralinos. Encuentre información de aeropuertos y ofertas en vuelos de cada destino
{% elseif typeArticle=='europa'%}
Descubra las ciudades y demás destinos del viejo continente que lo esperan con sorpresas culturales, arquitectónicas, gastronómicas. Promociones en vuelos
{% elseif typeArticle=='africa'%}
Los destinos turísticos de África le ofrecen todo un mundo de flora, fauna y gente maravillosa. Encuentre información de aeropuertos y ofertas en vuelos
{% elseif typeArticle=='asia'%}
Programe sus próximas vacaciones a Asia, un continente con diversidad de paisajes que brinda todas las posibilidades turísticas. Encuentre ofertas en vuelos
{% elseif typeArticle=='blog'%}
Destinos creados para el blog de Aviatur
{% endif %}
{% endif %}
{% endblock head_description_content %}
{% block head_meta_label %}
{% if app.session.has('operatorId') != 1 and typeArticle is defined %}
<link rel="canonical" href="{{host}}/tiquetes-baratos-a/{{typeArticle|trim}}" />
{% endif %}
{% endblock head_meta_label %}
{% block searcher_header %}
{% if typeArticle is defined %}
{% if typeArticle!='aerolinea' and typeArticle!='blog'%}
<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:45px !important; padding-bottom:45px !important;">
<div class="search__light--box-flight">
{% if app.session.has('notEnableFlightSearch') == 0 %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine.html.twig') %}
{% endif %}
</div>
</div>
{% endblock %}
</div>
{% endif %}
{% endif %}
{% endblock searcher_header %}
{% block body %}
<div class="wrapper" id="content-info">
{% if typeArticle is defined %}
<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" style="display: inline-block;">
<span itemprop="name">Aviatur.com</span></a>
<i class="icon icon_chevron_right" style="display: inline-block;"></i>
<meta itemprop="position" content="1">
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://www.aviatur.com/tiquetes-baratos-a">
<span itemprop="name">Tiquetes baratos</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/tiquetes-baratos-a/{{typeArticle}}">
<span itemprop="name">{%if typeArticle=="aerolinea"%}Aerolíneas{% else %}{{typeArticle|replace({'america': 'américa', 'oceania': 'oceanía','africa': 'áfrica'})|capitalize}}{% endif %}</span>
</a><meta itemprop="position" content="3">
</li>
</ol>
{% endif %}
{% if typeArticle is defined and typeArticle=='aerolinea'%}<h1 class="text-center type-main text-content sp-offset--big">Información y ofertas de Aerolíneas</h1>{% endif %}
<div class="inline-full">
<div class="content-con">
{% if active == "activo" %}
<section class="btn-group">
<label for="PD_Search">Buscar:</label>
<input type="search" id="PD_searchValidate" value="" class="text ui-widget-content ui-corner-all">
</section>
{% endif %}
</div>
{% if typeArticle is defined and typeArticle!='aerolinea' and typeArticle!="blog" %}
<div class="content-col sp-inset--small">
<h2 class="type-main">Vuelos en ciudades de {{typeArticle|replace({'america': 'américa', 'oceania': 'oceanía','africa': 'áfrica'})|capitalize}}</h2>
</div>
{% endif %}
</div>
<section class="btn-group">
{% if app.user != "" and (is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_'~agencyId) or is_granted('ROLE_SUPER_ADMIN') ) %}
<a href="{{ path('aviatur_content_airline_new', {'content':contentType}) }}" class="btn js-createContent">Crear Artículo</a>
{% if active == "inactivo" %}
<a href="{{ path('aviatur_content_airline_filtered', {'active':'activo', 'content':contentType, 'type':typeArticle}) }}" class="btn">
<i class="icon icon_magnifying-glass" style="font-size: 15px;"></i>
Ver Artículo Activos
</a>
{% elseif active == "activo" %}
<a href="{{ path('aviatur_content_airline_filtered', {'active':'inactivo', 'content':contentType,'type':typeArticle}) }}" class="btn">
<i class="icon icon_magnifying-glass" style="font-size: 15px;"></i>
Ver Artículo Inactivos
</a>
{% endif %}
{% endif %}
</section>
<div id="listContents" class="wrapper-susy">
{% for articulos in articulo %}
{% set articleType = 'destinos' %} {# ensure default article type #}
{% set articleDescription = '' %}
{% set contentInfo = json_decode(articulos.description, true) %}
{% if contentInfo['type'] is defined %}
{% set articleType = contentInfo['type'] %}
{% endif %}
{% if contentInfo['type2'] is defined %}
{% set destinoType = contentInfo['type2'] %}
{% endif %}
{% if contentInfo['description'] is defined %}
{% set articleDescription = contentInfo['description'] %}
{% endif %}
{% if typeArticle is defined and typeArticle==destinoType%}
<div class="content-con">
{% if active == "inactivo" %}
{% set color = "frame--negative" %}
{% elseif active == "activo" %}
{% set color = "frame--hero" %}
{% endif %}
<section class="frame-group">
<div class="frame-content {{ color }} no-margin" align="center" style="height: 74px;">
<p>{{ articulos.title }}</p>
</div>
{% if app.user != ""%}
<div class="frame-content">
<section class="text-center">
<a href="{{ path('aviatur_content_airline_view', {'id':articulos.url, 'content':articleType})}}">
<i class="icon icon icon_magnifying-glass"></i>
Visualizar
</a>
{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_'~agencyId) or is_granted('ROLE_SUPER_ADMIN') )%}
|
<a class="js-content" data-id="{{ articulos.id }}" data-toggle="modal" data-target="#js-promo-editModal" >
<img src="{{ asset('assets/default_assets/img/content/editar.png') }}" title='Editar' width="15px"/>
Editar
</a>
{% endif %}
{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_'~agencyId) or is_granted('ROLE_SUPER_ADMIN') ) %}
|
{% if active == "inactivo" %}
<a href="#" class="js-isActiContent content-menu-li-a" data-id="{{ articulos.id }}" data-toggle="modal" data-target="#js-promo-editModal" >
<img src="{{ asset('assets/default_assets/img/content/activar.png') }}" title='Activar' width="15px"/>
Activar
</a>
{% elseif active == "activo" %}
<a class="js-isActiContent" data-id="{{ articulos.id }}" data-toggle="modal" data-target="#js-promo-editModal" >
<img src="{{ asset('assets/default_assets/img/content/inactivar.png') }}" title='Inactivar' width="15px"/>
Desactivar
</a>
{% endif %}
{% endif %}
</section>
</div>
{% endif %}
{% if articleType=="aerolineas" %}
{% set separator1 = 'src="'%}
{% set separator2 = '" ' %}
{% set imageArticle= ""~render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::extractUrlAction', { 'separator1':separator1 ,'separator2':separator2,'text':articulos,'type':'content' }))%}
{% set dataImage= json_decode(imageArticle, true)%}
{% else %}
{% if destinoType=="colombia"%}
{% set separator1 = 'src="' %}
{% set separator2 = '">' %}
{% else %}
{% set separator1 = "background-image: url('" %}
{% set separator2 = "');" %}
{% endif %}
{% set imageArticle= ""~render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::extractUrlAction', { 'separator1':separator1 ,'separator2':separator2,'text':articulos,'type':'content' }))%}
{% set dataImage= json_decode(imageArticle, true)%}
{% endif %}
<div class="frame-content" style="padding: 0px; height: 150px; border-top:0; position: relative; background-color:white;">
{% if articleType=="aerolineas" %}
{% if "aviatur_logo" in imageArticle%}
<img style="width: 100%;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% elseif "logo-" in imageArticle%}
<img style="position: absolute; left: 0; right: 0; top: 20%; margin: auto;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% else %}
<img style="height: 100%; width: 100%; object-fit: cover;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% endif %}
{% else %}
{% if "aviatur_logo" in imageArticle%}
<img style="width: 100%;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% else %}
<img style="height: 100%; width: 100%; object-fit: cover;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% endif %}
{% endif %}
</div>
<div class="frame-content">
<p class="box-content">{{ articleDescription|striptags|slice(0, 250) }} ...</p>
<p style="text-align: center; padding: 0px 18px 18px; margin-bottom: 0;">
<a href="{{ path('aviatur_content_airline_view', {'id':articulos.url, 'content':articleType})}}">
<i class="icon icon_magnifying-glass"></i> Ver más
</a>
</p>
</div>
</section>
</div>
{% endif %}
{% if typeArticle is defined %}
{% if typeArticle=="blog"%}
<div class="content-con">
{% if active == "inactivo" %}
{% set color = "frame--negative" %}
{% elseif active == "activo" %}
{% set color = "frame--hero" %}
{% endif %}
<section class="frame-group">
<div class="frame-content {{ color }} no-margin" align="center" style="height: 74px;">
<p>{{ articulos.title }}</p>
</div>
{% if app.user != ""%}
<div class="frame-content">
<section class="text-center">
<a href="{{ path('aviatur_blog_destinos_view', {'id':articulos.url, 'content':'destinos'})}}">
<i class="icon icon icon_magnifying-glass"></i>
Visualizar
</a>
{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_'~agencyId) or is_granted('ROLE_SUPER_ADMIN') )%}
|
<a class="js-content" data-id="{{ articulos.id }}" data-toggle="modal" data-target="#js-promo-editModal" >
<img src="{{ asset('assets/default_assets/img/content/editar.png') }}" title='Editar' width="15px"/>
Editar
</a>
{% endif %}
{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_'~agencyId) or is_granted('ROLE_SUPER_ADMIN') ) %}
|
{% if active == "inactivo" %}
<a href="#" class="js-isActiContent content-menu-li-a" data-id="{{ articulos.id }}" data-toggle="modal" data-target="#js-promo-editModal" >
<img src="{{ asset('assets/default_assets/img/content/activar.png') }}" title='Activar' width="15px"/>
Activar
</a>
{% elseif active == "activo" %}
<a class="js-isActiContent" data-id="{{ articulos.id }}" data-toggle="modal" data-target="#js-promo-editModal" >
<img src="{{ asset('assets/default_assets/img/content/inactivar.png') }}" title='Inactivar' width="15px"/>
Desactivar
</a>
{% endif %}
{% endif %}
</section>
</div>
{% endif %}
{% if articleType=="aerolineas" %}
{% set separator1 = 'src="'%}
{% set separator2 = '" ' %}
{% set imageArticle= ""~render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::extractUrlAction', { 'separator1':separator1 ,'separator2':separator2,'text':articulos,'type':'content' }))%}
{% set dataImage= json_decode(imageArticle, true)%}
{% else %}
{% if destinoType=="colombia"%}
{% set separator1 = 'src="' %}
{% set separator2 = '">' %}
{% else %}
{% set separator1 = "background-image: url('" %}
{% set separator2 = "');" %}
{% endif %}
{% set imageArticle= ""~render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::extractUrlAction', { 'separator1':separator1 ,'separator2':separator2,'text':articulos,'type':'content' }))%}
{% set dataImage= json_decode(imageArticle, true)%}
{% endif %}
<div class="frame-content" style="padding: 0px; height: 150px; border-top:0; position: relative; background-color:white;">
{% if articleType=="aerolineas" %}
{% if "aviatur_logo" in imageArticle%}
<img style="width: 100%;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% elseif "logo-" in imageArticle%}
<img style="position: absolute; left: 0; right: 0; top: 20%; margin: auto;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% else %}
<img style="height: 100%; width: 100%; object-fit: cover;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% endif %}
{% else %}
{% if "aviatur_logo" in imageArticle%}
<img style="width: 100%;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% else %}
<img style="height: 100%; width: 100%; object-fit: cover;" src="{{dataImage["img"]}}" title="{{dataImage["title"]}}" alt="{{dataImage["title"]}}">
{% endif %}
{% endif %}
</div>
<div class="frame-content">
<p class="box-content">{{ articleDescription|striptags|slice(0, 250) }} ...</p>
<p style="text-align: center; padding: 0px 18px 18px; margin-bottom: 0;">
<a href="{{ path('aviatur_blog_destinos_view', {'id':articulos.url, 'content':'destinos'})}}">
<i class="icon icon_magnifying-glass"></i> Ver más
</a>
</p>
</div>
</section>
</div>
{% endif %}
{% endif %}
{% endfor %}
<div id="js-scrollTopBtn" class="btn--scroll-top pointer">▲</div>
</div>
{% if totalRegi > 1%}
<div id="pagination">
<button id="enlaceajax">Cargar más</button>
</div>
<script type="text/javascript">
var contador = 2;
var searching = 0;
const offset = 455;
var loadMore = function () {
if (contador <={{totalRegi}} ) {
var $url = '{{ path('aviatur_content_airline_filtered', { 'page':'2', 'active':active, 'content':contentType, 'type':typeArticle }) }}';
$url = $url.replace('2', contador);
jQuery("#enlaceajax").css("display", "none");
_loadSpinner("pagination");
jQuery("#pagination").css("background-size", "contain");
searching = 1;
jQuery.ajax({
type: "POST",
url: $url
}).done(function (result) {
_removeSpinner("pagination");
jQuery("#listContents").append(result);
contador = contador + 1;
searching = 0;
jQuery("#enlaceajax").css("display", "inline-block");
});
} else {
jQuery("#pagination").remove();
searching = 1;
jQuery(window).off("scroll", scrollHandler);
}
};
var scrollHandler = function () {
if (jQuery(window).scrollTop() + jQuery(window).height() > jQuery(document).height() - offset && searching == 0) {
loadMore();
}
}
jQuery(window).scroll(scrollHandler);
jQuery("#enlaceajax").click(function (event) {
if (searching == 0) {
loadMore();
}
});
</script>
{#<div align='center' class="bs-example" data-example-id="disabled-active-pagination">
{% set lastpage = page-1 %}
{% set nextpage = page+1 %}
{% if page != 1 %}
<a href="{{ path('aviatur_content_airline_filtered', { 'page':lastpage, 'active':active, 'content':contentType, 'type':typeArticle }) }}" class="btn" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
{% endif %}
{% for i in 1..totalRegi %}
<a href="{{ path('aviatur_content_airline_filtered', { 'page':i, 'active':active, 'content':contentType, 'type':typeArticle }) }}" class="btn">{{i}}
<span class="sr-only">(current)</span>
</a>
{% endfor %}
{% if page != totalRegi %}
<a href="{{ path('aviatur_content_airline_filtered', { 'page':nextpage, 'active':active, 'content':contentType, 'type':typeArticle }) }}" class="btn" aria-label="Previous">
<span aria-hidden="true">»</span>
</a>
{% endif %}
</div> #}
{% endif %}
</div>
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Content/Content/contentModal.html.twig') %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_datepickerContainer.html.twig') %}
{% endblock %}
{% block javascripts_bottom %}
{{ parent() }}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_js.html.twig') %}
{% endblock javascripts_bottom %}