<?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;
/* @Storefront/storefront/element/cms-element-product-description-reviews.html.twig */
class __TwigTemplate_3eccad37e6bcc06ad9af54f3dcf4a9ed extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'element_product_desciption_reviews' => [$this, 'block_element_product_desciption_reviews'],
'element_product_desciption_reviews_tabs_navigation' => [$this, 'block_element_product_desciption_reviews_tabs_navigation'],
'element_product_desciption_reviews_tabs_navigation_container' => [$this, 'block_element_product_desciption_reviews_tabs_navigation_container'],
'element_product_desciption_reviews_tabs_navigation_description' => [$this, 'block_element_product_desciption_reviews_tabs_navigation_description'],
'element_product_desciption_reviews_tabs_navigation_review' => [$this, 'block_element_product_desciption_reviews_tabs_navigation_review'],
'element_product_desciption_reviews_tabs_content' => [$this, 'block_element_product_desciption_reviews_tabs_content'],
'element_product_desciption_reviews_tabs_content_container' => [$this, 'block_element_product_desciption_reviews_tabs_content_container'],
'element_product_desciption_reviews_tabs_content_description' => [$this, 'block_element_product_desciption_reviews_tabs_content_description'],
'element_product_desciption_reviews_tabs_content_review' => [$this, 'block_element_product_desciption_reviews_tabs_content_review'],
];
}
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", "@Storefront/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", "@Storefront/storefront/element/cms-element-product-description-reviews.html.twig"));
// line 1
$this->displayBlock('element_product_desciption_reviews', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_element_product_desciption_reviews($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"));
$__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"));
// line 2
echo " ";
$context["config"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "fieldConfig", [], "any", false, false, false, 2), "elements", [], "any", false, false, false, 2);
// line 3
echo " ";
$context["product"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 3), "product", [], "any", false, false, false, 3);
// line 4
echo " ";
$context["descriptionTabId"] = ("description-tab-" . sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 4));
// line 5
echo " ";
$context["descriptionTabHref"] = (("#description-tab-" . sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 5)) . "-pane");
// line 6
echo " ";
$context["descriptionTabContent"] = (("description-tab-" . sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 6)) . "-pane");
// line 7
echo " ";
$context["reviewTabId"] = ("review-tab-" . sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 7));
// line 8
echo " ";
$context["reviewTabHref"] = (("#review-tab-" . sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 8)) . "-pane");
// line 9
echo " ";
$context["reviewTabContent"] = (("review-tab-" . sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 9)) . "-pane");
// line 10
echo "
";
// line 11
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 11), "product", [], "any", false, false, false, 11)) {
// line 12
echo " <div class=\"product-detail-tabs cms-element-";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "type", [], "any", false, false, false, 12), "html", null, true);
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "alignment", [], "any", false, false, false, 12), "value", [], "any", false, false, false, 12)) {
echo " has-vertical-alignment";
}
echo "\">
";
// line 13
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "alignment", [], "any", false, false, false, 13), "value", [], "any", false, false, false, 13)) {
// line 14
echo " <div class=\"cms-element-alignment";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "alignment", [], "any", false, false, false, 14), "value", [], "any", false, false, false, 14) == "center")) {
echo " align-self-center";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "alignment", [], "any", false, false, false, 14), "value", [], "any", false, false, false, 14) == "flex-end")) {
echo " align-self-end";
} else {
echo " align-self-start";
}
echo "\">
";
}
// line 16
echo " <div class=\"card card-tabs\">
";
// line 17
$this->displayBlock('element_product_desciption_reviews_tabs_navigation', $context, $blocks);
// line 77
echo "
";
// line 78
$this->displayBlock('element_product_desciption_reviews_tabs_content', $context, $blocks);
// line 110
echo " </div>
";
// line 111
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "verticalAlign", [], "any", false, false, false, 111), "value", [], "any", false, false, false, 111)) {
// line 112
echo " </div>
";
}
// line 114
echo " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 17
public function block_element_product_desciption_reviews_tabs_navigation($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"));
$__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"));
// line 18
echo " <div class=\"cms-card-header card-header product-detail-tab-navigation product-description-reviews-tab-navigation\">
";
// line 19
$this->displayBlock('element_product_desciption_reviews_tabs_navigation_container', $context, $blocks);
// line 75
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 19
public function block_element_product_desciption_reviews_tabs_navigation_container($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_container"));
$__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_container"));
// line 20
echo " <ul class=\"nav nav-tabs product-detail-tab-navigation-list\"
id=\"product-detail-tabs\"
role=\"tablist\">
";
// line 23
$this->displayBlock('element_product_desciption_reviews_tabs_navigation_description', $context, $blocks);
// line 53
echo "
";
// line 54
$this->displayBlock('element_product_desciption_reviews_tabs_navigation_review', $context, $blocks);
// line 73
echo " </ul>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 23
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 24
echo " <li class=\"nav-item\">
<a class=\"nav-link ";
// line 25
if (((($context["ratingSuccess"] ?? null) != 1) && (($context["ratingSuccess"] ?? null) != -1))) {
echo "active";
}
echo " product-detail-tab-navigation-link description-tab\"
id=\"";
// line 26
echo sw_escape_filter($this->env, ($context["descriptionTabId"] ?? null), "html", null, true);
echo "\"
";
// line 27
echo sw_escape_filter($this->env, ($context["dataBsToggleAttr"] ?? null), "html", null, true);
echo "=\"tab\"
data-offcanvas-tabs=\"true\"
href=\"";
// line 29
echo sw_escape_filter($this->env, ($context["descriptionTabHref"] ?? null), "html", null, true);
echo "\"
role=\"tab\"
aria-controls=\"";
// line 31
echo sw_escape_filter($this->env, ($context["descriptionTabContent"] ?? null), "html", null, true);
echo "\"
aria-selected=\"true\">
<span>";
// line 33
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tabsDescription"));
echo "</span>
<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, "@Storefront/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>
";
// line 37
if ((twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 37), "product", [], "any", false, false, false, 37), "translated", [], "any", false, false, false, 37), "description", [], "any", false, false, false, 37)) > 0)) {
// line 38
echo " <span class=\"product-detail-tab-preview\">
";
// line 39
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize(twig_striptags(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 39), "translated", [], "any", false, false, false, 39), "description", [], "any", false, false, false, 39)))), "truncate", [0 => 125, 1 => "…"], "method", false, false, false, 39), "html", null, true);
echo "
";
// line 45
echo " ";
if ((twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 45), "product", [], "any", false, false, false, 45), "translated", [], "any", false, false, false, 45), "description", [], "any", false, false, false, 45)) >= 126)) {
// line 46
echo " <span class=\"product-detail-tab-preview-more\">";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tabsPreviewMore"));
echo "</span>
";
}
// line 48
echo " </span>
";
}
// line 50
echo " </a>
</li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 54
public function block_element_product_desciption_reviews_tabs_navigation_review($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_review"));
$__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_review"));
// line 55
echo " ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.listing.showReview")) {
// line 56
echo " <li class=\"nav-item\">
<a class=\"nav-link ";
// line 57
if (((($context["ratingSuccess"] ?? null) == 1) || (($context["ratingSuccess"] ?? null) == -1))) {
echo "active";
}
echo " product-detail-tab-navigation-link review-tab\"
id=\"";
// line 58
echo sw_escape_filter($this->env, ($context["reviewTabId"] ?? null), "html", null, true);
echo "\"
";
// line 59
echo sw_escape_filter($this->env, ($context["dataBsToggleAttr"] ?? null), "html", null, true);
echo "=\"tab\"
data-offcanvas-tabs=\"true\"
href=\"";
// line 61
echo sw_escape_filter($this->env, ($context["reviewTabHref"] ?? null), "html", null, true);
echo "\"
role=\"tab\"
aria-controls=\"";
// line 63
echo sw_escape_filter($this->env, ($context["reviewTabContent"] ?? null), "html", null, true);
echo "\"
aria-selected=\"true\">
";
// line 65
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tabsReview"));
echo "
<span class=\"product-detail-tab-navigation-icon\">
";
// line 67
((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, "@Storefront/storefront/element/cms-element-product-description-reviews.html.twig", 67);
})())->display(twig_array_merge($context, ["pack" => "solid", "name" => "arrow-medium-right"]));
// line 68
echo " </span>
</a>
</li>
";
}
// line 72
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 78
public function block_element_product_desciption_reviews_tabs_content($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"));
$__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"));
// line 79
echo " <div class=\"product-detail-tabs-content card-body\">
";
// line 80
$this->displayBlock('element_product_desciption_reviews_tabs_content_container', $context, $blocks);
// line 108
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 80
public function block_element_product_desciption_reviews_tabs_content_container($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_container"));
$__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_container"));
// line 81
echo " <div class=\"tab-content\">
";
// line 82
$this->displayBlock('element_product_desciption_reviews_tabs_content_description', $context, $blocks);
// line 92
echo "
";
// line 93
$this->displayBlock('element_product_desciption_reviews_tabs_content_review', $context, $blocks);
// line 106
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 82
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 83
echo " <div class=\"tab-pane fade show ";
if (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 83), "ratingSuccess", [], "any", false, false, false, 83) != 1) && (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 83), "ratingSuccess", [], "any", false, false, false, 83) != -1))) {
echo "active";
}
echo "\"
id=\"";
// line 84
echo sw_escape_filter($this->env, ($context["descriptionTabContent"] ?? null), "html", null, true);
echo "\"
role=\"tabpanel\"
aria-labelledby=\"";
// line 86
echo sw_escape_filter($this->env, ($context["descriptionTabId"] ?? null), "html", null, true);
echo "\">
";
// line 87
$this->loadTemplate("@MoorlCreator/storefront/component/product/description.html.twig", "@Storefront/storefront/element/cms-element-product-description-reviews.html.twig", 87)->display(twig_array_merge($context, ["product" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 88
($context["element"] ?? null), "data", [], "any", false, false, false, 88), "product", [], "any", false, false, false, 88)]));
// line 90
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 93
public function block_element_product_desciption_reviews_tabs_content_review($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_review"));
$__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_review"));
// line 94
echo " ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.listing.showReview")) {
// line 95
echo " <div class=\"tab-pane fade show ";
if (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 95), "ratingSuccess", [], "any", false, false, false, 95) == 1) || (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 95), "ratingSuccess", [], "any", false, false, false, 95) == -1))) {
echo "active";
}
echo "\"
id=\"";
// line 96
echo sw_escape_filter($this->env, ($context["reviewTabContent"] ?? null), "html", null, true);
echo "\"
role=\"tabpanel\"
aria-labelledby=\"";
// line 98
echo sw_escape_filter($this->env, ($context["reviewTabId"] ?? null), "html", null, true);
echo "\">
";
// line 99
$this->loadTemplate("@Storefront/storefront/component/review/review.html.twig", "@Storefront/storefront/element/cms-element-product-description-reviews.html.twig", 99)->display(twig_array_merge($context, ["reviews" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 100
($context["element"] ?? null), "data", [], "any", false, false, false, 100), "reviews", [], "any", false, false, false, 100), "product" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 101
($context["element"] ?? null), "data", [], "any", false, false, false, 101), "product", [], "any", false, false, false, 101)]));
// line 103
echo " </div>
";
}
// line 105
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/element/cms-element-product-description-reviews.html.twig";
}
public function getDebugInfo()
{
return array ( 505 => 105, 501 => 103, 499 => 101, 498 => 100, 497 => 99, 493 => 98, 488 => 96, 481 => 95, 478 => 94, 468 => 93, 457 => 90, 455 => 88, 454 => 87, 450 => 86, 445 => 84, 438 => 83, 428 => 82, 417 => 106, 415 => 93, 412 => 92, 410 => 82, 407 => 81, 397 => 80, 386 => 108, 384 => 80, 381 => 79, 371 => 78, 361 => 72, 355 => 68, 347 => 67, 342 => 65, 337 => 63, 332 => 61, 327 => 59, 323 => 58, 317 => 57, 314 => 56, 311 => 55, 301 => 54, 289 => 50, 285 => 48, 279 => 46, 276 => 45, 271 => 39, 268 => 38, 266 => 37, 263 => 36, 255 => 35, 250 => 33, 245 => 31, 240 => 29, 235 => 27, 231 => 26, 225 => 25, 222 => 24, 212 => 23, 201 => 73, 199 => 54, 196 => 53, 194 => 23, 189 => 20, 179 => 19, 168 => 75, 166 => 19, 163 => 18, 153 => 17, 141 => 114, 137 => 112, 135 => 111, 132 => 110, 130 => 78, 127 => 77, 125 => 17, 122 => 16, 110 => 14, 108 => 13, 100 => 12, 98 => 11, 95 => 10, 92 => 9, 89 => 8, 86 => 7, 83 => 6, 80 => 5, 77 => 4, 74 => 3, 71 => 2, 52 => 1,);
}
public function getSourceContext()
{
return new Source("{% block element_product_desciption_reviews %}
{% set config = element.fieldConfig.elements %}
{% set product = element.data.product %}
{% set descriptionTabId = \"description-tab-\" ~ product.id %}
{% set descriptionTabHref = \"#description-tab-\" ~ product.id ~ \"-pane\" %}
{% set descriptionTabContent = \"description-tab-\" ~ product.id ~ \"-pane\" %}
{% set reviewTabId = \"review-tab-\" ~ product.id %}
{% set reviewTabHref = \"#review-tab-\" ~ product.id ~ \"-pane\" %}
{% set reviewTabContent = \"review-tab-\" ~ product.id ~ \"-pane\" %}
{% if element.data.product %}
<div class=\"product-detail-tabs cms-element-{{ element.type }}{% if config.alignment.value %} has-vertical-alignment{% endif %}\">
{% if config.alignment.value %}
<div class=\"cms-element-alignment{% if config.alignment.value == \"center\" %} align-self-center{% elseif config.alignment.value == \"flex-end\" %} align-self-end{% else %} align-self-start{% endif %}\">
{% endif %}
<div class=\"card card-tabs\">
{% block element_product_desciption_reviews_tabs_navigation %}
<div class=\"cms-card-header card-header product-detail-tab-navigation product-description-reviews-tab-navigation\">
{% block element_product_desciption_reviews_tabs_navigation_container %}
<ul class=\"nav nav-tabs product-detail-tab-navigation-list\"
id=\"product-detail-tabs\"
role=\"tablist\">
{% block element_product_desciption_reviews_tabs_navigation_description %}
<li class=\"nav-item\">
<a class=\"nav-link {% if (ratingSuccess != 1) and (ratingSuccess != -1) %}active{% endif %} product-detail-tab-navigation-link description-tab\"
id=\"{{ descriptionTabId }}\"
{{ dataBsToggleAttr }}=\"tab\"
data-offcanvas-tabs=\"true\"
href=\"{{ descriptionTabHref }}\"
role=\"tab\"
aria-controls=\"{{ descriptionTabContent }}\"
aria-selected=\"true\">
<span>{{ \"detail.tabsDescription\"|trans|sw_sanitize }}</span>
<span class=\"product-detail-tab-navigation-icon\">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
{% if element.data.product.translated.description|length > 0 %}
<span class=\"product-detail-tab-preview\">
{{ page.product.translated.description|raw|striptags|sw_sanitize|u.truncate(125, '…') }}
{# truncate always cuts down the length to 125 characters.
So it will only shorten the string if it exceeds 125 chars.
Therefor, only show the button when the length of the text is
greater or equal then 126 characters. #}
{% if element.data.product.translated.description|length >= 126 %}
<span class=\"product-detail-tab-preview-more\">{{ \"detail.tabsPreviewMore\"|trans|sw_sanitize }}</span>
{% endif %}
</span>
{% endif %}
</a>
</li>
{% endblock %}
{% block element_product_desciption_reviews_tabs_navigation_review %}
{% if config('core.listing.showReview') %}
<li class=\"nav-item\">
<a class=\"nav-link {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %} product-detail-tab-navigation-link review-tab\"
id=\"{{ reviewTabId }}\"
{{ dataBsToggleAttr }}=\"tab\"
data-offcanvas-tabs=\"true\"
href=\"{{ reviewTabHref }}\"
role=\"tab\"
aria-controls=\"{{ reviewTabContent }}\"
aria-selected=\"true\">
{{ \"detail.tabsReview\"|trans|sw_sanitize }}
<span class=\"product-detail-tab-navigation-icon\">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% endif %}
{% endblock %}
</ul>
{% endblock %}
</div>
{% endblock %}
{% block element_product_desciption_reviews_tabs_content %}
<div class=\"product-detail-tabs-content card-body\">
{% block element_product_desciption_reviews_tabs_content_container %}
<div class=\"tab-content\">
{% block element_product_desciption_reviews_tabs_content_description %}
<div class=\"tab-pane fade show {% if (element.data.ratingSuccess != 1) and (element.data.ratingSuccess != -1) %}active{% endif %}\"
id=\"{{ descriptionTabContent }}\"
role=\"tabpanel\"
aria-labelledby=\"{{ descriptionTabId }}\">
{% sw_include '@Storefront/storefront/component/product/description.html.twig' with {
product: element.data.product
} %}
</div>
{% endblock %}
{% block element_product_desciption_reviews_tabs_content_review %}
{% if config('core.listing.showReview') %}
<div class=\"tab-pane fade show {% if (element.data.ratingSuccess == 1) or (element.data.ratingSuccess == -1) %}active{% endif %}\"
id=\"{{ reviewTabContent }}\"
role=\"tabpanel\"
aria-labelledby=\"{{ reviewTabId }}\">
{% sw_include '@Storefront/storefront/component/review/review.html.twig' with {
reviews: element.data.reviews,
product: element.data.product
} %}
</div>
{% endif %}
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% if config.verticalAlign.value %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}
", "@Storefront/storefront/element/cms-element-product-description-reviews.html.twig", "/var/customers/webs/kew/htdocs6/vendor/shopware/storefront/Resources/views/storefront/element/cms-element-product-description-reviews.html.twig");
}
}