src/Aviatur/TwigBundle/Resources/views/default/Flux/Search/Flight/flightSearch_engine.html.twig line 1

Open in your IDE?
  1. <form action ="#" class="search__engine clearfix search-flight js-searchForm js-searchFormFlight">
  2.     {% if cookieLastSearch is defined and cookieLastSearch != null %}
  3.         <div style="display:none">
  4.             <p id="js-cookieLastSearch-origin">{{ cookieLastSearch['origin1'] }}</p>
  5.             <p id="js-cookieLastSearch-destination">{{ cookieLastSearch['destination1'] }}</p>
  6.             <p id="js-cookieLastSearch-originLabel">{{ cookieLastSearch['originLabel1'] }}</p>
  7.             <p id="js-cookieLastSearch-destinationLabel">{{ cookieLastSearch['destinationLabel1'] }}</p>
  8.             <p id="js-cookieLastSearch-date1">{{ cookieLastSearch['date1'] }}</p>
  9.             <p id="js-cookieLastSearch-date2">{% if cookieLastSearch['date2'] is defined %}{{ cookieLastSearch['date2'] }}{% endif %}</p>
  10.             <p id="js-cookieLastSearch-adults">{{ cookieLastSearch['adults'] }}</p>
  11.             <p id="js-cookieLastSearch-children">{{ cookieLastSearch['children'] }}</p>
  12.             <p id="js-cookieLastSearch-infants">{{ cookieLastSearch['infants'] }}</p>
  13.         </div>
  14.     {% endif %}
  15.     {# START .search-header #}
  16.     <div class="search__header clearfix mb-lg-0" style="padding-top:12%; padding-bottom: 3%;">
  17.         <h1 class="search__title-principal-flight hide-availengine tooltips">
  18.             {# <span class="tooltips-content hidden-all">Vuelos Baratos</span> #}
  19.             <i class="icon icon_bundle_flight search__title__icon hide-lap-and-up hide-palm"></i>
  20.             {% if articulo is not defined %}
  21.                 {% if promoType is defined %}
  22.                     {% if 'ofertas-' in promoType and 'destinos' not in promoType and 'fin' not in promoType%}
  23.                         {% set promoArray = promoType|split('-') %}
  24.                         <span class="">Busque sus tiquetes baratos </span><span class="hide-portable">
  25.                             {% if promoArray|length == 2 %}
  26.                                 <span>{{promoArray[1]|capitalize}}</span>
  27.                             {% elseif promoArray|length == 3 %}
  28.                                 <span>{{promoArray[1]|capitalize}} {{promoArray[2]|capitalize}}</span>
  29.                             {% elseif promoArray|length == 4 %}
  30.                                 <span>{{promoArray[2]|capitalize}} {{promoArray[3]|capitalize}}</span>
  31.                             {% endif %}
  32.                         </span>
  33.                     {% else %}
  34.                         <!-- b class="">Busque sus vuelos</b -->{#% if app.session.has('operatorId') != 1 %}<b class="hide-portable"> baratos</b>{% endif %#}
  35.                         {% if app.session.has('operatorId') != 1 %}<b class="search-title-flight mb-5">¿A qué lugar quiere viajar?</b>{% else %}<b class="search-title-flight">Busque sus vuelos</b>{% endif %}
  36.                     {% endif %}
  37.                 {% else %}
  38.                 {#<b class="">Busque sus tiquetes</b>{% if app.session.has('operatorId') != 1 %}<b class="hide-portable"> baratos</b>{% endif %}#}
  39.                 {% if app.session.has('operatorId') != 1 %}<b class="search-title-flight mb-5">¿A qué lugar quiere viajar?</b>{% else %}<b class="search-title-flight">Busque sus tiquetes</b>{% endif %}
  40.                 {% endif %}
  41.             {% endif %}
  42.             {% if articulo is defined and articulo.url is defined%}
  43.                 <b class="">Vuelos Baratos</b><b class="hide-portable">
  44.                     {% set info = articulo.url %}
  45.                     {% set info = info|replace({'-': ' '}) %}
  46.                     {% set contentInfo = json_decode(articulo.description, true) %}
  47.                     {% if contentInfo['type']=="aerolineas"%}
  48.                         con {{info|title}}
  49.                     {% endif %}
  50.                     {% if contentInfo['type']=="destinos" %}
  51.                         a {{info|title}}
  52.                     {% endif %}
  53.                 </b>
  54.             {% endif %}
  55.             {% if articulo is defined and articulo.url is not defined and typeArticle is defined%}
  56.                 <span class="">
  57.                     {% set info = typeArticle %}
  58.                     {% set info = info|replace({'-': ' '}) %}
  59.                     {% if info=="colombia"%}
  60.                         Tiquetes
  61.                     {% else %}
  62.                         Vuelos
  63.                     {% endif %}
  64.                     <span class="hide-portable">Baratos </span>
  65.                     a {{info|replace({'oceania': 'oceanía', 'america': "américa",'africa': "áfrica"})|capitalize}}</span>
  66.                 {% endif %}
  67.         </h1>
  68.         {% if validateExplore is defined and validateExplore == true %}
  69.             <div class="search__btn-group btn-group explore-btn hidden-all" role="group" aria-label="Select flight type">
  70.                 <button type="button" id="explore-mobile" class="btn btn--inactive tooltips" data-date="1" data-type="explore-mobile" title="Explorar">
  71.                     <span class="tooltips-content hidden-all show-availengine">Presupuesto</span>
  72.                     <i class="icon icon_banknote hidden-palm show-availengine"></i>
  73.                     <span class="hide-availengine">
  74.                     </span>
  75.                     <div style="display:none">
  76.                         <input type="checkbox" name="applyBudget" id="applyBudget">
  77.                     </div>
  78.                 </button>
  79.             </div>
  80.         {% endif %}
  81.     </div>
  82.     <div class="search__light--box-opaque-palm  xs:border xs:border-gray xs:rounded-[5px] xs:shadow-[0_0px_3px_-10px_rgba(0,0,0,0.3)] xs:bg-white s:border s:border-gray s:rounded-[5px] s:shadow-[0_0px_3px_-10px_rgba(0,0,0,0.3)] s:bg-white">
  83.         <div class="search__header clearfix  mb-lg-0 pt-[4px] xs:pt-[4px] s:pt-[4px]"> 
  84.             <div style="float:left; margin-bottom: -12%;" class="search__btn-group btn-group" role="group" aria-label="Select flight type">
  85.                 <button type="button" id="vuelta" class="btn tooltips" data-date="1" data-type="roundtrip" title="Ida y Vuelta">
  86.                     <span class="tooltips-content hidden-all show-availengine">Ida y Vuelta</span>
  87.                     <i class="material-symbols-outlined flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_unchecked</i>
  88.                     <span class="hide-avaialengine">
  89.                         Ida y Vuelta
  90.                     </span>
  91.                 </button>
  92.                 <button type="button" id="ida" class="btn btn--inactive tooltips xs:ml-[-3%] s:ml-[-3%]" data-date="1" data-type="oneway" title="Solo Ida">
  93.                     <span class="tooltips-content hidden-all show-availengine">Solo Ida</span>
  94.                     <i class="material-symbols-outlined flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_checked</i>
  95.                     <span class="hide-availengine">
  96.                         Solo Ida
  97.                     </span>
  98.                 </button>
  99.                 <button type="button" id="multidest" class="btn btn--inactive tooltips xs:mr-[-8%] s:mr-[-8%] xs:ml-[-3%] s:ml-[-3%] " title="Multidestino">
  100.                     <span class="tooltips-content hidden-all show-availengine">Multidestino</span>
  101.                     <i class="material-symbols-outlined flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_unchecked</i>
  102.                     <span class="hide-availengine">
  103.                         Multidestino
  104.                     </span>
  105.                 </button>
  106.                 {% if validateExplore is defined and validateExplore == true %}
  107.                 <button style="visibility:hidden;" type="button" id="explore" class="btn btn-explore btn--inactive tooltips hide-portable" data-date="1" data-type="explore" title="Explorar">
  108.                     <span class="tooltips-content show-availengine">¿Quiere saber a donde viajar con su presupuesto?</span>
  109.                     <i class="icon icon_banknote hidden-palm show-availengine"></i>
  110.                     <span class="hide-availengine">
  111.                         Buscar por presupuesto
  112.                     </span>
  113.                     <div style="display:none">
  114.                         <input type="checkbox" name="applyBudget" id="applyBudget">
  115.                     </div>
  116.                 </button>
  117.                 {% endif %}
  118.             </div>
  119.         </div>
  120.         {# END .search-header #}
  121.         {# START .search-body #}
  122.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_body.html.twig') %}
  123.         {# END .search-body #}
  124.         {# START .search-show #}
  125.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_show.html.twig') %}
  126.         {# END .search-show #}
  127.         {# START .search-footer #}
  128.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_options.html.twig') %}
  129.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_footer.html.twig') %}
  130.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_notificationModal.html.twig') %}
  131.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_cencosudLatamTrips.html.twig') %}
  132.         {# END .search-footer #}
  133.         {# SUBMIT #}
  134.         <div class="clearfix">
  135.             <span id="js-responsive-submit-palm"></span>
  136.             <div class="flex-row form-group js-responsive-submit search-flight__col-footer-search">
  137.                 <input type="button" value="travel Buscar en Vuelos" style="font-size:1.2rem;letter-spacing: 0.2rem;" class="hide material-symbols-outlined search__footer__submit btn btn--submit btn--full {% block package_submit_btn_2 %}js-searchButton{% endblock %}">
  138.                 <a class="btn btn--submit btn--full {% block package_submit_btn_3 %}js-searchButton{% endblock %}">
  139.                     <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.55755 4.89425L5.03343 0.63501H6.84541C7.1997 0.635009 7.54744 0.730493 7.85207 0.911424C8.15671 1.09235 8.40697 1.35205 8.57656 1.66319L10.7027 4.89425H6.55755ZM13.8121 6.16132H3.28782L1.58757 4.4593C1.43133 4.29461 1.21976 4.1935 0.993513 4.17539C0.767265 4.15728 0.542309 4.22346 0.361884 4.3612C0.181458 4.49894 0.0582949 4.69853 0.0160672 4.9216C-0.0261604 5.14466 0.0155273 5.37547 0.133118 5.56966L2.2494 9.44835H6.94728L4.62332 15.365H6.63641C6.98398 15.3664 7.32561 15.2749 7.62602 15.1001C7.92643 14.9252 8.17471 14.6733 8.34521 14.3703L11.3599 9.44835H15.7837V8.13354C15.7837 7.61047 15.576 7.10883 15.2063 6.73897C14.8365 6.36911 14.335 6.16132 13.8121 6.16132Z" fill="white"/></svg>
  140.                     Buscar en vuelos
  141.                 </a>
  142.             </div>
  143.         </div>
  144.     </div>
  145.     <script src="https://q.bstatic.com/static/affiliate_base/js/search_extension.js" integrity="sha384-SKVrvRv16JN55Tqpe0zKniEUmA3VK5mLvUUiLIoYMy6P21mse6WxTbIQRRjNx2Er" crossorigin="anonymous" async defer></script>
  146. </form>
  147. {# <div class="wrapper flex-row  hide-palm">
  148.         <div class="col-grid text-center js-scroll-down">
  149.             <h5 href="#" class="type-white sp-stack--small" style="text-shadow: 1px 1px 2px black;">Descubra promociones</h5>
  150.             <span class="material-symbols-outlined type-white sp-stack--big">expand_more</span>
  151.         </div>
  152.     </div> #}