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

Open in your IDE?
  1. {% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_index.html.twig') %}
  2. {% set home_slider = '1' %}
  3. {% block head_meta_label %}
  4.     {{parent()}}
  5.     <meta name="robots" content="index, follow">
  6. {% endblock head_meta_label %}
  7. {% block search_content %}
  8.     <div class="lg:max-h-[30hw] md:px-0 lg:bg-black/10">
  9.         <div class="search__light wrapper xl:py-7 2xl:py-0">
  10.             <div class="search__light--box-flight lg:min-h-[40vh] lg:max-h-none 2xl:min-h-[50vh]">
  11.                 {% if app.session.has('notEnableFlightSearch') == 0 %}
  12.                     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine.html.twig') %}
  13.                 {% endif %}
  14.             </div>
  15.         </div>
  16.     </div>
  17.     {# <div class="wrapper flex-row">
  18.         <div class="col-grid text-center">
  19.             <h5 href="#" class="type-white sp-stack--small" style="text-shadow: 1px 1px 2px black;">Descubra promociones</h5>
  20.             <span class="material-symbols-rounded type-white sp-stack--big">expand_more</span>
  21.         </div>
  22.     </div> #}
  23. {% endblock %}
  24. {% block javascripts %}
  25.     {#PIXELES INFORMATION#}
  26.     {% if pixel_info.partner_datalayer is defined and app.session.has('whitemark') != 1 %}
  27.         {% set pixel_info_search = pixel_info.partner_datalayer %}
  28.     {% endif %}
  29.     {#{% if pixel_info.dataxpand is defined %}
  30.         {% set pixel_info_dataxpand = pixel_info.dataxpand %}
  31.     {% endif %}#}
  32.     {% if pixel_info.facebook is defined %}
  33.         {% set pixel_info_facebook = pixel_info.facebook %}
  34.     {% endif %}
  35.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/pixels/pixels.html.twig') %}
  36. {% endblock %}
  37. {% block promo_content %}
  38.     {% if homePromos is defined and homePromos != null and home_slider == '1'%}
  39.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoBanner.html.twig')  with {'homePromos': homePromos, 'titlePromo':titlePromo, 'subtitlePromo':subtitlePromo, 'promoType': promoType} %}
  40.     {% endif %}
  41.     {# {% if homePromos is defined and homePromos != null and home_slider == '1'%}
  42.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoBanner.html.twig')  with {'homePromos': homePromos, 'titlePromo':titlePromo, 'subtitlePromo':subtitlePromo, 'promoType': promoType} %}
  43.     {% endif %} #}
  44.     {% if homePromosMain is defined and homePromosMain != null %}
  45.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoHtmlSlider.html.twig') with {'homePromos': homePromosMain, 'titlePromo':titlePromoMain, 'subtitlePromo':subtitlePromoMain, 'promoType':promoTypeMain, 'background':'#eee'} %}
  46.     {% endif %}
  47.     {% if homePromosRecommendations is defined and homePromosRecommendations != null %}
  48.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/recommended-home.html.twig') with {'homePromos': homePromosRecommendations, 'titlePromo':titlePromoRecommendations, 'subtitlePromo': subtitlePromoRecommendations, 'promoType':promoTypeRecommendations} %}
  49.     {% endif %}
  50.     {% if homePromos is defined %}
  51.         {% if app.session.has('operatorId') != 1  %}
  52.             <div class="wrapper">
  53.                 {{ parent() }}
  54.                 {# {% if home_slider=='1'%}
  55.                      {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoBanner.html.twig') %}
  56.                  {% else %}
  57.                       {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromo.html.twig') %}
  58.                  {% endif %}#}
  59.                 {% if homePromos is defined and home_slider!='1'%}
  60.                     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromo.html.twig') %}
  61.                 {% endif %}
  62.             </div>
  63.         {% endif %}
  64.         {% 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') ) %}
  65.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/mainSearch_editModal.html.twig') %}
  66.         {% endif %}
  67.     {% endif %}
  68.     {# {% if app.session.has('operatorId') != 1 and app.session.has('whitemark') != 1%}
  69.         <div class="wrapper">
  70.             {{ parent() }}
  71.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_promo.html.twig') %}
  72.         </div>
  73.     {% endif %} #}
  74. {% endblock %}
  75. {% block javascripts_bottom %}
  76.     <script>
  77.         {% if cookieLastSearch is defined %}
  78.             var cookieLastSearch = {{cookieLastSearch|json_encode|raw}};
  79.         {% else %}
  80.                     var cookieLastSearch = null;
  81.         {% endif %}
  82.             var dateEndCencosud = '2018-06-30';
  83.             var originIATA = ['BOG', 'CLO', 'SMR', 'BGA', 'BAQ', 'CTG', 'CUC', 'LET', 'MDE', 'MTR', 'PEI', 'ADZ', 'VUP', 'EYP'];
  84.             var destinationIATA = ['ANF', 'CJC', 'COR', 'PMC', 'SCL', 'AQP', 'CUZ', 'JUL', 'LIM', 'BUE', 'FTE', 'IGR', 'ANF', 'RIO', 'SAO', 'IGU', 'CWB', 'POA', 'SYD', 'MEL', 'BNE', 'AKL', 'LPB', 'ASU', 'MVD', 'VVI', 'USH', 'FOR', 'REC', 'BSB', 'SSA', 'IGR', 'IQQ', 'PUQ', 'MAO', 'RGL', 'PPT', 'FLN', 'UIO', 'GYE', 'LSC', 'TUC', 'CCP', 'PCL', 'ZCO', 'ARI', 'AUA', 'CUN', 'MIA'].concat(originIATA);
  85.             var agencyFolder = '{{agency_folder.twigFlux()}}';
  86.     </script>
  87.     {% if parameters['aviatur_xtreme_search_enabled'] is defined and parameters['aviatur_xtreme_search_enabled'] == 1 %}
  88.         <script>
  89.             var xtremeSearchUrl = '{{ parameters['aviatur_xtreme_search_url'] }}';
  90.         </script>
  91.     {% endif %}
  92.     {% if app.session.has('operatorId') == 1 and app.session.has('frontCencosud') == 1 %}
  93.         <script>
  94.             var applyCencosudFront = 1;
  95.         </script>
  96.     {% endif %}
  97.     {{ parent() }}
  98.     {#{% if app.session.get('domain') == 'aviatur.com' %}
  99.         <script type="text/javascript" src="//static.clicktripz.com/custom/aviatur/cti_aviatur.js" async defer></script>
  100.     {% endif %}#}
  101. {% endblock javascripts_bottom %}