src/Aviatur/TwigBundle/Resources/views/aviatur/Flux/App/pixels/pixels.html.twig line 1

Open in your IDE?
  1. {% if pixel_info_facebook is defined %}
  2.     <!-- Facebook Pixel Code ViewContent -->
  3.     <script type="text/javascript">
  4.         !function (f, b, e, v, n, t, s) {
  5.             if (f.fbq)
  6.                 return;
  7.             n = f.fbq = function () {
  8.                 n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
  9.             };
  10.             if (!f._fbq)
  11.                 f._fbq = n;
  12.             n.push = n;
  13.             n.loaded = !0;
  14.             n.version = '2.0';
  15.             n.queue = [];
  16.             t = b.createElement(e);
  17.             t.async = !0;
  18.             t.src = v;
  19.             s = b.getElementsByTagName(e)[0];
  20.             s.parentNode.insertBefore(t, s)
  21.         }(window, document, 'script', '//connect.facebook.net/en_US/fbevents.js');
  22.         fbq('init', '600474970099978');
  23.         fbq('track', 'PageView');
  24.     </script>
  25.     <noscript><img height="1" width="1" style="display:none"
  26.                    src="https://www.facebook.com/tr?id=600474970099978&ev=PageView&noscript=1"
  27.                    /></noscript>
  28.     <!--End Facebook Pixel Code -->
  29. {% endif %}
  30. {#pixel DataXpand#}
  31. {#{% if pixel_info_dataxpand is defined %}
  32.     <script src="https://tags.crwdcntrl.net/c/11052/cc_af.js"></script>
  33. {% endif %}#}
  34. {% if pixel_info_avail is defined and app.session.has('operatorId') != 1 %}
  35.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/pixels/pixels_availability.html.twig') %}
  36. {% elseif pixel_info_detail is defined and app.session.has('operatorId') != 1 %}
  37.     {% set pixel_info = pixel_info_detail %}
  38.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/pixels/pixels_detail.html.twig') %}
  39. {% elseif pixel_info_resume is defined and app.session.has('operatorId') != 1 %}
  40.     {% set pixel_info = pixel_info_resume %}
  41.     {# {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/pixels/pixels_resume.html.twig') %} #}
  42. {% endif %}