<?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;
/* @TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig */
class __TwigTemplate_bd0e2c5427c0767c511705f630dfc31c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_head' => [$this, 'block_base_head'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/content/product-detail.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", "@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/content/product-detail.html.twig", "@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.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_head($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_head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_head"));
// line 4
echo " ";
$this->displayParentBlock("base_head", $context, $blocks);
echo "
";
// line 6
echo " ";
$context["tsChannelId"] = (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, true, false, 6), "id", [], "any", true, true, false, 6) && !(null === sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, true, false, 6), "id", [], "any", false, false, false, 6)))) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, true, false, 6), "id", [], "any", false, false, false, 6)) : (null));
// line 7
echo "
";
// line 8
if ( !(null === ($context["tsChannelId"] ?? null))) {
// line 9
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array", false, true, false, 9), ($context["activeLanguageIsoCode"] ?? null), [], "array", false, true, false, 9), "widgets", [], "any", true, true, false, 9) && !(null === sw_get_attribute($this->env, $this->source, (($__internal_compile_0 = (($__internal_compile_1 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any", false, false, false, 9)))) {
// line 10
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array", false, true, false, 10), ($context["activeLanguageIsoCode"] ?? null), [], "array", false, true, false, 10), "widgets", [], "any", true, true, false, 10) && ((($__internal_compile_2 = ($context["expectedMapping"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[($context["tsChannelRef"] ?? null)] ?? null) : null) === sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, (($__internal_compile_3 = (($__internal_compile_4 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any", false, false, false, 10), "eTrustedChannelRef", [], "any", false, false, false, 10)))) {
// line 11
echo " ";
$context["widgetConfig"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, (($__internal_compile_5 = (($__internal_compile_6 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any", false, false, false, 11), "children", [], "any", false, false, false, 11), 0, [], "any", false, false, false, 11);
// line 12
echo " ";
$this->loadTemplate("@TrustedShopsEasyIntegrationS6/storefront/includes/script-assembler.html.twig", "@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig", 12)->display(twig_array_merge($context, ["scriptConfig" => // line 13
($context["widgetConfig"] ?? null)]));
// line 15
echo " ";
}
// line 16
echo " ";
}
// line 17
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 100 => 17, 97 => 16, 94 => 15, 92 => 13, 90 => 12, 87 => 11, 84 => 10, 81 => 9, 79 => 8, 76 => 7, 73 => 6, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/content/product-detail.html.twig' %}
{% block base_head %}
{{ parent() }}
{# {% set tsConfig = config('trustedShopsApp.config') %} #}
{% set tsChannelId = context.salesChannel.id ?? null %}
{% if tsChannelId is not null %}
{% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and tsConfig[tsChannelId][activeLanguageIsoCode].widgets is not null %}
{% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].widgets.eTrustedChannelRef %}
{% set widgetConfig = tsConfig[tsChannelId][activeLanguageIsoCode].widgets.children.0 %}
{% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
scriptConfig: widgetConfig
} %}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
", "@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig", "/var/customers/webs/fporzellan/htdocs/custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/page/content/product-detail.html.twig");
}
}