<?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;
/* @IntediaDoofinderSW6/storefront/base.html.twig */
class __TwigTemplate_cb6121ece3676f0cad7394059af1b59b03080666c1a8d83a03f7aa644637d665 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'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@SwagCustomNotification/storefront/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@IntediaDoofinderSW6/storefront/base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@IntediaDoofinderSW6/storefront/base.html.twig"));
$this->parent = $this->loadTemplate("@SwagCustomNotification/storefront/base.html.twig", "@IntediaDoofinderSW6/storefront/base.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_base_body_script($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_body_script"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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, "IntediaDoofinderSW6.config.doofinderEnabled") && (0 === twig_compare($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "IntediaDoofinderSW6.config.doofinderInjectionBlock"), 2)))) {
// line 8
echo " <template data-intedia-doofinder data-intedia-doofinder-options='{ \"layerType\": \"";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "IntediaDoofinderSW6.config.doofinderLayer"), "html", null, true);
echo "\", \"engineHash\": \"";
echo sw_escape_filter($this->env, 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), "footer", [], "any", false, false, false, 8), "extensions", [], "any", false, false, false, 8), "doofinder", [], "any", false, false, false, 8), "hashId", [], "any", false, false, false, 8), "html", null, true);
echo "\", \"installationId\": \"";
echo sw_escape_filter($this->env, 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), "footer", [], "any", false, false, false, 8), "extensions", [], "any", false, false, false, 8), "doofinder", [], "any", false, false, false, 8), "storeId", [], "any", false, false, false, 8), "html", null, true);
echo "\", \"doofinderRecommendation\": \"";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "IntediaDoofinderSW6.config.doofinderRecommendation"), "html", null, true);
echo "\", \"csrfToken\": \"";
echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.checkout.product.add-by-number", ["mode" => "token"]);
echo "\", \"addToCartUrl\": \"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.checkout.product.add-by-number");
echo "\", \"offCanvasUrl\": \"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.cart.offcanvas");
echo "\" }'></template>
";
}
// line 10
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@IntediaDoofinderSW6/storefront/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 96 => 10, 78 => 8, 76 => 7, 71 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_body_script %}
{{ parent() }}
{% if config('IntediaDoofinderSW6.config.doofinderEnabled') and config('IntediaDoofinderSW6.config.doofinderInjectionBlock') == 2 %}
<template data-intedia-doofinder data-intedia-doofinder-options='{ \"layerType\": \"{{ config('IntediaDoofinderSW6.config.doofinderLayer') }}\", \"engineHash\": \"{{ page.footer.extensions.doofinder.hashId }}\", \"installationId\": \"{{ page.footer.extensions.doofinder.storeId }}\", \"doofinderRecommendation\": \"{{ config('IntediaDoofinderSW6.config.doofinderRecommendation') }}\", \"csrfToken\": \"{{ sw_csrf('frontend.checkout.product.add-by-number', {\"mode\": \"token\"}) }}\", \"addToCartUrl\": \"{{ path('frontend.checkout.product.add-by-number') }}\", \"offCanvasUrl\": \"{{ path('frontend.cart.offcanvas') }}\" }'></template>
{% endif %}
{% endblock %}", "@IntediaDoofinderSW6/storefront/base.html.twig", "/home/fasflpog/shopware/custom/plugins/IntediaDoofinderSW6/src/Resources/views/storefront/base.html.twig");
}
}