var/cache/dev_h35c9e4fa64367e5a564f83803cfdec08/twig/21/21a1b29bf6af33a2e2fd2657633533e29bad2d8171f6806447fbc769d28af888.php line 51

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. /* @CbaxModulAdcell/storefront/base.html.twig */
  16. class __TwigTemplate_2bb41f7844f634d1872acc4e3f9fc4ea 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.             'base_body_script' => [$this'block_base_body_script'],
  26.             'cbax_base_body_script_adcell' => [$this'block_cbax_base_body_script_adcell'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@DreiscSeoPro/storefront/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CbaxModulAdcell/storefront/base.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CbaxModulAdcell/storefront/base.html.twig"));
  41.         $this->parent $this->loadTemplate("@DreiscSeoPro/storefront/base.html.twig""@CbaxModulAdcell/storefront/base.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_base_body_script($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  56.         // line 4
  57.         echo "
  58.     ";
  59.         // line 5
  60.         $this->displayParentBlock("base_body_script"$context$blocks);
  61.         echo "
  62.     ";
  63.         // line 7
  64.         if (((($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"CbaxModulAdcell.config") && $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"CbaxModulAdcell.config.active")) && $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"CbaxModulAdcell.config.pubId")) && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 10
  65. ($context["app"] ?? null), "request", [], "any"falsefalsefalse10), "cookies", [], "any"falsefalsefalse10), "get", [=> "adcell-enabled"], "method"falsefalsefalse10) == 1))) {
  66.             // line 11
  67.             echo "
  68.         ";
  69.             // line 12
  70.             $this->displayBlock('cbax_base_body_script_adcell'$context$blocks);
  71.             // line 99
  72.             echo "    ";
  73.         }
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.     }
  79.     // line 12
  80.     public function block_cbax_base_body_script_adcell($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cbax_base_body_script_adcell"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cbax_base_body_script_adcell"));
  87.         // line 13
  88.         echo "
  89.             <script async type=\"text/javascript\" src=\"https://t.adcell.com/js/trad.js\"></script>
  90.             ";
  91.         // line 16
  92.         $context["pubId"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"CbaxModulAdcell.config.pubId");
  93.         // line 17
  94.         echo "            ";
  95.         $context["catId"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse17), "navigation", [], "any"falsefalsefalse17), "active", [], "any"falsefalsefalse17), "id", [], "any"falsefalsefalse17);
  96.         // line 18
  97.         echo "            ";
  98.         $context["catName"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse18), "navigation", [], "any"falsefalsefalse18), "active", [], "any"falsefalsefalse18), "translated", [], "any"falsefalsefalse18), "name", [], "any"falsefalsefalse18);
  99.         // line 19
  100.         echo "            ";
  101.         $context["prodIds"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cbaxProductIdsForAdcell", [], "any"falsefalsefalse19)) ? (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cbaxProductIdsForAdcell", [], "any"falsefalsefalse19)) : (""));
  102.         // line 20
  103.         echo "            ";
  104.         $context["prodId"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse20)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse20), "productNumber", [], "any"falsefalsefalse20)) : (""));
  105.         // line 21
  106.         echo "            ";
  107.         $context["prodName"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse21)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse21), "translated", [], "any"falsefalsefalse21), "name", [], "any"falsefalsefalse21)) : (""));
  108.         // line 22
  109.         echo "            ";
  110.         $context["orderNumber"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "order", [], "any"falsefalsefalse22)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "order", [], "any"falsefalsefalse22), "orderNumber", [], "any"falsefalsefalse22)) : (""));
  111.         // line 23
  112.         echo "
  113.             ";
  114.         // line 24
  115.         $context["searchTerm"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "searchTerm", [], "any"falsefalsefalse24)) ? (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "searchTerm", [], "any"falsefalsefalse24)) : (""));
  116.         // line 25
  117.         echo "            ";
  118.         $context["searchListingElements"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "listing", [], "any"falsefalsefalse25)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "listing", [], "any"falsefalsefalse25), "elements", [], "any"falsefalsefalse25)) : ([]));
  119.         // line 26
  120.         echo "            ";
  121.         $context['_parent'] = $context;
  122.         $context['_seq'] = twig_ensure_traversable(($context["searchListingElements"] ?? null));
  123.         $context['loop'] = [
  124.           'parent' => $context['_parent'],
  125.           'index0' => 0,
  126.           'index'  => 1,
  127.           'first'  => true,
  128.         ];
  129.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  130.             $length count($context['_seq']);
  131.             $context['loop']['revindex0'] = $length 1;
  132.             $context['loop']['revindex'] = $length;
  133.             $context['loop']['length'] = $length;
  134.             $context['loop']['last'] = === $length;
  135.         }
  136.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  137.             // line 27
  138.             echo "                ";
  139.             if (sw_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse27)) {
  140.                 // line 28
  141.                 echo "                    ";
  142.                 $context["prodIds"] = (($context["prodIds"] ?? null) . sw_get_attribute($this->env$this->source$context["item"], "productNumber", [], "any"falsefalsefalse28));
  143.                 // line 29
  144.                 echo "                ";
  145.             } else {
  146.                 // line 30
  147.                 echo "                    ";
  148.                 $context["prodIds"] = ((($context["prodIds"] ?? null) . sw_get_attribute($this->env$this->source$context["item"], "productNumber", [], "any"falsefalsefalse30)) . ";");
  149.                 // line 31
  150.                 echo "                ";
  151.             }
  152.             // line 32
  153.             echo "            ";
  154.             ++$context['loop']['index0'];
  155.             ++$context['loop']['index'];
  156.             $context['loop']['first'] = false;
  157.             if (isset($context['loop']['length'])) {
  158.                 --$context['loop']['revindex0'];
  159.                 --$context['loop']['revindex'];
  160.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  161.             }
  162.         }
  163.         $_parent $context['_parent'];
  164.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  165.         $context array_intersect_key($context$_parent) + $_parent;
  166.         // line 33
  167.         echo "
  168.             ";
  169.         // line 34
  170.         $context["lineItems"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse34)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse34), "lineItems", [], "any"falsefalsefalse34), "elements", [], "any"falsefalsefalse34)) : (((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "order", [], "any"falsefalsefalse34)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "order", [], "any"falsefalsefalse34), "lineItems", [], "any"falsefalsefalse34), "elements", [], "any"falsefalsefalse34)) : ([]))));
  171.         // line 35
  172.         echo "            ";
  173.         $context["productQuantities"] = "";
  174.         // line 36
  175.         echo "            ";
  176.         $context["totalQuantity"] = 0;
  177.         // line 37
  178.         echo "            ";
  179.         $context["netPositionPrice"] = 0;
  180.         // line 38
  181.         echo "            ";
  182.         $context['_parent'] = $context;
  183.         $context['_seq'] = twig_ensure_traversable(($context["lineItems"] ?? null));
  184.         $context['loop'] = [
  185.           'parent' => $context['_parent'],
  186.           'index0' => 0,
  187.           'index'  => 1,
  188.           'first'  => true,
  189.         ];
  190.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  191.             $length count($context['_seq']);
  192.             $context['loop']['revindex0'] = $length 1;
  193.             $context['loop']['revindex'] = $length;
  194.             $context['loop']['length'] = $length;
  195.             $context['loop']['last'] = === $length;
  196.         }
  197.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  198.             // line 39
  199.             echo "                ";
  200.             $context["totalQuantity"] = (($context["totalQuantity"] ?? null) + sw_get_attribute($this->env$this->source$context["item"], "quantity", [], "any"falsefalsefalse39));
  201.             // line 40
  202.             echo "                ";
  203.             $context["calculatedTaxes"] = 0;
  204.             // line 41
  205.             echo "                ";
  206.             $context['_parent'] = $context;
  207.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["item"], "price", [], "any"falsefalsefalse41), "calculatedTaxes", [], "any"falsefalsefalse41), "elements", [], "any"falsefalsefalse41));
  208.             foreach ($context['_seq'] as $context["_key"] => $context["taxElement"]) {
  209.                 // line 42
  210.                 echo "                    ";
  211.                 $context["calculatedTaxes"] = (($context["calculatedTaxes"] ?? null) + sw_get_attribute($this->env$this->source$context["taxElement"], "tax", [], "any"falsefalsefalse42));
  212.                 // line 43
  213.                 echo "                ";
  214.             }
  215.             $_parent $context['_parent'];
  216.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxElement'], $context['_parent'], $context['loop']);
  217.             $context array_intersect_key($context$_parent) + $_parent;
  218.             // line 44
  219.             echo "                ";
  220.             $context["netPositionPrice"] = ((($context["netPositionPrice"] ?? null) + sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["item"], "price", [], "any"falsefalsefalse44), "totalPrice", [], "any"falsefalsefalse44)) - ($context["calculatedTaxes"] ?? null));
  221.             // line 45
  222.             echo "                ";
  223.             if (sw_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse45)) {
  224.                 // line 46
  225.                 echo "                    ";
  226.                 $context["prodIds"] = (($context["prodIds"] ?? null) . sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["item"], "payload", [], "any"falsefalsefalse46), "productNumber", [], "any"falsefalsefalse46));
  227.                 // line 47
  228.                 echo "                    ";
  229.                 $context["productQuantities"] = (($context["productQuantities"] ?? null) . sw_get_attribute($this->env$this->source$context["item"], "quantity", [], "any"falsefalsefalse47));
  230.                 // line 48
  231.                 echo "                ";
  232.             } else {
  233.                 // line 49
  234.                 echo "                    ";
  235.                 $context["prodIds"] = ((($context["prodIds"] ?? null) . sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["item"], "payload", [], "any"falsefalsefalse49), "productNumber", [], "any"falsefalsefalse49)) . ";");
  236.                 // line 50
  237.                 echo "                    ";
  238.                 $context["productQuantities"] = ((($context["productQuantities"] ?? null) . sw_get_attribute($this->env$this->source$context["item"], "quantity", [], "any"falsefalsefalse50)) . ";");
  239.                 // line 51
  240.                 echo "                ";
  241.             }
  242.             // line 52
  243.             echo "            ";
  244.             ++$context['loop']['index0'];
  245.             ++$context['loop']['index'];
  246.             $context['loop']['first'] = false;
  247.             if (isset($context['loop']['length'])) {
  248.                 --$context['loop']['revindex0'];
  249.                 --$context['loop']['revindex'];
  250.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  251.             }
  252.         }
  253.         $_parent $context['_parent'];
  254.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  255.         $context array_intersect_key($context$_parent) + $_parent;
  256.         // line 53
  257.         echo "
  258.             <script>
  259.                 window.onload = function(){ Adcell.Tracking.track(); };
  260.             </script>
  261.             ";
  262.         // line 58
  263.         if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"CbaxModulAdcell.config.retargeting")) {
  264.             // line 59
  265.             echo "
  266.                 ";
  267.             // line 60
  268.             if ((($context["activeRoute"] ?? null) == "frontend.home.page")) {
  269.                 // line 61
  270.                 echo "                    <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=track&pid=";
  271.                 echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  272.                 echo "&type=startpage\" async></script>
  273.                 ";
  274.             }
  275.             // line 63
  276.             echo "
  277.                 ";
  278.             // line 64
  279.             if ((($context["activeRoute"] ?? null) == "frontend.navigation.page")) {
  280.                 // line 65
  281.                 echo "                    <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=category&pid=";
  282.                 echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  283.                 echo "&categoryName=";
  284.                 echo sw_escape_filter($this->env, ($context["catName"] ?? null), "html"nulltrue);
  285.                 echo "&categoryId=";
  286.                 echo sw_escape_filter($this->env, ($context["catId"] ?? null), "html"nulltrue);
  287.                 echo "&productIds=";
  288.                 echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html"nulltrue);
  289.                 echo "&productSeparator=;\" async></script>
  290.                 ";
  291.             }
  292.             // line 67
  293.             echo "
  294.                 ";
  295.             // line 68
  296.             if ((($context["activeRoute"] ?? null) == "frontend.detail.page")) {
  297.                 // line 69
  298.                 echo "                    <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=product&pid=";
  299.                 echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  300.                 echo "&productId=";
  301.                 echo sw_escape_filter($this->env, ($context["prodId"] ?? null), "html"nulltrue);
  302.                 echo "&productName=";
  303.                 echo sw_escape_filter($this->env, ($context["prodName"] ?? null), "html"nulltrue);
  304.                 echo "&categoryId=";
  305.                 echo sw_escape_filter($this->env, ($context["catId"] ?? null), "html"nulltrue);
  306.                 echo "&productIds=";
  307.                 echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html"nulltrue);
  308.                 echo "&productSeparator=;\" async></script>
  309.                 ";
  310.             }
  311.             // line 71
  312.             echo "
  313.                 ";
  314.             // line 72
  315.             if ((($context["activeRoute"] ?? null) == "frontend.search.page")) {
  316.                 // line 73
  317.                 echo "                    <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=search&pid=";
  318.                 echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  319.                 echo "&search=";
  320.                 echo sw_escape_filter($this->env, ($context["searchTerm"] ?? null), "html"nulltrue);
  321.                 echo "&productIds=";
  322.                 echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html"nulltrue);
  323.                 echo "&productSeparator=;\" async></script>
  324.                 ";
  325.             }
  326.             // line 75
  327.             echo "
  328.                 ";
  329.             // line 76
  330.             if ((($context["activeRoute"] ?? null) == "frontend.checkout.cart.page")) {
  331.                 // line 77
  332.                 echo "                    <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=basket&pid=";
  333.                 echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  334.                 echo "&productIds=";
  335.                 echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html"nulltrue);
  336.                 echo "&quantities=";
  337.                 echo sw_escape_filter($this->env, ($context["productQuantities"] ?? null), "html"nulltrue);
  338.                 echo "&basketProductCount=";
  339.                 echo sw_escape_filter($this->env, ($context["totalQuantity"] ?? null), "html"nulltrue);
  340.                 echo "&basketTotal=";
  341.                 echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html"nulltrue);
  342.                 echo "&productSeparator=;\" async></script>
  343.                 ";
  344.             }
  345.             // line 79
  346.             echo "
  347.                 ";
  348.             // line 80
  349.             if (((($context["activeRoute"] ?? null) == "frontend.checkout.register.page") || (($context["activeRoute"] ?? null) == "frontend.checkout.confirm.page"))) {
  350.                 // line 81
  351.                 echo "                    <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=basket&pid=";
  352.                 echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  353.                 echo "&productIds=";
  354.                 echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html"nulltrue);
  355.                 echo "&quantities=";
  356.                 echo sw_escape_filter($this->env, ($context["productQuantities"] ?? null), "html"nulltrue);
  357.                 echo "&basketProductCount=";
  358.                 echo sw_escape_filter($this->env, ($context["totalQuantity"] ?? null), "html"nulltrue);
  359.                 echo "&basketTotal=";
  360.                 echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html"nulltrue);
  361.                 echo "&productSeparator=;\" async></script>
  362.                 ";
  363.             }
  364.             // line 83
  365.             echo "
  366.                 ";
  367.             // line 84
  368.             if ((($context["activeRoute"] ?? null) == "frontend.checkout.finish.page")) {
  369.                 // line 85
  370.                 echo "                    <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=checkout&pid=";
  371.                 echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  372.                 echo "&basketId=";
  373.                 echo sw_escape_filter($this->env, ($context["orderNumber"] ?? null), "html"nulltrue);
  374.                 echo "&basketTotal=";
  375.                 echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html"nulltrue);
  376.                 echo "&basketProductCount=";
  377.                 echo sw_escape_filter($this->env, ($context["totalQuantity"] ?? null), "html"nulltrue);
  378.                 echo "&productIds=";
  379.                 echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html"nulltrue);
  380.                 echo "&quantities=";
  381.                 echo sw_escape_filter($this->env, ($context["productQuantities"] ?? null), "html"nulltrue);
  382.                 echo "&productSeparator=;\" async></script>
  383.                 ";
  384.             }
  385.             // line 87
  386.             echo "
  387.             ";
  388.         }
  389.         // line 89
  390.         echo "
  391.             ";
  392.         // line 90
  393.         if (($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"CbaxModulAdcell.config.eventId") && (($context["activeRoute"] ?? null) == "frontend.checkout.finish.page"))) {
  394.             // line 91
  395.             echo "                ";
  396.             $context["eventId"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"CbaxModulAdcell.config.eventId");
  397.             // line 92
  398.             echo "                <script async type=\"text/javascript\" src=\"https://t.adcell.com/t/track.js?eventid=";
  399.             echo sw_escape_filter($this->env, ($context["eventId"] ?? null), "html"nulltrue);
  400.             echo "&pid=";
  401.             echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  402.             echo "&referenz=";
  403.             echo sw_escape_filter($this->env, ($context["orderNumber"] ?? null), "html"nulltrue);
  404.             echo "&betrag=";
  405.             echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html"nulltrue);
  406.             echo "\"></script>
  407.                 <noscript>
  408.                     <img src=\"https://t.adcell.com/t/track?pid=";
  409.             // line 94
  410.             echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html"nulltrue);
  411.             echo "&eventid=";
  412.             echo sw_escape_filter($this->env, ($context["eventId"] ?? null), "html"nulltrue);
  413.             echo "&referenz=";
  414.             echo sw_escape_filter($this->env, ($context["orderNumber"] ?? null), "html"nulltrue);
  415.             echo "&betrag=";
  416.             echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html"nulltrue);
  417.             echo "\" border=\"0\" width=\"1\" height=\"1\">
  418.                 </noscript>
  419.             ";
  420.         }
  421.         // line 97
  422.         echo "
  423.         ";
  424.         
  425.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  426.         
  427.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  428.     }
  429.     public function getTemplateName()
  430.     {
  431.         return "@CbaxModulAdcell/storefront/base.html.twig";
  432.     }
  433.     public function isTraitable()
  434.     {
  435.         return false;
  436.     }
  437.     public function getDebugInfo()
  438.     {
  439.         return array (  442 => 97,  430 => 94,  418 => 92,  415 => 91,  413 => 90,  410 => 89,  406 => 87,  390 => 85,  388 => 84,  385 => 83,  371 => 81,  369 => 80,  366 => 79,  352 => 77,  350 => 76,  347 => 75,  337 => 73,  335 => 72,  332 => 71,  318 => 69,  316 => 68,  313 => 67,  301 => 65,  299 => 64,  296 => 63,  290 => 61,  288 => 60,  285 => 59,  283 => 58,  276 => 53,  262 => 52,  259 => 51,  256 => 50,  253 => 49,  250 => 48,  247 => 47,  244 => 46,  241 => 45,  238 => 44,  232 => 43,  229 => 42,  224 => 41,  221 => 40,  218 => 39,  200 => 38,  197 => 37,  194 => 36,  191 => 35,  189 => 34,  186 => 33,  172 => 32,  169 => 31,  166 => 30,  163 => 29,  160 => 28,  157 => 27,  139 => 26,  136 => 25,  134 => 24,  131 => 23,  128 => 22,  125 => 21,  122 => 20,  119 => 19,  116 => 18,  113 => 17,  111 => 16,  106 => 13,  96 => 12,  85 => 99,  83 => 12,  80 => 11,  78 => 10,  77 => 7,  72 => 5,  69 => 4,  59 => 3,  36 => 2,);
  440.     }
  441.     public function getSourceContext()
  442.     {
  443.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  444. {% block base_body_script %}
  445.     {{ parent() }}
  446.     {% if config('CbaxModulAdcell.config') and
  447.         config('CbaxModulAdcell.config.active') and
  448.         config('CbaxModulAdcell.config.pubId') and
  449.         app.request.cookies.get('adcell-enabled') == 1 %}
  450.         {% block cbax_base_body_script_adcell %}
  451.             <script async type=\"text/javascript\" src=\"https://t.adcell.com/js/trad.js\"></script>
  452.             {% set pubId = config('CbaxModulAdcell.config.pubId') %}
  453.             {% set catId = page.header.navigation.active.id %}
  454.             {% set catName = page.header.navigation.active.translated.name %}
  455.             {% set prodIds = page.cbaxProductIdsForAdcell ? page.cbaxProductIdsForAdcell : '' %}
  456.             {% set prodId = page.product ? page.product.productNumber : '' %}
  457.             {% set prodName = page.product ? page.product.translated.name : '' %}
  458.             {% set orderNumber = page.order ? page.order.orderNumber : '' %}
  459.             {% set searchTerm = page.searchTerm ? page.searchTerm : '' %}
  460.             {% set searchListingElements = page.listing ? page.listing.elements : [] %}
  461.             {% for item in searchListingElements %}
  462.                 {% if loop.last %}
  463.                     {% set prodIds = prodIds ~ item.productNumber %}
  464.                 {% else %}
  465.                     {% set prodIds = prodIds ~ item.productNumber ~ ';' %}
  466.                 {% endif %}
  467.             {% endfor %}
  468.             {% set lineItems = page.cart ? page.cart.lineItems.elements : (page.order ? page.order.lineItems.elements : []) %}
  469.             {% set productQuantities = '' %}
  470.             {% set totalQuantity = 0 %}
  471.             {% set netPositionPrice = 0 %}
  472.             {% for item in lineItems %}
  473.                 {% set totalQuantity = totalQuantity + item.quantity %}
  474.                 {% set calculatedTaxes = 0 %}
  475.                 {% for taxElement in item.price.calculatedTaxes.elements %}
  476.                     {% set calculatedTaxes = calculatedTaxes + taxElement.tax %}
  477.                 {% endfor %}
  478.                 {% set netPositionPrice = netPositionPrice + item.price.totalPrice - calculatedTaxes %}
  479.                 {% if loop.last %}
  480.                     {% set prodIds = prodIds ~ item.payload.productNumber %}
  481.                     {% set productQuantities = productQuantities ~ item.quantity %}
  482.                 {% else %}
  483.                     {% set prodIds = prodIds ~ item.payload.productNumber ~ ';' %}
  484.                     {% set productQuantities = productQuantities ~ item.quantity ~ ';' %}
  485.                 {% endif %}
  486.             {% endfor %}
  487.             <script>
  488.                 window.onload = function(){ Adcell.Tracking.track(); };
  489.             </script>
  490.             {% if config('CbaxModulAdcell.config.retargeting') %}
  491.                 {% if activeRoute == \"frontend.home.page\" %}
  492.                     <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=track&pid={{ pubId }}&type=startpage\" async></script>
  493.                 {% endif %}
  494.                 {% if activeRoute == \"frontend.navigation.page\" %}
  495.                     <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=category&pid={{ pubId }}&categoryName={{ catName }}&categoryId={{ catId }}&productIds={{ prodIds }}&productSeparator=;\" async></script>
  496.                 {% endif %}
  497.                 {% if activeRoute == \"frontend.detail.page\" %}
  498.                     <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=product&pid={{ pubId }}&productId={{ prodId }}&productName={{ prodName }}&categoryId={{ catId }}&productIds={{ prodIds }}&productSeparator=;\" async></script>
  499.                 {% endif %}
  500.                 {% if activeRoute == \"frontend.search.page\" %}
  501.                     <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=search&pid={{ pubId }}&search={{ searchTerm }}&productIds={{ prodIds }}&productSeparator=;\" async></script>
  502.                 {% endif %}
  503.                 {% if activeRoute == \"frontend.checkout.cart.page\" %}
  504.                     <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=basket&pid={{ pubId }}&productIds={{ prodIds }}&quantities={{ productQuantities }}&basketProductCount={{ totalQuantity }}&basketTotal={{ netPositionPrice }}&productSeparator=;\" async></script>
  505.                 {% endif %}
  506.                 {% if activeRoute == 'frontend.checkout.register.page' or activeRoute == 'frontend.checkout.confirm.page' %}
  507.                     <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=basket&pid={{ pubId }}&productIds={{ prodIds }}&quantities={{ productQuantities }}&basketProductCount={{ totalQuantity }}&basketTotal={{ netPositionPrice }}&productSeparator=;\" async></script>
  508.                 {% endif %}
  509.                 {% if activeRoute == \"frontend.checkout.finish.page\" %}
  510.                     <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=checkout&pid={{ pubId }}&basketId={{ orderNumber }}&basketTotal={{ netPositionPrice }}&basketProductCount={{ totalQuantity }}&productIds={{ prodIds }}&quantities={{ productQuantities }}&productSeparator=;\" async></script>
  511.                 {% endif %}
  512.             {% endif %}
  513.             {% if config('CbaxModulAdcell.config.eventId') and activeRoute == \"frontend.checkout.finish.page\" %}
  514.                 {% set eventId = config('CbaxModulAdcell.config.eventId') %}
  515.                 <script async type=\"text/javascript\" src=\"https://t.adcell.com/t/track.js?eventid={{ eventId }}&pid={{ pubId }}&referenz={{ orderNumber }}&betrag={{ netPositionPrice }}\"></script>
  516.                 <noscript>
  517.                     <img src=\"https://t.adcell.com/t/track?pid={{ pubId }}&eventid={{ eventId }}&referenz={{ orderNumber }}&betrag={{ netPositionPrice }}\" border=\"0\" width=\"1\" height=\"1\">
  518.                 </noscript>
  519.             {% endif %}
  520.         {% endblock %}
  521.     {% endif %}
  522. {% endblock %}
  523. ""@CbaxModulAdcell/storefront/base.html.twig""/var/customers/webs/kew/htdocs6/vendor/store.shopware.com/cbaxmoduladcell/src/Resources/views/storefront/base.html.twig");
  524.     }
  525. }