<?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;
/* @KlarnaPayment/storefront/page/product-detail/index.html.twig */
class __TwigTemplate_5e8c13dff7904bd9db42c03923674f2eaf10d4f6e9dc3b3f3d545c440dddd3e7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_header' => [$this, 'block_base_header'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/product-detail/index.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", "@KlarnaPayment/storefront/page/product-detail/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@KlarnaPayment/storefront/page/product-detail/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/product-detail/index.html.twig", "@KlarnaPayment/storefront/page/product-detail/index.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_header($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_header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_header"));
// line 4
echo " ";
// line 5
echo " ";
$context["klarnaOnsiteMessagingData"] = (($__internal_compile_0 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 5)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_constant("KlarnaPayment\\Components\\Extension\\TemplateData\\OnsiteMessagingDataExtension::EXTENSION_NAME")] ?? null) : null);
// line 6
echo "
";
// line 7
if ((sw_get_attribute($this->env, $this->source, ($context["klarnaOnsiteMessagingData"] ?? null), "klarnaOnsiteMessagingSnippet", [], "any", false, false, false, 7) && sw_get_attribute($this->env, $this->source, ($context["klarnaOnsiteMessagingData"] ?? null), "klarnaOnsiteMessagingScript", [], "any", false, false, false, 7))) {
// line 8
echo " ";
echo sw_get_attribute($this->env, $this->source, ($context["klarnaOnsiteMessagingData"] ?? null), "klarnaOnsiteMessagingScript", [], "any", false, false, false, 8);
echo "
";
}
// line 10
echo "
";
// line 11
$this->displayParentBlock("base_header", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@KlarnaPayment/storefront/page/product-detail/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 87 => 11, 84 => 10, 78 => 8, 76 => 7, 73 => 6, 70 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block base_header %}
{# @var \\KlarnaPayment\\Components\\Extension\\TemplateData\\OnsiteMessagingDataExtension klarnaOnsiteMessagingData #}
{% set klarnaOnsiteMessagingData = page.extensions[constant('KlarnaPayment\\\\Components\\\\Extension\\\\TemplateData\\\\OnsiteMessagingDataExtension::EXTENSION_NAME')] %}
{% if klarnaOnsiteMessagingData.klarnaOnsiteMessagingSnippet and klarnaOnsiteMessagingData.klarnaOnsiteMessagingScript %}
{{ klarnaOnsiteMessagingData.klarnaOnsiteMessagingScript|raw }}
{% endif %}
{{ parent() }}
{% endblock %}
", "@KlarnaPayment/storefront/page/product-detail/index.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/KlarnaPayment/src/Resources/views/storefront/page/product-detail/index.html.twig");
}
}