<?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;
/* @TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig */
class __TwigTemplate_dae804d5707e4efad18a6dbd90f00285df35dbec6169efcf0613aac85dcfc8a2 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TcinnThemeWareLiving/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", "@TcinnThemeWareLiving/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", "@TcinnThemeWareLiving/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 15
public function block_page_product_detail_media($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_media"));
$__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_media"));
// line 16
echo "\t";
// line 17
echo "\t";
// line 18
echo "\t";
if ((0 === twig_compare(($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("@TcinnThemeWareLiving/storefront/element/cms-element-image-gallery.html.twig", "@TcinnThemeWareLiving/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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@TcinnThemeWareLiving/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 #}", "@TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig", "/var/www/share/staging.traumkonzept.de/shopware/custom/plugins/TcinnThemeWareLiving/src/Resources/views/storefront/page/product-detail/index.html.twig");
}
}