<?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_127bd69ec0fbc821a757ed6fe5098285 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'],
'intedia_doofinder_include' => [$this, 'block_intedia_doofinder_include'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@DreiscSet/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", "@IntediaDoofinderSW6/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", "@IntediaDoofinderSW6/storefront/base.html.twig"));
$this->parent = $this->loadTemplate("@DreiscSet/storefront/base.html.twig", "@IntediaDoofinderSW6/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, "IntediaDoofinderSW6.config.doofinderEnabled") && ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "IntediaDoofinderSW6.config.doofinderInjectionBlock") == 2))) {
// line 8
echo "
";
// line 9
$this->displayBlock('intedia_doofinder_include', $context, $blocks);
// line 12
echo "
";
}
// line 14
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_intedia_doofinder_include($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", "intedia_doofinder_include"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "intedia_doofinder_include"));
// line 10
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, 10), "extensions", [], "any", false, false, false, 10), "doofinder", [], "any", false, false, false, 10), "hashId", [], "any", false, false, false, 10), "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, 10), "extensions", [], "any", false, false, false, 10), "doofinder", [], "any", false, false, false, 10), "storeId", [], "any", false, false, false, 10), "html", null, true);
echo "\", \"doofinderRecommendation\": ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "IntediaDoofinderSW6.config.doofinderRecommendation")) {
echo "1";
} else {
echo "0";
}
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>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@IntediaDoofinderSW6/storefront/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 109 => 10, 99 => 9, 88 => 14, 84 => 12, 82 => 9, 79 => 8, 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('IntediaDoofinderSW6.config.doofinderEnabled') and config('IntediaDoofinderSW6.config.doofinderInjectionBlock') == 2 %}
{% block intedia_doofinder_include %}
<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\": {% if config('IntediaDoofinderSW6.config.doofinderRecommendation') %}1{% else %}0{% endif %}, \"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>
{% endblock %}
{% endif %}
{% endblock %}", "@IntediaDoofinderSW6/storefront/base.html.twig", "/var/customers/webs/fporzellan/htdocs/vendor/store.shopware.com/intediadoofindersw6/src/Resources/views/storefront/base.html.twig");
}
}