var/cache/dev_h1f2002fa6d81d589ce0a577e6f1db41b/twig/18/1834c774d3e72c5021cdf23d6fa8c53a3ae6d85d23d0e0e9439e51ae898c6036.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @NewsletterSendinblue/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_1ea446a2dc25235825f2670fe5a551a178d202605ed2db90179dfdb7e33462e1 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'layout_head_javascript_tracking' => [$this'block_layout_head_javascript_tracking'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/layout/meta.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NewsletterSendinblue/storefront/layout/meta.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NewsletterSendinblue/storefront/layout/meta.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/layout/meta.html.twig""@NewsletterSendinblue/storefront/layout/meta.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_layout_head_javascript_tracking($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_javascript_tracking"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_javascript_tracking"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("layout_head_javascript_tracking"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 6
  61.         if ((=== twig_compare(($context["sendinblueIsPageTrackingEnabled"] ?? null), true))) {
  62.             // line 7
  63.             echo "        <script type=\"text/javascript\">(function() {window.sib = {equeue: [], client_key: \"";
  64.             echo sw_escape_filter($this->env, ($context["sendinblueMAKey"] ?? null), "html"nulltrue);
  65.             echo "\"};";
  66.             if ( !twig_test_empty(($context["sendinblueUserEmail"] ?? null))) {
  67.                 echo "window.sib.email_id = '";
  68.                 echo sw_escape_filter($this->env, ($context["sendinblueUserEmail"] ?? null), "html"nulltrue);
  69.                 echo "';";
  70.             }
  71.             echo "window.sendinblue = {};for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {(function(k) {window.sendinblue[k] = function() {var arg = Array.prototype.slice.call(arguments);(window.sib[k] || function() {var t = {};t[k] = arg;window.sib.equeue.push(t);})(arg[0], arg[1], arg[2]);};})(j[i]);}var n = document.createElement(\"script\"), i = document.getElementsByTagName(\"script\")[0];n.type = \"text/javascript\", n.id = \"sendinblue-js\", n.async = !0, n.src = \"https://sibautomation.com/sa.js?key=\" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();})();</script>
  72.     ";
  73.         }
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.     }
  79.     public function getTemplateName()
  80.     {
  81.         return "@NewsletterSendinblue/storefront/layout/meta.html.twig";
  82.     }
  83.     public function isTraitable()
  84.     {
  85.         return false;
  86.     }
  87.     public function getDebugInfo()
  88.     {
  89.         return array (  76 => 7,  74 => 6,  68 => 4,  58 => 3,  35 => 2,);
  90.     }
  91.     public function getSourceContext()
  92.     {
  93.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  94. {% block layout_head_javascript_tracking %}
  95.     {{ parent() }}
  96.     {% if sendinblueIsPageTrackingEnabled == true %}
  97.         <script type=\"text/javascript\">(function() {window.sib = {equeue: [], client_key: \"{{ sendinblueMAKey }}\"};{% if sendinblueUserEmail is not empty %}window.sib.email_id = '{{ sendinblueUserEmail }}';{% endif %}window.sendinblue = {};for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {(function(k) {window.sendinblue[k] = function() {var arg = Array.prototype.slice.call(arguments);(window.sib[k] || function() {var t = {};t[k] = arg;window.sib.equeue.push(t);})(arg[0], arg[1], arg[2]);};})(j[i]);}var n = document.createElement(\"script\"), i = document.getElementsByTagName(\"script\")[0];n.type = \"text/javascript\", n.id = \"sendinblue-js\", n.async = !0, n.src = \"https://sibautomation.com/sa.js?key=\" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();})();</script>
  98.     {% endif %}
  99. {% endblock %}
  100. ""@NewsletterSendinblue/storefront/layout/meta.html.twig""/var/customers/webs/iab/htdocs/custom/plugins/NewsletterSendinblue/src/Resources/views/storefront/layout/meta.html.twig");
  101.     }
  102. }