var/cache/dev/twig/7b/7bd8d3af52440fbe12e40c4178b9eb91f2b7b9b3c08ec5d36f2c6933f924769c.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/_common/_javascript_head.html.twig */
  14. class __TwigTemplate_419766b87a714757abfe02a5bbfcea08e7c082159fcb47d7a57020a0ff61fdcc extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->parent = false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros = $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/_common/_javascript_head.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/_common/_javascript_head.html.twig"));
  33.         // line 1
  34.         echo "<!-- Meta Pixel Code -->
  35. <script>
  36. !function(f,b,e,v,n,t,s)
  37. {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  38. n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  39. if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  40. n.queue=[];t=b.createElement(e);t.async=!0;
  41. t.src=v;s=b.getElementsByTagName(e)[0];
  42. s.parentNode.insertBefore(t,s)}(window, document,'script',
  43. 'https://connect.facebook.net/en_US/fbevents.js');
  44. fbq('init', '2500748050130487');
  45. fbq('track', 'PageView');
  46. </script>
  47. <noscript><img height=\"1\" width=\"1\" style=\"display:none\"
  48. src=\"https://www.facebook.com/tr?id=2500748050130487&ev=PageView&noscript=1\"
  49. /></noscript>
  50. <!-- End Meta Pixel Code -->
  51. <!-- Google Analytics Code -->
  52. <script async src=\"https://www.googletagmanager.com/gtag/js?id=G-S0E5GCFND5\"></script>
  53. <script>";
  54.         // line 22
  55.         if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "session", [], "any", false, false, false, 22), "has", [0 => "user_favorites"], "method", false, false, false, 22)) {
  56.             // line 23
  57.             echo "var user_favorites = ";
  58.             echo twig_escape_filter($this->env, json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 23, $this->source); })()), "session", [], "any", false, false, false, 23), "get", [0 => "user_favorites"], "method", false, false, false, 23)), "html", null, true);
  59.             echo ";";
  60.         } else {
  61.             // line 25
  62.             echo "var user_favorites = [];";
  63.         }
  64.         // line 27
  65.         echo "</script>
  66. <!-- End Google Analytics Code -->";
  67.         
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  69.         
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  71.     }
  72.     public function getTemplateName()
  73.     {
  74.         return "front/_common/_javascript_head.html.twig";
  75.     }
  76.     public function isTraitable()
  77.     {
  78.         return false;
  79.     }
  80.     public function getDebugInfo()
  81.     {
  82.         return array (  75 => 27,  72 => 25,  67 => 23,  65 => 22,  43 => 1,);
  83.     }
  84.     public function getSourceContext()
  85.     {
  86.         return new Source("<!-- Meta Pixel Code -->
  87. <script>
  88. !function(f,b,e,v,n,t,s)
  89. {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  90. n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  91. if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  92. n.queue=[];t=b.createElement(e);t.async=!0;
  93. t.src=v;s=b.getElementsByTagName(e)[0];
  94. s.parentNode.insertBefore(t,s)}(window, document,'script',
  95. 'https://connect.facebook.net/en_US/fbevents.js');
  96. fbq('init', '2500748050130487');
  97. fbq('track', 'PageView');
  98. </script>
  99. <noscript><img height=\"1\" width=\"1\" style=\"display:none\"
  100. src=\"https://www.facebook.com/tr?id=2500748050130487&ev=PageView&noscript=1\"
  101. /></noscript>
  102. <!-- End Meta Pixel Code -->
  103. <!-- Google Analytics Code -->
  104. <script async src=\"https://www.googletagmanager.com/gtag/js?id=G-S0E5GCFND5\"></script>
  105. <script>
  106. {%- if  app.session.has('user_favorites') -%}
  107.     var user_favorites = {{ app.session.get('user_favorites')|json_encode() }};
  108. {%- else -%}
  109.     var user_favorites = [];
  110. {%- endif -%}  
  111. </script>
  112. <!-- End Google Analytics Code -->", "front/_common/_javascript_head.html.twig", "/home/pofr4524/sites/dev.sublimons.com/templates/front/_common/_javascript_head.html.twig");
  113.     }
  114. }