<?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;
/* @TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig */
class __TwigTemplate_102d0744696c35a99ef596c0ef92bec6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'element_product_desciption_reviews_tabs_navigation_description' => [$this, 'block_element_product_desciption_reviews_tabs_navigation_description'],
'element_product_desciption_reviews_tabs_content_description' => [$this, 'block_element_product_desciption_reviews_tabs_content_description'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/element/cms-element-product-description-reviews.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", "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig"));
// line 12
$context["twtProductDetailPropertiesPosition"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-properties-position");
// line 13
$context["twtProductDetailTabManufacturerShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-tab-manufacturer-show");
// line 14
$context["twtProductDetailTabProductVideosShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-tab-product-videos-show");
// line 16
$context["videosAvailable"] = false;
// line 17
if (( !twig_test_empty(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["twtCustomFields"] ?? null), "product", [], "any", false, false, false, 17), "twt_modern_pro_custom_field__product__youtube_video", [], "any", false, false, false, 17)) || !twig_test_empty(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["twtCustomFields"] ?? null), "product", [], "any", false, false, false, 17), "twt_modern_pro_custom_field__product__vimeo_video", [], "any", false, false, false, 17)))) {
// line 18
$context["videosAvailable"] = true;
}
// line 2
$this->parent = $this->loadTemplate("@Storefront/storefront/element/cms-element-product-description-reviews.html.twig", "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.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 24
public function block_element_product_desciption_reviews_tabs_navigation_description($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", "element_product_desciption_reviews_tabs_navigation_description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_product_desciption_reviews_tabs_navigation_description"));
// line 25
echo " ";
// line 26
echo " ";
$this->displayParentBlock("element_product_desciption_reviews_tabs_navigation_description", $context, $blocks);
echo "
";
// line 29
echo " ";
// line 30
echo " ";
if (((($context["twtProductDetailPropertiesPosition"] ?? null) == 2) && (twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 30), "sortedProperties", [], "any", false, false, false, 30)) > 0))) {
// line 31
echo " <li class=\"nav-item\">
<a class=\"nav-link product-properties-tab-navigation-link\" id=\"properties-tab\" data-toggle=\"tab\" data-offcanvas-tabs=\"true\" href=\"#properties-tab-pane\" role=\"tab\" aria-controls=\"properties-tab-pane\" aria-selected=\"true\">
";
// line 33
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("twt.detail.tabProperties.title"));
echo "
<span class=\"product-detail-tab-navigation-icon\">
";
// line 35
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig", 35);
})())->display(twig_array_merge($context, ["pack" => "solid", "name" => "arrow-medium-right"]));
// line 36
echo " </span>
</a>
</li>
";
}
// line 40
echo "
";
// line 42
echo " ";
if (((($context["twtProductDetailTabProductVideosShow"] ?? null) == 2) && ($context["videosAvailable"] ?? null))) {
// line 43
echo " <li class=\"nav-item\">
<a class=\"nav-link product-manufacturer-tab-navigation-link\" id=\"product-videos-tab\" data-toggle=\"tab\" data-offcanvas-tabs=\"true\" href=\"#product-videos-tab-pane\" role=\"tab\" aria-controls=\"product-videos-tab-pane\" aria-selected=\"true\">
";
// line 45
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("twt.detail.tabVideos.title"));
echo "
<span class=\"product-detail-tab-navigation-icon\">
";
// line 47
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig", 47);
})())->display(twig_array_merge($context, ["pack" => "solid", "name" => "arrow-medium-right"]));
// line 48
echo " </span>
</a>
</li>
";
}
// line 52
echo "
";
// line 54
echo " ";
// line 55
echo " ";
if ((($context["twtProductDetailTabManufacturerShow"] ?? null) == 2)) {
// line 56
echo " <li class=\"nav-item\">
<a class=\"nav-link product-manufacturer-tab-navigation-link\" id=\"manufacturer-tab\" data-toggle=\"tab\" data-offcanvas-tabs=\"true\" href=\"#manufacturer-tab-pane\" role=\"tab\" aria-controls=\"manufacturer-tab-pane\" aria-selected=\"true\">
";
// line 58
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("twt.detail.tabManufacturer.title"));
echo "
<span class=\"product-detail-tab-navigation-icon\">
";
// line 60
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig", 60);
})())->display(twig_array_merge($context, ["pack" => "solid", "name" => "arrow-medium-right"]));
// line 61
echo " </span>
</a>
</li>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 69
public function block_element_product_desciption_reviews_tabs_content_description($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", "element_product_desciption_reviews_tabs_content_description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_product_desciption_reviews_tabs_content_description"));
// line 70
echo " ";
// line 71
echo " ";
$this->displayParentBlock("element_product_desciption_reviews_tabs_content_description", $context, $blocks);
echo "
";
// line 74
echo " ";
// line 75
echo " ";
if (((($context["twtProductDetailPropertiesPosition"] ?? null) == 2) && (twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 75), "sortedProperties", [], "any", false, false, false, 75)) > 0))) {
// line 76
echo " <div class=\"tab-pane fade show\"
id=\"properties-tab-pane\"
role=\"tabpanel\"
aria-labelledby=\"properties-tab\">
";
// line 80
$__internal_compile_0 = null;
try {
$__internal_compile_0 = $this->loadTemplate("@LDSCustom/storefront/themeware/product-detail/twt-product-detail-tab-properties.html.twig", "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig", 80);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display($context);
}
// line 81
echo " </div>
";
}
// line 83
echo "
";
// line 85
echo " ";
// line 86
echo " ";
if (((($context["twtProductDetailTabProductVideosShow"] ?? null) == 2) && ($context["videosAvailable"] ?? null))) {
// line 87
echo " <div class=\"tab-pane fade show\"
id=\"product-videos-tab-pane\"
role=\"tabpanel\"
aria-labelledby=\"product-videos-tab\">
";
// line 91
$__internal_compile_1 = null;
try {
$__internal_compile_1 = $this->loadTemplate("@TcinnThemeWareModern/storefront/themeware/product-detail/twt-product-detail-tab-product-videos.html.twig", "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig", 91);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_1) {
$__internal_compile_1->display($context);
}
// line 92
echo " </div>
";
}
// line 94
echo "
";
// line 96
echo " ";
// line 97
echo " ";
if ((($context["twtProductDetailTabManufacturerShow"] ?? null) == 2)) {
// line 98
echo " <div class=\"tab-pane fade show\"
id=\"manufacturer-tab-pane\"
role=\"tabpanel\"
aria-labelledby=\"manufacturer-tab\">
";
// line 102
$__internal_compile_2 = null;
try {
$__internal_compile_2 = $this->loadTemplate("@TcinnThemeWareModern/storefront/themeware/product-detail/twt-product-detail-tab-manufacturer.html.twig", "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig", 102);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_2) {
$__internal_compile_2->display($context);
}
// line 103
echo " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 282 => 103, 272 => 102, 266 => 98, 263 => 97, 261 => 96, 258 => 94, 254 => 92, 244 => 91, 238 => 87, 235 => 86, 233 => 85, 230 => 83, 226 => 81, 216 => 80, 210 => 76, 207 => 75, 205 => 74, 199 => 71, 197 => 70, 187 => 69, 173 => 61, 165 => 60, 160 => 58, 156 => 56, 153 => 55, 151 => 54, 148 => 52, 142 => 48, 134 => 47, 129 => 45, 125 => 43, 122 => 42, 119 => 40, 113 => 36, 105 => 35, 100 => 33, 96 => 31, 93 => 30, 91 => 29, 85 => 26, 83 => 25, 73 => 24, 62 => 2, 59 => 18, 57 => 17, 55 => 16, 53 => 14, 51 => 13, 49 => 12, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/element/cms-element-product-description-reviews.html.twig' %}
{# ThemeWare® HC-Architecture® ready #}
{# TODO: prüfen... #}
{# ThemeWare: Product detail tab component on cms product page #}
{# INFO: Please note this is also available as \"page/product-detail/tabs.html.twig\" since SW6.4 #}
{# ---------------- START: SET TEMPLATE VARS ---------------- #}
{# ThemeWare: Set theme variables #}
{% set twtProductDetailPropertiesPosition = theme_config('twt-product-detail-properties-position') %}
{% set twtProductDetailTabManufacturerShow = theme_config('twt-product-detail-tab-manufacturer-show') %}
{% set twtProductDetailTabProductVideosShow = theme_config('twt-product-detail-tab-product-videos-show') %}
{% set videosAvailable = false %}
{% if twtCustomFields.product.twt_modern_pro_custom_field__product__youtube_video is not empty or twtCustomFields.product.twt_modern_pro_custom_field__product__vimeo_video is not empty %}
{% set videosAvailable = true %}
{% endif %}
{# ---------------- END: SET TEMPLATE VARS ---------------- #}
{# ThemeWare: Adjustments on tab navigation #}
{% block element_product_desciption_reviews_tabs_navigation_description %}
{# Default block #}
{{ parent() }}
{# ThemeWare: Show properties in individuell tab if configured #}
{# ThemeWare: Add properties tab to navigation #}
{% if twtProductDetailPropertiesPosition == 2 and page.product.sortedProperties|length > 0 %}
<li class=\"nav-item\">
<a class=\"nav-link product-properties-tab-navigation-link\" id=\"properties-tab\" data-toggle=\"tab\" data-offcanvas-tabs=\"true\" href=\"#properties-tab-pane\" role=\"tab\" aria-controls=\"properties-tab-pane\" aria-selected=\"true\">
{{ \"twt.detail.tabProperties.title\"|trans|sw_sanitize }}
<span class=\"product-detail-tab-navigation-icon\">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% endif %}
{# ThemeWare: Add product videos tab to navigation #}
{% if twtProductDetailTabProductVideosShow == 2 and videosAvailable %}
<li class=\"nav-item\">
<a class=\"nav-link product-manufacturer-tab-navigation-link\" id=\"product-videos-tab\" data-toggle=\"tab\" data-offcanvas-tabs=\"true\" href=\"#product-videos-tab-pane\" role=\"tab\" aria-controls=\"product-videos-tab-pane\" aria-selected=\"true\">
{{ \"twt.detail.tabVideos.title\"|trans|sw_sanitize }}
<span class=\"product-detail-tab-navigation-icon\">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% endif %}
{# ThemeWare: Add manufacturer tab to navigation #}
{# TODO: Check availability #}
{% if twtProductDetailTabManufacturerShow == 2 %}
<li class=\"nav-item\">
<a class=\"nav-link product-manufacturer-tab-navigation-link\" id=\"manufacturer-tab\" data-toggle=\"tab\" data-offcanvas-tabs=\"true\" href=\"#manufacturer-tab-pane\" role=\"tab\" aria-controls=\"manufacturer-tab-pane\" aria-selected=\"true\">
{{ \"twt.detail.tabManufacturer.title\"|trans|sw_sanitize }}
<span class=\"product-detail-tab-navigation-icon\">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% endif %}
{% endblock %}
{# ThemeWare: Adjustments on tab content #}
{% block element_product_desciption_reviews_tabs_content_description %}
{# Default content > load \"component/product/description.html.twig\" #}
{{ parent() }}
{# ThemeWare: Show properties in individuell tab if configured #}
{# ThemeWare: Add properties content to tab #}
{% if twtProductDetailPropertiesPosition == 2 and page.product.sortedProperties|length > 0 %}
<div class=\"tab-pane fade show\"
id=\"properties-tab-pane\"
role=\"tabpanel\"
aria-labelledby=\"properties-tab\">
{% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-tab-properties.html.twig' ignore missing %}
</div>
{% endif %}
{# ThemeWare: Add product videos content to tab #}
{# TODO: Check availability #}
{% if twtProductDetailTabProductVideosShow == 2 and videosAvailable %}
<div class=\"tab-pane fade show\"
id=\"product-videos-tab-pane\"
role=\"tabpanel\"
aria-labelledby=\"product-videos-tab\">
{% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-tab-product-videos.html.twig' ignore missing %}
</div>
{% endif %}
{# ThemeWare: Add manufacturer content to tab #}
{# TODO: Check availability #}
{% if twtProductDetailTabManufacturerShow == 2 %}
<div class=\"tab-pane fade show\"
id=\"manufacturer-tab-pane\"
role=\"tabpanel\"
aria-labelledby=\"manufacturer-tab\">
{% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-tab-manufacturer.html.twig' ignore missing %}
</div>
{% endif %}
{% endblock %}", "@TcinnThemeWareModern/storefront/element/cms-element-product-description-reviews.html.twig", "/var/customers/webs/kew/htdocs6/custom/plugins/TcinnThemeWareModern/src/Resources/views/storefront/element/cms-element-product-description-reviews.html.twig");
}
}