src/Aviatur/TwigBundle/Resources/views/aviatur/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="search__light wrapper">
  9.         <div class="search__light--box-flight">
  10.             {% if app.session.has('notEnableFlightSearch') == 0 %}
  11.                 {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine.html.twig') %}
  12.             {% endif %}
  13.         </div>
  14.     </div>
  15.     <div class="wrapper flex-row">
  16.         <div class="col-grid text-center">
  17.             <h5 href="#" class="type-white sp-stack--small" style="text-shadow: 1px 1px 2px black;">Descubra promociones</h5>
  18.             <span class="material-symbols-rounded type-white sp-stack--big">expand_more</span>
  19.         </div>
  20.     </div>
  21. {% endblock %}
  22. {% block javascripts %}
  23.     {#PIXELES INFORMATION#}
  24.     {% if pixel_info.partner_datalayer is defined and app.session.has('whitemark') != 1 %}
  25.         {% set pixel_info_search = pixel_info.partner_datalayer %}
  26.     {% endif %}
  27.     {#{% if pixel_info.dataxpand is defined %}
  28.         {% set pixel_info_dataxpand = pixel_info.dataxpand %}
  29.     {% endif %}#}
  30.     {% if pixel_info.facebook is defined %}
  31.         {% set pixel_info_facebook = pixel_info.facebook %}
  32.     {% endif %}
  33.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/pixels/pixels.html.twig') %}
  34. {% endblock %}
  35. {% block promo_content %}
  36.     {% if homePromos is defined and homePromos != null and home_slider == '1'%}
  37.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoCards.html.twig')  with {'homePromos': homePromos, 'titlePromo':titlePromo, 'subtitlePromo':subtitlePromo, 'promoType': promoType} %}
  38.     {% endif %}
  39.     {% if homePromosMain is defined and homePromosMain != null %}
  40.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoHtmlSlider.html.twig') with {'homePromos': homePromosMain, 'titlePromo':titlePromoMain, 'subtitlePromo':subtitlePromoMain, 'promoType':promoTypeMain, 'background':'#eee'} %}
  41.     {% endif %}
  42.     {% if homePromosRecommendations is defined and homePromosRecommendations != null %}
  43.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/recommended-home.html.twig') with {'homePromos': homePromosRecommendations, 'titlePromo':titlePromoRecommendations, 'subtitlePromo': subtitlePromoRecommendations, 'promoType':promoTypeRecommendations} %}
  44.     {% endif %}
  45.     {% if homePromos is defined %}
  46.         {% if app.session.has('operatorId') != 1  %}
  47.             <div class="wrapper">
  48.                 {{ parent() }}
  49.                 {# {% if home_slider=='1'%}
  50.                      {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoBanner.html.twig') %}
  51.                  {% else %}
  52.                       {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromo.html.twig') %}
  53.                  {% endif %}#}
  54.                 {% if homePromos is defined and home_slider!='1'%}
  55.                     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromo.html.twig') %}
  56.                 {% endif %}
  57.             </div>
  58.         {% endif %}
  59.         {% 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') ) %}
  60.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/mainSearch_editModal.html.twig') %}
  61.         {% endif %}
  62.     {% endif %}
  63.     {# {% if app.session.has('operatorId') != 1 and app.session.has('whitemark') != 1%}
  64.         <div class="wrapper">
  65.             {{ parent() }}
  66.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_promo.html.twig') %}
  67.         </div>
  68.     {% endif %} #}
  69. {% endblock %}
  70. {% block javascripts_bottom %}
  71.     <script>
  72.         {% if cookieLastSearch is defined %}
  73.             var cookieLastSearch = {{cookieLastSearch|json_encode|raw}};
  74.         {% else %}
  75.                     var cookieLastSearch = null;
  76.         {% endif %}
  77.             var dateEndCencosud = '2018-06-30';
  78.             var originIATA = ['BOG', 'CLO', 'SMR', 'BGA', 'BAQ', 'CTG', 'CUC', 'LET', 'MDE', 'MTR', 'PEI', 'ADZ', 'VUP', 'EYP'];
  79.             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);
  80.             var agencyFolder = '{{agency_folder.twigFlux()}}';
  81.     </script>
  82.     {% if parameters['aviatur_xtreme_search_enabled'] is defined and parameters['aviatur_xtreme_search_enabled'] == 1 %}
  83.         <script>
  84.             var xtremeSearchUrl = '{{ parameters['aviatur_xtreme_search_url'] }}';
  85.         </script>
  86.     {% endif %}
  87.     {% if app.session.has('operatorId') == 1 and app.session.has('frontCencosud') == 1 %}
  88.         <script>
  89.             var applyCencosudFront = 1;
  90.         </script>
  91.     {% endif %}
  92.     {{ parent() }}
  93.     {#{% if app.session.get('domain') == 'aviatur.com' %}
  94.         <script type="text/javascript" src="//static.clicktripz.com/custom/aviatur/cti_aviatur.js" async defer></script>
  95.     {% endif %}#}
  96. {% endblock javascripts_bottom %}