src/Aviatur/TwigBundle/Resources/views/aviatur/Flux/Content/Content/promo.html.twig line 18

Open in your IDE?
  1. {% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/front.html.twig') %}
  2. {% if app.session.has('operatorId') != 1 %}
  3.     {% set urlArticle = app.request.uri %}
  4.     {% set text =  articulo %}
  5.     {% if cookieLastSearch.type=="aerolineas" %}
  6.         {% set separator1 = 'src="'%}
  7.         {% set separator2 = '" ' %}
  8.         {% set imageArticle= ""~render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::extractUrlAction', { 'separator1':separator1 ,'separator2':separator2,'text':text,'type':'content' }))%}
  9.         {% set dataImage= json_decode(imageArticle, true)%}
  10.     {% else %}
  11.         {% if cookieLastSearch.type2=="colombia"%}
  12.             {% set separator1 = 'src="' %}
  13.             {% set separator2 = '">' %}
  14.         {% else %}
  15.             {% set separator1 = "background-image: url('" %}
  16.             {% set separator2 = "');" %}
  17.         {% endif %}
  18.         {% set imageArticle= ""~render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::extractUrlAction', { 'separator1':separator1 ,'separator2':separator2,'text':text,'type':'content' }))%}
  19.         {% set dataImage= json_decode(imageArticle, true)%}
  20.     {% endif %}
  21. {% endif %}
  22. {% block head_title %}{% if app.session.has('operatorId') != 1 %}{{ articulo.title }}{% endif %}{% endblock head_title %}
  23. {% block head_meta_title %}{% if app.session.has('operatorId') != 1 %}{{ articulo.title }}{% endif %}{% endblock head_meta_title %}
  24. {% block head_keywords %}{% if app.session.has('operatorId') != 1 %}{{ articulo.keywords }}{% endif %}{% endblock head_keywords %}
  25. {% block head_description_content %}{% if app.session.has('operatorId') != 1 %}{% if cookieLastSearch.description is defined %}{{ cookieLastSearch.description }}{% endif %}{% endif %}{% endblock head_description_content %}
  26. {% block javascripts %}
  27.     <script type="text/javascript">
  28.         var urlArticle = '{{ articulo.url }}';
  29.     </script>
  30.     {% if cookieLastSearch.type=="aerolineas" and (articulo.url=="avianca" or articulo.url=="vivaair" or articulo.url=="easyfly" or articulo.url=="satena" or articulo.url=="latam-airlines") %}
  31.         <script type="text/javascript" src="{{ asset('assets/common_assets/js/vendor/owl.carousel-products.js') }}"></script>
  32.     {% else %}
  33.         <script type="text/javascript" src="{{ asset('assets/common_assets/js/vendor/owl.carousel.min.js') }}"></script>
  34.     {% endif %}
  35. {% endblock %}
  36. {% block head_meta_label %}
  37.     {{parent()}}
  38.     {% if app.session.has('operatorId') != 1 %}
  39.         <meta property="og:type" content="article" />
  40.         <meta property="og:title" content="{{articulo.title}}" />
  41.         <meta property="og:url" content="{{urlArticle}}" />
  42.         <meta property="og:description" content="{% if cookieLastSearch.description is defined %}{{ cookieLastSearch.description }}{% endif %}"/>
  43.         <meta property="og:image" content="{{dataImage["img"]}}"/>
  44.         <meta property="og:image:width" content="900" />
  45.         <meta property="og:image:height" content="450" />
  46.         <meta property="og:site_name" content="Aviatur.com" />
  47.         <meta property="fb:admins" content="266311843398184" />
  48.         <meta property="og:locale" content="es_CO" />
  49.         <meta property="og:locale:alternate" content="es_CO" />
  50.         <meta name="twitter:card" content="summary_large_image" />
  51.         <meta name="twitter:site" content="@Aviatur" />
  52.         <meta name="twitter:creator" content="@Aviatur" />
  53.         <meta name="twitter:title" content="{{ articulo.title }}" />
  54.         <meta name="twitter:description" content="{% if cookieLastSearch.description is defined %}{{ cookieLastSearch.description }}{% endif %}" />
  55.         <meta name="twitter:url" content="{{urlArticle}}" />
  56.         <meta name = "twitter: image" content = "{{dataImage["img"]}}" />
  57.         {% if '?itm' in app.request.uri %}
  58.             {% set urlCanonical = app.request.uri|split('?itm') %}
  59.             <link rel="canonical" href="{{urlCanonical[0]}}" />
  60.         {% endif %}
  61.         {% if '?utm' in app.request.uri %}
  62.             {% set urlCanonical = app.request.uri|split('?utm') %}
  63.             <link rel="canonical" href="{{urlCanonical[0]}}" />
  64.         {% endif %}
  65.     {% endif %}
  66. {% endblock head_meta_label %}
  67. {% block headerVideo %}
  68.     {% if cookieLastSearch.type=="aerolineas"%}
  69.         {% set pathToImage = "source/aerolineas/header/"~articulo.url%}
  70.         {% if file_exists(pathToImage ~ ".jpg")%}
  71.             {% set imageLink = pathToImage ~ ".jpg" %}
  72.             <div class="page-head__bg__img bg-img" style="background-image: url('/{{imageLink}}'); background-position: initial;"></div>
  73.         {% endif %}
  74.     {% endif %}
  75. {% endblock %}
  76. {% block searcher_header %}
  77.     <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 %}">
  78.         {% block search_content %}
  79.             <div class="wrapper search__light" {% if not is_mobile() %}style="padding-top:100px !important; padding-bottom:30px !important;"{% endif %}>
  80.                 <div class="search__light--box-flight">
  81.                     {% if app.session.has('notEnableFlightSearch') == 0 %}
  82.                         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine.html.twig') %}
  83.                     {% endif %}
  84.                 </div>
  85.             </div>
  86.         {% endblock %}
  87.     </div>
  88. {% endblock searcher_header %}
  89. {% block body %}
  90.     {% set info = articulo.url %}
  91.     {% if cookieLastSearch.type=="destinos"%}
  92.         {% set city= cookieLastSearch.destinationLabel1%}
  93.         {% set data= render(controller('Aviatur\\ContentBundle\\Controller\\ContentController::weatherAction', { 'citySearch': city}))%}
  94.         {% set weatherData= json_decode(data, true)%}
  95.         {% if weatherData!="No se encontro la ubicación" and weatherData!="Error API"%}
  96.             <div id="infoClima" style="display:none;">
  97.                 <div class="widget-weather" style="background-image: url('{{weatherData['current']['background']}}')">
  98.                     <div class="weather text-center">
  99.                         <h4>{{weatherData['current']['locationName']}}</h4>
  100.                         <p><time datetime="{{weatherData['current']['dateFormat']}}">{{weatherData['current']['dateCurrent']}}</time></p>
  101.                         <div class="info-weather">
  102.                             <img class="icon-weather sp-stack" src="{{weatherData['current']['icon']}}" alt="{{weatherData['current']['condition']}}" title="{{weatherData['current']['condition']}}">
  103.                             <p class="temperature">{{weatherData['current']['temp']}}°C</p>
  104.                             <span class="font-size-label">{{weatherData['current']['condition']}}</span>
  105.                         </div>
  106.                     </div>
  107.                     <ul class="forecast-vertical">
  108.                         {% for i in 0..4 %}
  109.                             <li>
  110.                                 <p class="day-forecast no-margin font-size-label"><time datetime="{{weatherData[i].dateFormat}}">{{weatherData[i].date}}</time></p>
  111.                                 <p class="icon-forecast"><img src="{{weatherData[i]. icon}}" alt="{{weatherData[i]. condition}}" title="{{weatherData[i]. condition}}"></p>
  112.                                 <p class="temperature-forecast" style="float: left;"><b>22°</b>/ 11°<br></p>
  113.                             </li>
  114.                         {% endfor %}
  115.                     </ul>
  116.                 </div>
  117.                 <div id="infoClimaHorizontal" style="display:none;">
  118.                     <h3 class="b-main">Clima</h3>
  119.                     {% set cityName= city|split(',')%}
  120.                     <p>Revisa aquí el pronóstico del clima en {{cityName[0]}}</p>
  121.                     <div class="widget-weather" style="background-image: url('{{weatherData['current']['background']}}')">
  122.                         <div class="weather">
  123.                             <h4>{{weatherData['current']['locationName']}}</h4>
  124.                             <p><time datetime="{{weatherData['current']['dateFormat']}}">{{weatherData['current']['dateCurrent']}}</time></p>
  125.                             <div class="info-weather">
  126.                                 <div class="content-7col">
  127.                                     <p class="temperature">{{weatherData['current']['temp']}}°C</p>
  128.                                     <span class="font-size-label">{{weatherData['current']['condition']}}</span>
  129.                                 </div>
  130.                                 <div class="content-3col">
  131.                                     <img class="icon-weather" src="{{weatherData['current']['icon']}}" alt="{{weatherData['current']['condition']}}" title="{{weatherData['current']['condition']}}">
  132.                                 </div>
  133.                             </div>
  134.                         </div>
  135.                         <ul class="forecast">
  136.                             {% for i in 0..4 %}
  137.                                 <li>
  138.                                     <p class="day-forecast"><time datetime="{{weatherData[i].dateFormat}}">{{weatherData[i].date}}</time></p>
  139.                                     <p class="icon-forecast"><img src="{{weatherData[i]. icon}}" alt="{{weatherData[i]. condition}}" title="{{weatherData[i]. condition}}"></p>
  140.                                     <p class="temperature-forecast"><b>{{weatherData[i]. maxTemp}}°</b>/ {{weatherData[i]. minTemp}}°<br></p>
  141.                                 </li>
  142.                             {% endfor %}
  143.                         </ul>
  144.                     </div>
  145.                 </div>
  146.             </div>
  147.         {% endif %}
  148.         {% if flightPromos is not empty %}
  149.             {% set nameCity = info|replace({'-': ' '}) %}
  150.         <div id="vuelos-promo">
  151.         {% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  152.                     <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>
  153.                 {% endif %}
  154.             <div class="content-destinos"> 
  155.                 {% for flightPromo in flightPromos %}
  156.                 {% if flightPromo.price is defined and flightPromo.price is not empty and flightPromo.price != "$" %}
  157.                     <div class="promo-card"> <!-- El tamaño de las tarjetas ya está especificado en CSS -->
  158.                         <div class="relative xs:flex xs:justify-center xs:items-center xs:w-full xs:mx-auto">
  159.                             <!-- Etiqueta "Por trayecto" o "Ida y vuelta" -->
  160.                             <div class="absolute top-0 left-1/2 transform -translate-x-1/2 z-10 h-6 px-2 py-1 bg-[#f0f7ff] rounded-lg justify-center items-center gap-1 inline-flex xs:w-auto xs:max-w-xs xs:px-4 sm:left-0 sm:transform-none sm:translate-x-0 sm:px-2 sm:py-1 sm:justify-start">
  161.                                 <div class="text-center text-[#042a44] text-sm font-semibold font-['Roboto'] sm:text-left">
  162.                                     {% if flightPromo.linkSwitch == 'O' %}
  163.                                         Por trayecto
  164.                                     {% else %}
  165.                                         Ida y vuelta
  166.                                     {% endif %}
  167.                                 </div>
  168.                             </div>
  169.                             <!-- Títulos de origen y destino -->
  170.                             <div class="inline-flex items-center gap-2 mt-10 justify-center sm:justify-start">
  171.                                     <svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
  172.                                         <path d="M3.14808 13.2713L0.7827 11.9829C0.637834 11.9085 0.556101 11.7947 0.537501 11.6415C0.518917 11.4883 0.563476 11.3579 0.671176 11.2502L0.90385 11.0271C0.9577 10.9733 1.02084 10.9354 1.09328 10.9136C1.16571 10.8919 1.23398 10.8893 1.29808 10.906L3.46922 11.2156L7.49423 7.19056L0.684625 3.49056C0.492325 3.38927 0.380142 3.23062 0.348075 3.01461C0.316025 2.79859 0.377567 2.61302 0.5327 2.45788L0.725001 2.26558C0.809617 2.18097 0.906734 2.1236 1.01635 2.09348C1.12595 2.06335 1.23973 2.06174 1.35768 2.08866L10.2885 4.36558L13.723 0.952158C13.9615 0.713708 14.2531 0.594482 14.598 0.594482C14.9429 0.594482 15.2345 0.713708 15.473 0.952158C15.7115 1.19062 15.8307 1.48389 15.8307 1.83196C15.8307 2.18002 15.7115 2.47329 15.473 2.71176L12.0634 6.14056L14.3307 15.0309C14.3576 15.1591 14.3551 15.2832 14.323 15.403C14.291 15.5229 14.2294 15.6284 14.1384 15.7194L14.0422 15.8155C13.8666 15.9912 13.6599 16.062 13.4221 16.028C13.1843 15.9941 13.0064 15.8675 12.8884 15.6482L9.22882 8.93476L5.22305 12.9405L5.52305 15.0905C5.53972 15.1816 5.53298 15.2675 5.50285 15.3482C5.47272 15.429 5.4256 15.5014 5.3615 15.5655L5.26535 15.6617C5.13075 15.7963 4.97242 15.8511 4.79037 15.8261C4.60833 15.8011 4.47178 15.7059 4.38075 15.5405L3.14808 13.2713Z" fill="#042A44"/>
  173.                                     </svg>
  174.                                 <div class="text-[#2e2e2e] text-sm font-semibold font-['Roboto'] leading-normal text-center sm:text-left">
  175.                                     {{ flightPromo.title }}
  176.                                 </div>
  177.                                     <svg width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg">
  178.                                         <path d="M6.3356 8.10925H1.4375C1.27789 8.10925 1.14424 8.05541 1.03655 7.94772C0.92885 7.84004 0.875 7.70639 0.875 7.54677C0.875 7.38716 0.92885 7.25351 1.03655 7.14582C1.14424 7.03814 1.27789 6.98429 1.4375 6.98429H6.3356L4.60481 5.2535C4.50096 5.14965 4.44783 5.02104 4.44543 4.86768C4.44302 4.71432 4.49614 4.57947 4.60481 4.46313C4.72114 4.34679 4.85479 4.28862 5.00576 4.28862C5.15671 4.28862 5.29036 4.34679 5.40671 4.46313L8.01583 7.07227C8.08603 7.14245 8.13554 7.21649 8.16438 7.29438C8.19323 7.37225 8.20766 7.45639 8.20766 7.54677C8.20766 7.63716 8.19323 7.72129 8.16438 7.79917C8.13554 7.87705 8.08603 7.9511 8.01583 8.0213L5.39516 10.6419C5.28363 10.7535 5.15311 10.8085 5.00358 10.8071C4.85407 10.8057 4.72114 10.7468 4.60481 10.6304C4.49614 10.5141 4.43989 10.3824 4.43606 10.2352C4.43221 10.0881 4.48846 9.9564 4.60481 9.84005L6.3356 8.10925ZM9.66436 3.84727L11.3952 5.57806C11.499 5.6819 11.5521 5.8105 11.5545 5.96386C11.5569 6.11722 11.5038 6.25207 11.3952 6.36841C11.2788 6.48476 11.1452 6.54294 10.9942 6.54294C10.8433 6.54294 10.7096 6.48476 10.5933 6.36841L7.98414 3.75929C7.91394 3.68909 7.86442 3.61505 7.83558 3.53718C7.80673 3.45929 7.79231 3.37515 7.79231 3.28477C7.79231 3.19439 7.80673 3.11026 7.83558 3.03237C7.86442 2.95449 7.91394 2.88045 7.98414 2.81026L10.6048 0.189591C10.7163 0.0780537 10.8469 0.023004 10.9964 0.0244415C11.1459 0.0258915 11.2788 0.0847848 11.3952 0.201122C11.5038 0.317472 11.5601 0.449204 11.5639 0.596317C11.5678 0.743429 11.5115 0.875154 11.3952 0.991491L9.66436 2.72229H14.5625C14.7221 2.72229 14.8557 2.77613 14.9634 2.88382C15.0711 2.9915 15.125 3.12515 15.125 3.28477C15.125 3.44438 15.0711 3.57803 14.9634 3.68572C14.8557 3.79342 14.7221 3.84727 14.5625 3.84727H9.66436Z" fill="#042A44"/>
  179.                                     </svg>
  180.                                 <div class="text-[#2e2e2e] text-sm font-semibold font-['Roboto'] leading-normal text-center sm:text-left">
  181.                                     {{ flightPromo.titleSwitch }}
  182.                                 </div>
  183.                             </div>
  184.                         </div>
  185.                     <!-- Bloque de precio y enlace "Ver vuelos" -->
  186.                         <div class="flex flex-col xs:items-center sm:flex-row sm:justify-between sm:items-center">
  187.                             <!-- Bloque del precio -->
  188.                             <div class="ticketsb-price text-center sm:text-left">
  189.                                 <div class="text-[#042a44] text-xs font-medium font-['Roboto']">Vuelo desde</div>
  190.                                 <strong class="text-[#005cb9] text-xl font-bold font-['Roboto']  xs:text-[#042a44]">{{ flightPromo.price }}</strong>
  191.                                 <strong class="text-[#005cb9] text-[15px] font-bold font-['Roboto'] xs:text-[#042a44]">COP</strong>
  192.                             </div>
  193.                                       
  194.                             <!-- Bloque "Ver vuelos" alineado a la derecha en escritorio y debajo del precio en móvil -->
  195.                             <div class="h-[45px] xs:w-[136px] w-full sm:w-auto sm:ml-4 sm:mt-0 sm:px-[30px] py-[13px] bg-[#00c77c] rounded-[30px] justify-center items-center gap-[22px] inline-flex overflow-hidden">
  196.                                 <div class="tickets-link text-white text-base font-bold font-['Roboto']">
  197.                                     <a href="{{ flightPromo.link }}" target="_blank" class="block text-center">Ver vuelos</a>
  198.                                 </div>
  199.                             </div>
  200.                         </div>
  201.                           {% if app.user != "" %}
  202.                                         {% if ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  203.                                             <a href="#" class="js-ajax-homePromo" data-id="{{ flightPromo.id }}" data-size="picture" style="margin-bottom: 2px"  data-toggle="modal" data-target="#js-promo-editModal">EDITAR</a> -
  204.                                         {% endif %}
  205.                                         {% if ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  206.                                             <a href="{{ path('aviatur_edit_homepromo_delete', {id: flightPromo.id, promoType: promoType}) }}">BORRAR</a>
  207.                                         {% endif %}
  208.                                         {% endif %}
  209.                     </div>
  210.                 {% endif %}
  211.                 {% endfor %}
  212.             </div>
  213.                 <div class="content-destinos"> 
  214.                     <div class="w-[729px]">
  215.                         <span class="text-[#8b8b8b] text-sm font-normal font-['Ubuntu'] leading-loose">
  216.                             * No se garantiza la disponibilidad ni precio de las ofertas publicadas.
  217.                         </span>
  218.                         <span class="text-[#2e2e2e] text-sm font-normal font-['Ubuntu'] leading-loose">
  219.                             <!-- Puedes agregar más contenido si lo necesitas aquí -->
  220.                         </span>
  221.                         <span class="text-[#005cb9] text-sm font-normal font-['Ubuntu'] underline leading-loose">
  222.                             <a href="https://www.aviatur.com/contenidos/terminos-y-condiciones-del-sitio">Ver más</a>
  223.                         </span>
  224.                     </div>
  225.                 </div>
  226.         </div>
  227.         {% endif %}
  228.     {% elseif cookieLastSearch.type=="aerolineas"%}
  229.         {% if flightPromos is not empty %}
  230.             {% set nameAirline = info|replace({'-': ' '}) %}
  231.             {% if info!="avianca" and info!="vivaair" and info!="easyfly" and info!="satena" and info!="latam-airlines"%}
  232.                 <div id="vuelos-promo">
  233.                     {% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  234.                         <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>
  235.                     {% endif %}
  236.                     <div class="content-destinos">
  237.                         <section class="destinos-promo">
  238.                             {% if info=='avianca' or info=='latam-airlines' or info=='vivaair'%}
  239.                                 <h3 class="b-main text-center">Vuelos con {{nameAirline|title|replace({'Latam Airlines': 'LATAM', 'Vivaair': "Viva Air"})}} Nacionales</h3>
  240.                             {% else %}
  241.                                 <h3 class="b-main text-center">Vuelos con {{nameAirline|title}} por trayecto</h3>
  242.                             {% endif %}
  243.                             <div id="flights-ticketsb">
  244.                                 <div class="clear" style="font-weight: bold;">
  245.                                     <div class="head-ticketsb">
  246.                                         <div class="ticketsb-origin-ar">ORIGEN</div>
  247.                                         <div class="ticketsb-destination-ar">DESTINO</div>
  248.                                         <div class="ticketsb-price-ar">PRECIO *</div>
  249.                                     </div>
  250.                                 </div>
  251.                                 {% for flightPromo in flightPromos %}
  252.                                     {% if flightPromo.linkSwitch=='O' %}
  253.                                         <div class="promo-ticketsb">
  254.                                             <div class="ticketsb-origin-ar">{{flightPromo.title}}</div>
  255.                                             <div class="ticketsb-destination-ar">{{flightPromo.titleSwitch}}</div>
  256.                                             <div class="ticketsb-price-ar"><strong class="hide-lap-and-up">*Precio: </strong>{{flightPromo.price}}</div>
  257.                                             <div class="tickets-link-ar"><a href="{{flightPromo.link}}" target="_blank">Ver vuelos <i class="icon icon_chevron_right"></i></a></div>
  258.                                                     {% if app.user != "" %}
  259.                                                         {% if ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  260.                                                     <a href="#" class="js-ajax-homePromo" data-id="{{ flightPromo.id }}" data-size="picture" style="margin-bottom: 2px"  data-toggle="modal" data-target="#js-promo-editModal">EDITAR</a> -
  261.                                                 {% endif %}
  262.                                                 {% if ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  263.                                                     <a href="{{ path('aviatur_edit_homepromo_delete', {id: flightPromo.id, promoType: promoType}) }}">BORRAR</a>
  264.                                                 {% endif %}
  265.                                             {% endif %}
  266.                                         </div>
  267.                                     {% endif %}
  268.                                 {% endfor %}
  269.                             </div>
  270.                         </section>
  271.                         <section class="destinos-promo">
  272.                             {% if info=='avianca' or info=='latam-airlines' or info=='vivaair'%}
  273.                                 <h3 class="b-main text-center">Vuelos con {{nameAirline|title|replace({'Latam Airlines': 'LATAM', 'Vivaair': "Viva Air"})}} Internacionales</h3>
  274.                             {% else %}
  275.                                 <h3 class="b-main text-center">Vuelos con {{nameAirline|title}} ida y vuelta</h3>
  276.                             {% endif %}
  277.                             <div id="flights-ticketsb">
  278.                                 <div class="clear" style="font-weight: bold;">
  279.                                     <div class="head-ticketsb">
  280.                                         <div class="ticketsb-origin-ar">ORIGEN</div>
  281.                                         <div class="ticketsb-destination-ar">DESTINO</div>
  282.                                         <div class="ticketsb-price-ar">PRECIO *</div>
  283.                                     </div>
  284.                                 </div>
  285.                                 {% for flightPromo in flightPromos %}
  286.                                     {% if flightPromo.linkSwitch=='R' %}
  287.                                         <div class="promo-ticketsb">
  288.                                             <div class="ticketsb-origin-ar">{{flightPromo.title}}</div>
  289.                                             <div class="ticketsb-destination-ar">{{flightPromo.titleSwitch}}</div>
  290.                                             <div class="ticketsb-price-ar"><strong class="hide-lap-and-up">*Precio: </strong>{{flightPromo.price}}</div>
  291.                                             <div class="tickets-link-ar"><a href="{{flightPromo.link}}" target="_blank">Ver vuelos <i class="icon icon_chevron_right"></i></a></div>
  292.                                                     {% if app.user != "" %}
  293.                                                         {% if ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  294.                                                     <a href="#" class="js-ajax-homePromo" data-id="{{ flightPromo.id }}" data-size="picture" style="margin-bottom: 2px"  data-toggle="modal" data-target="#js-promo-editModal">EDITAR</a> -
  295.                                                 {% endif %}
  296.                                                 {% if ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  297.                                                     <a href="{{ path('aviatur_edit_homepromo_delete', {id: flightPromo.id, promoType: promoType}) }}">BORRAR</a>
  298.                                                 {% endif %}
  299.                                             {% endif %}
  300.                                         </div>
  301.                                     {% endif %}
  302.                                 {% endfor %}
  303.                             </div>
  304.                         </section>
  305.                         <div class="conditions-flight">
  306.                             <p>* No se garantiza la disponibilidad ni precio de las ofertas publicadas. <a href="">Ver más</a></p>
  307.                         </div>
  308.                     </div>
  309.                 </div>
  310.             {% endif %}
  311.         {% endif %}
  312.     {% endif %}
  313.     <div {% if info!="avianca" and info!="vivaair" and info!="easyfly" and info!="satena" and info!="latam-airlines"%}class="wrapper"{% endif %}>
  314.         <div class="dispo-shared__sidebar_content_socialNetwork hide-portable" style="width: 4%;">
  315.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/General/Components/component_socialNetwork.html.twig') %}
  316.         </div>
  317.         <section class="no-margin-bottom sp-tinset--big" style="{%if flightPromos is not empty and (info=='avianca' or info=='latam-airlines' or info=='vivaair')%}background-color:#eee;{% endif %}">
  318.             <div class="wrapper">
  319.                 {% if cookieLastSearch.breadcumb is defined and cookieLastSearch.breadcumb!=""%}
  320.                     <ol itemscope="" itemtype="http://schema.org/BreadcrumbList" class="breadcumb">
  321.                         <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
  322.                             <a itemprop="item" href="https://www.aviatur.com">
  323.                                 <span itemprop="name">Aviatur.com</span></a>
  324.                             <i class="icon icon_chevron_right"></i>
  325.                             <meta itemprop="position" content="1">
  326.                         </li>
  327.                         <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
  328.                             <a itemprop="item" href="https://www.aviatur.com/tiquetes-baratos-a">
  329.                                 <span itemprop="name">Tiquetes baratos</span></a>
  330.                             <i class="icon icon_chevron_right"></i>
  331.                             <meta itemprop="position" content="2">
  332.                         </li>
  333.                         <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
  334.                             <a itemprop="item" href="https://www.aviatur.com/{%if cookieLastSearch.type=="aerolineas"%}tiquetes-baratos-con/aerolinea{% elseif cookieLastSearch.type=="destinos"%}tiquetes-baratos-a/{{cookieLastSearch.type2}}{% endif %}">
  335.                                 <span itemprop="name">{%if cookieLastSearch.type=="aerolineas"%}Aerolíneas{% elseif cookieLastSearch.type=="destinos"%}{{cookieLastSearch.type2|replace({'america': 'américa', 'oceania': 'oceanía','africa': 'áfrica'})|capitalize}}{% endif %}</span>
  336.                             </a>
  337.                             <i class="icon icon_chevron_right"></i>
  338.                             <meta itemprop="position" content="3">
  339.                         </li>
  340.                         <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
  341.                             <a itemprop="item" href="https://www.aviatur.com/vuelos/{%if cookieLastSearch.type=="aerolineas"%}tiquetes-baratos-con-{{articulo.url}}{% elseif cookieLastSearch.type=="destinos"%}tiquetes-baratos-a-{{articulo.url}}{% endif %}">
  342.                                 <span itemprop="name">{{cookieLastSearch.breadcumb}}</span></a>
  343.                             <meta itemprop="position" content="4">
  344.                         </li>
  345.                     </ol>
  346.                 {% endif %}
  347.             </div>
  348.         </section>
  349.         {% if cookieLastSearch.type=="aerolineas"%}
  350.             {% if flightPromos is not empty %}
  351.                 {% set info = articulo.url %}
  352.                 {% set nameAirline = info|replace({'-': ' '}) %}
  353.                 {% if info=="avianca" or info=="vivaair" or info=="easyfly" or info=="satena" or info=="latam-airlines"%}
  354.                     {% if flightPromos!=null%}
  355.                         <div id="vuelos-promo-slider">
  356.                             {% set titlePromo=flightPromosTitle~nameAirline|title%}
  357.                             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoHtmlSlider.html.twig') with {'homePromos': flightPromos, 'titlePromo':titlePromo, 'subtitlePromo': flightPromosSubtitle, 'promoType': promoType, 'background':'#eee'} %}
  358.                         </div>
  359.                     {% endif %}
  360.                 {% endif %}
  361.             {% endif %}
  362.         {% endif %}
  363.     </div>
  364.     {% if info=="avianca" or info=="vivaair" or info=="easyfly" or info=="satena" or info=="latam-airlines"%}
  365.         {{ articulo.text|raw }}
  366.     {% else %}
  367.         <div class="wrapper">
  368.             {{ articulo.text|raw }}
  369.         </div>
  370.     {% endif%}
  371.     <p id="infoAviatur" class="info-aviatur text-center"></p>
  372.     <div id="js-scrollTopBtn" class="btn--scroll-top pointer" role="button">▲</div>
  373.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_datepickerContainer.html.twig') %}
  374.     {% 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') ) %}
  375.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/mainSearch_editModal.html.twig') %}
  376.     {% endif %}
  377. {% endblock %}
  378. {% block javascripts_bottom %}    {{ parent() }}
  379.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_js.html.twig') %}
  380.     <script type="text/javascript">
  381.         var typeContent = '{{cookieLastSearch.type}}';
  382.         var type2Content = '{{cookieLastSearch.type2}}';
  383.         var user = '{{app.user}}';
  384.     </script>
  385.     {% javascripts
  386.         '@AviaturGeneralBundle/Resources/public/js/component_socialNetwork.js'
  387.         '@AviaturContentBundle/Resources/public/js/content-promo.js'%}
  388.     <script type="text/javascript" src="/{{ asset_url }}"></script>
  389.     {% endjavascripts %}
  390.     {% 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') ) %}
  391.         <script type="text/javascript">
  392.             jQuery(document).ready(function () {
  393.                 jQuery('.js-ajax-homePromo').click(function () {
  394.                     jQuery('.modal-title').html('Edit Promo');
  395.                     jQuery('#js-form-homePromo').empty();
  396.                     _loadSpinner("js-form-homePromo");
  397.                     var url = "{{ path('aviatur_edit_homepromo', {promoType: 'vuelos-destinos', id: 'xx', size: 'yy'}) }}";
  398.                     var id = jQuery(this).data("id");
  399.                     var size = jQuery(this).data("size");
  400.                     var url = url.replace(/\xx/g, id);
  401.                     var url = url.replace(/\yy/g, size);
  402.                     jQuery.get(url, function (data) {
  403.                         jQuery('#js-form-homePromo').html(data);
  404.                         _removeSpinner("js-form-homePromo");
  405.                     });
  406.                 });
  407.             });
  408.         </script>
  409.     {% endif %}
  410. {% endblock javascripts_bottom %}