<?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;
/* @TcinnThemeWareClean/storefront/page/product-detail/index.html.twig */
class __TwigTemplate_683005716015f5d32fe311f632d73e7d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_product_detail_media' => [$this, 'block_page_product_detail_media'],
];
}
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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TcinnThemeWareClean/storefront/page/product-detail/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TcinnThemeWareClean/storefront/page/product-detail/index.html.twig"));
// line 9
$context["twtProductDetailCrossSellingShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-cross-selling-show");
// line 10
$context["twtProductDetailThumbnailsPosition"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-thumbnails-position");
// line 2
$this->parent = $this->loadTemplate("@Storefront/storefront/page/product-detail/index.html.twig", "@TcinnThemeWareClean/storefront/page/product-detail/index.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 15
public function block_page_product_detail_media($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", "page_product_detail_media"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_media"));
// line 16
echo "\t";
// line 17
echo "\t";
// line 18
echo "\t";
if ((($context["twtProductDetailThumbnailsPosition"] ?? null) == 2)) {
// line 19
echo "\t\t<div class=\"col-lg-7 product-detail-media\">
\t\t\t ";
// line 20
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 20), "media", [], "any", false, false, false, 20)) {
// line 21
echo "\t\t\t\t ";
$this->loadTemplate("@TcinnThemeWareClean/storefront/element/cms-element-image-gallery.html.twig", "@TcinnThemeWareClean/storefront/page/product-detail/index.html.twig", 21)->display(twig_array_merge($context, ["mediaItems" => // line 22
($context["mediaItems"] ?? null), "zoom" => true, "zoomModal" => true, "displayMode" => "contain", "gutter" => 5, "minHeight" => "430px", "navigationArrows" => "inside", "navigationDots" => "inside", "galleryPosition" => "underneath", "isProduct" => true, "fallbackImageTitle" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 32
($context["page"] ?? null), "product", [], "any", false, false, false, 32), "translated", [], "any", false, false, false, 32), "name", [], "any", false, false, false, 32), "startIndexThumbnails" => 1, "startIndexSlider" => 1, "keepAspectRatioOnZoom" => false]));
// line 37
echo "\t\t\t ";
}
// line 38
echo "\t\t</div>
\t";
} else {
// line 40
echo "
\t\t";
// line 42
echo "\t\t";
$this->displayParentBlock("page_product_detail_media", $context, $blocks);
echo "
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@TcinnThemeWareClean/storefront/page/product-detail/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 100 => 42, 97 => 40, 93 => 38, 90 => 37, 88 => 32, 87 => 22, 85 => 21, 83 => 20, 80 => 19, 77 => 18, 75 => 17, 73 => 16, 63 => 15, 52 => 2, 50 => 10, 48 => 9, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{# ThemeWare® HC-Architecture® via configuration #}
{# TODO: prüfen... #}
{# ---------------- START: SET TEMPLATE VARS ---------------- #}
{# ThemeWare: Set theme variables #}
{% set twtProductDetailCrossSellingShow = theme_config('twt-product-detail-cross-selling-show') %}
{% set twtProductDetailThumbnailsPosition = theme_config('twt-product-detail-thumbnails-position') %}
{# ---------------- END: SET TEMPLATE VARS ---------------- #}
{# HC-Architecture @Doku #}
{% block page_product_detail_media %}
\t{# ThemeWare: Gallery-slider-thumbnails #}
\t{# TODO: Add variables and configs... #}
\t{% if twtProductDetailThumbnailsPosition == 2 %}
\t\t<div class=\"col-lg-7 product-detail-media\">
\t\t\t {% if page.product.media %}
\t\t\t\t {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
\t\t\t\t\t 'mediaItems': mediaItems,
\t\t\t\t\t 'zoom': true,
\t\t\t\t\t 'zoomModal': true,
\t\t\t\t\t 'displayMode': 'contain',
\t\t\t\t\t 'gutter': 5,
\t\t\t\t\t 'minHeight': '430px',
\t\t\t\t\t 'navigationArrows': 'inside',
\t\t\t\t\t 'navigationDots': 'inside',
\t\t\t\t\t 'galleryPosition': 'underneath',
\t\t\t\t\t 'isProduct': true,
\t\t\t\t\t 'fallbackImageTitle': page.product.translated.name,
\t\t\t\t\t 'startIndexThumbnails': 1,
\t\t\t\t\t 'startIndexSlider': 1,
\t\t\t\t\t 'keepAspectRatioOnZoom': false
\t\t\t\t } %}
\t\t\t {% endif %}
\t\t</div>
\t{% else %}
\t\t{# Default block #}
\t\t{{ parent() }}
\t{% endif %}
{% endblock %}
{# ThemeWare: Delete div if no cross selling products available #}
{# TODO: Ab Shopware 6.4.7 entfernt Shopware leere Cross-Selling Blöcke endlich selber. #}
{# block page_product_detail_cross_selling #}", "@TcinnThemeWareClean/storefront/page/product-detail/index.html.twig", "/var/www/html/custom/plugins/TcinnThemeWareClean/src/Resources/views/storefront/page/product-detail/index.html.twig");
}
}