<?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;
/* @NetzpGallery6/storefront/page/product-detail/index.html.twig */
class __TwigTemplate_50a2632636ed7ba3339a2da0d119624ae327808ea9076e519ef9630fdff0eb22 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_product_detail_inner' => [$this, 'block_page_product_detail_inner'],
'page_product_detail_inner_gallery' => [$this, 'block_page_product_detail_inner_gallery'],
];
}
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", "@NetzpGallery6/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", "@NetzpGallery6/storefront/page/product-detail/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/product-detail/index.html.twig", "@NetzpGallery6/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_page_product_detail_inner($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", "page_product_detail_inner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_inner"));
// line 4
echo " ";
$this->displayParentBlock("page_product_detail_inner", $context, $blocks);
echo "
";
// line 6
$this->displayBlock('page_product_detail_inner_gallery', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function block_page_product_detail_inner_gallery($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", "page_product_detail_inner_gallery"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_inner_gallery"));
// line 7
echo " ";
if (((0 === twig_compare($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.productposition"), "description")) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 8
($context["page"] ?? null), "product", [], "any", false, false, false, 8), "getExtension", [0 => "galleries"], "method", false, false, false, 8), "getElements", [], "method", false, false, false, 8))) {
// line 9
echo " ";
$this->loadTemplate("@NetzpGallery6/storefront/partials/gallery.html.twig", "@NetzpGallery6/storefront/page/product-detail/index.html.twig", 9)->display(twig_array_merge($context, ["gallery" => twig_first($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 10
($context["page"] ?? null), "product", [], "any", false, false, false, 10), "getExtension", [0 => "galleries"], "method", false, false, false, 10), "getElements", [], "method", false, false, false, 10)), "galleryId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 11
($context["page"] ?? null), "product", [], "any", false, false, false, 11), "id", [], "any", false, false, false, 11), "displayMode" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.displaymode"), "sortMode" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.sortmode"), "showgallerytitle" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.showgallerytitle"), "showgallerydescription" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.showgallerydescription"), "imageheight" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.imageheight"), "showthumbnailcaption" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.showthumbnailcaption"), "showimagecaption" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.showimagecaption"), "showfilename" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.showfilename"), "showcounter" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetzpGallery6.config.showcounter")]));
// line 22
echo " ";
}
// line 23
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@NetzpGallery6/storefront/page/product-detail/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 106 => 23, 103 => 22, 101 => 11, 100 => 10, 98 => 9, 96 => 8, 94 => 7, 75 => 6, 69 => 4, 59 => 3, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block page_product_detail_inner %}
{{ parent() }}
{% block page_product_detail_inner_gallery %}
{% if(config('NetzpGallery6.config.productposition') == 'description' and
page.product.getExtension('galleries').getElements()) %}
{% sw_include \"@Storefront/storefront/partials/gallery.html.twig\" with {
'gallery': page.product.getExtension('galleries').getElements()|first,
'galleryId': page.product.id,
'displayMode': config('NetzpGallery6.config.displaymode'),
'sortMode': config('NetzpGallery6.config.sortmode'),
'showgallerytitle': config('NetzpGallery6.config.showgallerytitle'),
'showgallerydescription': config('NetzpGallery6.config.showgallerydescription'),
'imageheight': config('NetzpGallery6.config.imageheight'),
'showthumbnailcaption': config('NetzpGallery6.config.showthumbnailcaption'),
'showimagecaption': config('NetzpGallery6.config.showimagecaption'),
'showfilename': config('NetzpGallery6.config.showfilename'),
'showcounter': config('NetzpGallery6.config.showcounter')
} %}
{% endif %}
{% endblock %}
{% endblock %}
", "@NetzpGallery6/storefront/page/product-detail/index.html.twig", "/data/www/stage.tuerschildshop/custom/plugins/NetzpGallery6/src/Resources/views/storefront/page/product-detail/index.html.twig");
}
}