src/Aviatur/TwigBundle/Resources/views/aviatur/Flux/Search/General/search_index.html.twig line 1

Open in your IDE?
  1. {% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/front.html.twig') %}
  2. {#{% block body_scripts %}
  3.     {{ parent() }}
  4.     <script type="text/javascript">
  5.         var axel = Math.random() + "";
  6.         var a = axel * 10000000000000;
  7.         document.write('<iframe src="http://4798167.fls.doubleclick.net/activityi;src=4798167;type=invmedia;cat=nzat9fmv;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
  8.     </script>
  9.     <noscript>
  10.     <iframe src="http://4798167.fls.doubleclick.net/activityi;src=4798167;type=invmedia;cat=nzat9fmv;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
  11.     </noscript>
  12. {% endblock %}#}
  13. {% block head_meta_label %}
  14.     {% if app.session.has('operatorId') != 1 %}
  15.         {% if '?itm' in app.request.uri %}
  16.             {% set urlCanonical = app.request.uri|split('?itm') %}
  17.             <link rel="canonical" href="{{urlCanonical[0]}}" />
  18.         {% endif %}
  19.         {% if '?utm' in app.request.uri %}
  20.             {% set urlCanonical = app.request.uri|split('?utm') %}
  21.             <link rel="canonical" href="{{urlCanonical[0]}}" />
  22.         {% endif %}
  23.     {% endif %}
  24. {% endblock head_meta_label %}
  25. {% block headerVideo %}
  26.     {% if not is_mobile() %}
  27.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_headerVideo.html.twig') %}
  28.     {% endif %}
  29. {% endblock %}
  30. {% block searcher_header %}
  31.     {% set displayState = '' %}
  32.     {% if 'aviatur_general_homepage' in app.request.attributes.get('_route') and not app.request.query.has('anchor') %}
  33.         {% set displayState = 'hidden-palm' %}
  34.     {% endif %}
  35.     {# mt-[12%] m:h-[74%] s:h-[74%] xs:h-[74%]  #}
  36.     <div class="page__body--search{% if app.session.has('operatorId') == 1 %}page__body--front{% endif %}" data-searchindex="1">
  37.         {% if promoSearchAgency is defined and json_decode(promoSearchAgency)|length > 0 %}
  38.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Promos/promo_search_agency.html.twig') %}
  39.         {% endif %}
  40.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_datepickerContainer.html.twig') %}
  41.         {% block search_content %}
  42.         {% endblock %}
  43.     </div>
  44. {% endblock searcher_header %}
  45. {% block body %}
  46.     {% block body_style %}{% endblock %}
  47.     {% block promo_content %}
  48.     {% endblock %}
  49. {% endblock %}
  50. {% block javascripts_bottom %}
  51.     {{ parent() }}
  52.     <script type="text/javascript">
  53.         // Header video
  54.         jQuery(document).ready(function () {
  55.             var $video = jQuery('.js-headerVideo'),
  56.                 videoElement = $video[0];
  57.             if (videoElement && typeof videoElement.play === 'function') {
  58.                 $video.on('canplaythrough', videoElement.play);
  59.                 if (videoElement.readyState === 4) { // in case video already cached
  60.                     videoElement.play();
  61.                 }
  62.                 jQuery(window).on('focus', function (e) {
  63.                     if (videoElement.paused && videoElement.readyState === 4) {
  64.                         videoElement.play();
  65.                     }
  66.                 });
  67.                 jQuery(window).on('blur', function (e) {
  68.                     if (!videoElement.paused) {
  69.                         videoElement.pause();
  70.                     }
  71.                 });
  72.                 setTimeout(function () {
  73.                     if (!videoElement.paused) {
  74.                         videoElement.pause();
  75.                     }
  76.                 }, 180000);
  77.                 $video.on('error', function () {
  78.                     videoElement.load(); // prevent green screen of death
  79.                 });
  80.             }
  81.         });
  82.     </script>
  83.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_js.html.twig') %}
  84. {% endblock %}