src/Aviatur/TwigBundle/Resources/views/default/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.     <div class="page__body--search {% if app.session.has('operatorId') == 1 %}page__body--front{% endif %}" data-searchindex="1">
  36.         {% if promoSearchAgency is defined and json_decode(promoSearchAgency)|length > 0 %}
  37.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Promos/promo_search_agency.html.twig') %}
  38.         {% endif %}
  39.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_datepickerContainer.html.twig') %}
  40.         {% block search_content %}
  41.         {% endblock %}
  42.     </div>
  43. {% endblock searcher_header %}
  44. {% block body %}
  45.     {% block body_style %}{% endblock %}
  46.     {% block promo_content %}
  47.     {% endblock %}
  48. {% endblock %}
  49. {% block javascripts_bottom %}
  50.     {{ parent() }}
  51.     <script type="text/javascript">
  52.         // Header video
  53.         jQuery(document).ready(function () {
  54.             var $video = jQuery('.js-headerVideo'),
  55.                 videoElement = $video[0];
  56.             if (videoElement && typeof videoElement.play === 'function') {
  57.                 $video.on('canplaythrough', videoElement.play);
  58.                 if (videoElement.readyState === 4) { // in case video already cached
  59.                     videoElement.play();
  60.                 }
  61.                 jQuery(window).on('focus', function (e) {
  62.                     if (videoElement.paused && videoElement.readyState === 4) {
  63.                         videoElement.play();
  64.                     }
  65.                 });
  66.                 jQuery(window).on('blur', function (e) {
  67.                     if (!videoElement.paused) {
  68.                         videoElement.pause();
  69.                     }
  70.                 });
  71.                 setTimeout(function () {
  72.                     if (!videoElement.paused) {
  73.                         videoElement.pause();
  74.                     }
  75.                 }, 180000);
  76.                 $video.on('error', function () {
  77.                     videoElement.load(); // prevent green screen of death
  78.                 });
  79.             }
  80.         });
  81.     </script>
  82.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_js.html.twig') %}
  83. {% endblock %}