<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @CbaxModulAdcell/storefront/base.html.twig */
class __TwigTemplate_2bb41f7844f634d1872acc4e3f9fc4ea extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_body_script' => [$this, 'block_base_body_script'],
'cbax_base_body_script_adcell' => [$this, 'block_cbax_base_body_script_adcell'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@DreiscSeoPro/storefront/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@CbaxModulAdcell/storefront/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@CbaxModulAdcell/storefront/base.html.twig"));
$this->parent = $this->loadTemplate("@DreiscSeoPro/storefront/base.html.twig", "@CbaxModulAdcell/storefront/base.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_base_body_script($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_body_script"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_body_script"));
// line 4
echo "
";
// line 5
$this->displayParentBlock("base_body_script", $context, $blocks);
echo "
";
// line 7
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->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 10
($context["app"] ?? null), "request", [], "any", false, false, false, 10), "cookies", [], "any", false, false, false, 10), "get", [0 => "adcell-enabled"], "method", false, false, false, 10) == 1))) {
// line 11
echo "
";
// line 12
$this->displayBlock('cbax_base_body_script_adcell', $context, $blocks);
// line 99
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 12
public function block_cbax_base_body_script_adcell($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cbax_base_body_script_adcell"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cbax_base_body_script_adcell"));
// line 13
echo "
<script async type=\"text/javascript\" src=\"https://t.adcell.com/js/trad.js\"></script>
";
// line 16
$context["pubId"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "CbaxModulAdcell.config.pubId");
// line 17
echo " ";
$context["catId"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 17), "navigation", [], "any", false, false, false, 17), "active", [], "any", false, false, false, 17), "id", [], "any", false, false, false, 17);
// line 18
echo " ";
$context["catName"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 18), "navigation", [], "any", false, false, false, 18), "active", [], "any", false, false, false, 18), "translated", [], "any", false, false, false, 18), "name", [], "any", false, false, false, 18);
// line 19
echo " ";
$context["prodIds"] = ((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cbaxProductIdsForAdcell", [], "any", false, false, false, 19)) ? (sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cbaxProductIdsForAdcell", [], "any", false, false, false, 19)) : (""));
// line 20
echo " ";
$context["prodId"] = ((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 20)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 20), "productNumber", [], "any", false, false, false, 20)) : (""));
// line 21
echo " ";
$context["prodName"] = ((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 21)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 21), "translated", [], "any", false, false, false, 21), "name", [], "any", false, false, false, 21)) : (""));
// line 22
echo " ";
$context["orderNumber"] = ((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "order", [], "any", false, false, false, 22)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "order", [], "any", false, false, false, 22), "orderNumber", [], "any", false, false, false, 22)) : (""));
// line 23
echo "
";
// line 24
$context["searchTerm"] = ((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "searchTerm", [], "any", false, false, false, 24)) ? (sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "searchTerm", [], "any", false, false, false, 24)) : (""));
// line 25
echo " ";
$context["searchListingElements"] = ((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "listing", [], "any", false, false, false, 25)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "listing", [], "any", false, false, false, 25), "elements", [], "any", false, false, false, 25)) : ([]));
// line 26
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["searchListingElements"] ?? null));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 27
echo " ";
if (sw_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 27)) {
// line 28
echo " ";
$context["prodIds"] = (($context["prodIds"] ?? null) . sw_get_attribute($this->env, $this->source, $context["item"], "productNumber", [], "any", false, false, false, 28));
// line 29
echo " ";
} else {
// line 30
echo " ";
$context["prodIds"] = ((($context["prodIds"] ?? null) . sw_get_attribute($this->env, $this->source, $context["item"], "productNumber", [], "any", false, false, false, 30)) . ";");
// line 31
echo " ";
}
// line 32
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo "
";
// line 34
$context["lineItems"] = ((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 34)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 34), "lineItems", [], "any", false, false, false, 34), "elements", [], "any", false, false, false, 34)) : (((sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "order", [], "any", false, false, false, 34)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "order", [], "any", false, false, false, 34), "lineItems", [], "any", false, false, false, 34), "elements", [], "any", false, false, false, 34)) : ([]))));
// line 35
echo " ";
$context["productQuantities"] = "";
// line 36
echo " ";
$context["totalQuantity"] = 0;
// line 37
echo " ";
$context["netPositionPrice"] = 0;
// line 38
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["lineItems"] ?? null));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 39
echo " ";
$context["totalQuantity"] = (($context["totalQuantity"] ?? null) + sw_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 39));
// line 40
echo " ";
$context["calculatedTaxes"] = 0;
// line 41
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "price", [], "any", false, false, false, 41), "calculatedTaxes", [], "any", false, false, false, 41), "elements", [], "any", false, false, false, 41));
foreach ($context['_seq'] as $context["_key"] => $context["taxElement"]) {
// line 42
echo " ";
$context["calculatedTaxes"] = (($context["calculatedTaxes"] ?? null) + sw_get_attribute($this->env, $this->source, $context["taxElement"], "tax", [], "any", false, false, false, 42));
// line 43
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxElement'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " ";
$context["netPositionPrice"] = ((($context["netPositionPrice"] ?? null) + sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "price", [], "any", false, false, false, 44), "totalPrice", [], "any", false, false, false, 44)) - ($context["calculatedTaxes"] ?? null));
// line 45
echo " ";
if (sw_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 45)) {
// line 46
echo " ";
$context["prodIds"] = (($context["prodIds"] ?? null) . sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "payload", [], "any", false, false, false, 46), "productNumber", [], "any", false, false, false, 46));
// line 47
echo " ";
$context["productQuantities"] = (($context["productQuantities"] ?? null) . sw_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 47));
// line 48
echo " ";
} else {
// line 49
echo " ";
$context["prodIds"] = ((($context["prodIds"] ?? null) . sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "payload", [], "any", false, false, false, 49), "productNumber", [], "any", false, false, false, 49)) . ";");
// line 50
echo " ";
$context["productQuantities"] = ((($context["productQuantities"] ?? null) . sw_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 50)) . ";");
// line 51
echo " ";
}
// line 52
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo "
<script>
window.onload = function(){ Adcell.Tracking.track(); };
</script>
";
// line 58
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "CbaxModulAdcell.config.retargeting")) {
// line 59
echo "
";
// line 60
if ((($context["activeRoute"] ?? null) == "frontend.home.page")) {
// line 61
echo " <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=track&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&type=startpage\" async></script>
";
}
// line 63
echo "
";
// line 64
if ((($context["activeRoute"] ?? null) == "frontend.navigation.page")) {
// line 65
echo " <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=category&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&categoryName=";
echo sw_escape_filter($this->env, ($context["catName"] ?? null), "html", null, true);
echo "&categoryId=";
echo sw_escape_filter($this->env, ($context["catId"] ?? null), "html", null, true);
echo "&productIds=";
echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html", null, true);
echo "&productSeparator=;\" async></script>
";
}
// line 67
echo "
";
// line 68
if ((($context["activeRoute"] ?? null) == "frontend.detail.page")) {
// line 69
echo " <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=product&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&productId=";
echo sw_escape_filter($this->env, ($context["prodId"] ?? null), "html", null, true);
echo "&productName=";
echo sw_escape_filter($this->env, ($context["prodName"] ?? null), "html", null, true);
echo "&categoryId=";
echo sw_escape_filter($this->env, ($context["catId"] ?? null), "html", null, true);
echo "&productIds=";
echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html", null, true);
echo "&productSeparator=;\" async></script>
";
}
// line 71
echo "
";
// line 72
if ((($context["activeRoute"] ?? null) == "frontend.search.page")) {
// line 73
echo " <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=search&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&search=";
echo sw_escape_filter($this->env, ($context["searchTerm"] ?? null), "html", null, true);
echo "&productIds=";
echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html", null, true);
echo "&productSeparator=;\" async></script>
";
}
// line 75
echo "
";
// line 76
if ((($context["activeRoute"] ?? null) == "frontend.checkout.cart.page")) {
// line 77
echo " <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=basket&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&productIds=";
echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html", null, true);
echo "&quantities=";
echo sw_escape_filter($this->env, ($context["productQuantities"] ?? null), "html", null, true);
echo "&basketProductCount=";
echo sw_escape_filter($this->env, ($context["totalQuantity"] ?? null), "html", null, true);
echo "&basketTotal=";
echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html", null, true);
echo "&productSeparator=;\" async></script>
";
}
// line 79
echo "
";
// line 80
if (((($context["activeRoute"] ?? null) == "frontend.checkout.register.page") || (($context["activeRoute"] ?? null) == "frontend.checkout.confirm.page"))) {
// line 81
echo " <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=basket&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&productIds=";
echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html", null, true);
echo "&quantities=";
echo sw_escape_filter($this->env, ($context["productQuantities"] ?? null), "html", null, true);
echo "&basketProductCount=";
echo sw_escape_filter($this->env, ($context["totalQuantity"] ?? null), "html", null, true);
echo "&basketTotal=";
echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html", null, true);
echo "&productSeparator=;\" async></script>
";
}
// line 83
echo "
";
// line 84
if ((($context["activeRoute"] ?? null) == "frontend.checkout.finish.page")) {
// line 85
echo " <script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=checkout&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&basketId=";
echo sw_escape_filter($this->env, ($context["orderNumber"] ?? null), "html", null, true);
echo "&basketTotal=";
echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html", null, true);
echo "&basketProductCount=";
echo sw_escape_filter($this->env, ($context["totalQuantity"] ?? null), "html", null, true);
echo "&productIds=";
echo sw_escape_filter($this->env, ($context["prodIds"] ?? null), "html", null, true);
echo "&quantities=";
echo sw_escape_filter($this->env, ($context["productQuantities"] ?? null), "html", null, true);
echo "&productSeparator=;\" async></script>
";
}
// line 87
echo "
";
}
// line 89
echo "
";
// line 90
if (($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "CbaxModulAdcell.config.eventId") && (($context["activeRoute"] ?? null) == "frontend.checkout.finish.page"))) {
// line 91
echo " ";
$context["eventId"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "CbaxModulAdcell.config.eventId");
// line 92
echo " <script async type=\"text/javascript\" src=\"https://t.adcell.com/t/track.js?eventid=";
echo sw_escape_filter($this->env, ($context["eventId"] ?? null), "html", null, true);
echo "&pid=";
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&referenz=";
echo sw_escape_filter($this->env, ($context["orderNumber"] ?? null), "html", null, true);
echo "&betrag=";
echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html", null, true);
echo "\"></script>
<noscript>
<img src=\"https://t.adcell.com/t/track?pid=";
// line 94
echo sw_escape_filter($this->env, ($context["pubId"] ?? null), "html", null, true);
echo "&eventid=";
echo sw_escape_filter($this->env, ($context["eventId"] ?? null), "html", null, true);
echo "&referenz=";
echo sw_escape_filter($this->env, ($context["orderNumber"] ?? null), "html", null, true);
echo "&betrag=";
echo sw_escape_filter($this->env, ($context["netPositionPrice"] ?? null), "html", null, true);
echo "\" border=\"0\" width=\"1\" height=\"1\">
</noscript>
";
}
// line 97
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@CbaxModulAdcell/storefront/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_body_script %}
{{ parent() }}
{% if config('CbaxModulAdcell.config') and
config('CbaxModulAdcell.config.active') and
config('CbaxModulAdcell.config.pubId') and
app.request.cookies.get('adcell-enabled') == 1 %}
{% block cbax_base_body_script_adcell %}
<script async type=\"text/javascript\" src=\"https://t.adcell.com/js/trad.js\"></script>
{% set pubId = config('CbaxModulAdcell.config.pubId') %}
{% set catId = page.header.navigation.active.id %}
{% set catName = page.header.navigation.active.translated.name %}
{% set prodIds = page.cbaxProductIdsForAdcell ? page.cbaxProductIdsForAdcell : '' %}
{% set prodId = page.product ? page.product.productNumber : '' %}
{% set prodName = page.product ? page.product.translated.name : '' %}
{% set orderNumber = page.order ? page.order.orderNumber : '' %}
{% set searchTerm = page.searchTerm ? page.searchTerm : '' %}
{% set searchListingElements = page.listing ? page.listing.elements : [] %}
{% for item in searchListingElements %}
{% if loop.last %}
{% set prodIds = prodIds ~ item.productNumber %}
{% else %}
{% set prodIds = prodIds ~ item.productNumber ~ ';' %}
{% endif %}
{% endfor %}
{% set lineItems = page.cart ? page.cart.lineItems.elements : (page.order ? page.order.lineItems.elements : []) %}
{% set productQuantities = '' %}
{% set totalQuantity = 0 %}
{% set netPositionPrice = 0 %}
{% for item in lineItems %}
{% set totalQuantity = totalQuantity + item.quantity %}
{% set calculatedTaxes = 0 %}
{% for taxElement in item.price.calculatedTaxes.elements %}
{% set calculatedTaxes = calculatedTaxes + taxElement.tax %}
{% endfor %}
{% set netPositionPrice = netPositionPrice + item.price.totalPrice - calculatedTaxes %}
{% if loop.last %}
{% set prodIds = prodIds ~ item.payload.productNumber %}
{% set productQuantities = productQuantities ~ item.quantity %}
{% else %}
{% set prodIds = prodIds ~ item.payload.productNumber ~ ';' %}
{% set productQuantities = productQuantities ~ item.quantity ~ ';' %}
{% endif %}
{% endfor %}
<script>
window.onload = function(){ Adcell.Tracking.track(); };
</script>
{% if config('CbaxModulAdcell.config.retargeting') %}
{% if activeRoute == \"frontend.home.page\" %}
<script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=track&pid={{ pubId }}&type=startpage\" async></script>
{% endif %}
{% if activeRoute == \"frontend.navigation.page\" %}
<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>
{% endif %}
{% if activeRoute == \"frontend.detail.page\" %}
<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>
{% endif %}
{% if activeRoute == \"frontend.search.page\" %}
<script type=\"text/javascript\" src=\"https://t.adcell.com/js/inlineretarget.js?method=search&pid={{ pubId }}&search={{ searchTerm }}&productIds={{ prodIds }}&productSeparator=;\" async></script>
{% endif %}
{% if activeRoute == \"frontend.checkout.cart.page\" %}
<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>
{% endif %}
{% if activeRoute == 'frontend.checkout.register.page' or activeRoute == 'frontend.checkout.confirm.page' %}
<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>
{% endif %}
{% if activeRoute == \"frontend.checkout.finish.page\" %}
<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>
{% endif %}
{% endif %}
{% if config('CbaxModulAdcell.config.eventId') and activeRoute == \"frontend.checkout.finish.page\" %}
{% set eventId = config('CbaxModulAdcell.config.eventId') %}
<script async type=\"text/javascript\" src=\"https://t.adcell.com/t/track.js?eventid={{ eventId }}&pid={{ pubId }}&referenz={{ orderNumber }}&betrag={{ netPositionPrice }}\"></script>
<noscript>
<img src=\"https://t.adcell.com/t/track?pid={{ pubId }}&eventid={{ eventId }}&referenz={{ orderNumber }}&betrag={{ netPositionPrice }}\" border=\"0\" width=\"1\" height=\"1\">
</noscript>
{% endif %}
{% endblock %}
{% endif %}
{% endblock %}
", "@CbaxModulAdcell/storefront/base.html.twig", "/var/customers/webs/kew/htdocs6/vendor/store.shopware.com/cbaxmoduladcell/src/Resources/views/storefront/base.html.twig");
}
}