var/cache/dev_h35c9e4fa64367e5a564f83803cfdec08/twig/ea/ea11801c6d8c7cd7864efa3b21b7e1411241988021bf05e51803f7a5b3074011.php line 457

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @Storefront/storefront/element/cms-element-product-description-reviews.html.twig */
  16. class __TwigTemplate_3eccad37e6bcc06ad9af54f3dcf4a9ed extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->parent false;
  25.         $this->blocks = [
  26.             'element_product_desciption_reviews' => [$this'block_element_product_desciption_reviews'],
  27.             'element_product_desciption_reviews_tabs_navigation' => [$this'block_element_product_desciption_reviews_tabs_navigation'],
  28.             'element_product_desciption_reviews_tabs_navigation_container' => [$this'block_element_product_desciption_reviews_tabs_navigation_container'],
  29.             'element_product_desciption_reviews_tabs_navigation_description' => [$this'block_element_product_desciption_reviews_tabs_navigation_description'],
  30.             'element_product_desciption_reviews_tabs_navigation_review' => [$this'block_element_product_desciption_reviews_tabs_navigation_review'],
  31.             'element_product_desciption_reviews_tabs_content' => [$this'block_element_product_desciption_reviews_tabs_content'],
  32.             'element_product_desciption_reviews_tabs_content_container' => [$this'block_element_product_desciption_reviews_tabs_content_container'],
  33.             'element_product_desciption_reviews_tabs_content_description' => [$this'block_element_product_desciption_reviews_tabs_content_description'],
  34.             'element_product_desciption_reviews_tabs_content_review' => [$this'block_element_product_desciption_reviews_tabs_content_review'],
  35.         ];
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-product-description-reviews.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-product-description-reviews.html.twig"));
  44.         // line 1
  45.         $this->displayBlock('element_product_desciption_reviews'$context$blocks);
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     public function block_element_product_desciption_reviews($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews"));
  58.         // line 2
  59.         echo "    ";
  60.         $context["config"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "fieldConfig", [], "any"falsefalsefalse2), "elements", [], "any"falsefalsefalse2);
  61.         // line 3
  62.         echo "    ";
  63.         $context["product"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse3), "product", [], "any"falsefalsefalse3);
  64.         // line 4
  65.         echo "    ";
  66.         $context["descriptionTabId"] = ("description-tab-" sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "id", [], "any"falsefalsefalse4));
  67.         // line 5
  68.         echo "    ";
  69.         $context["descriptionTabHref"] = (("#description-tab-" sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "id", [], "any"falsefalsefalse5)) . "-pane");
  70.         // line 6
  71.         echo "    ";
  72.         $context["descriptionTabContent"] = (("description-tab-" sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "id", [], "any"falsefalsefalse6)) . "-pane");
  73.         // line 7
  74.         echo "    ";
  75.         $context["reviewTabId"] = ("review-tab-" sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "id", [], "any"falsefalsefalse7));
  76.         // line 8
  77.         echo "    ";
  78.         $context["reviewTabHref"] = (("#review-tab-" sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "id", [], "any"falsefalsefalse8)) . "-pane");
  79.         // line 9
  80.         echo "    ";
  81.         $context["reviewTabContent"] = (("review-tab-" sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "id", [], "any"falsefalsefalse9)) . "-pane");
  82.         // line 10
  83.         echo "
  84.     ";
  85.         // line 11
  86.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse11), "product", [], "any"falsefalsefalse11)) {
  87.             // line 12
  88.             echo "        <div class=\"product-detail-tabs cms-element-";
  89.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse12), "html"nulltrue);
  90.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "alignment", [], "any"falsefalsefalse12), "value", [], "any"falsefalsefalse12)) {
  91.                 echo " has-vertical-alignment";
  92.             }
  93.             echo "\">
  94.             ";
  95.             // line 13
  96.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "alignment", [], "any"falsefalsefalse13), "value", [], "any"falsefalsefalse13)) {
  97.                 // line 14
  98.                 echo "                <div class=\"cms-element-alignment";
  99.                 if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "alignment", [], "any"falsefalsefalse14), "value", [], "any"falsefalsefalse14) == "center")) {
  100.                     echo " align-self-center";
  101.                 } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "alignment", [], "any"falsefalsefalse14), "value", [], "any"falsefalsefalse14) == "flex-end")) {
  102.                     echo " align-self-end";
  103.                 } else {
  104.                     echo " align-self-start";
  105.                 }
  106.                 echo "\">
  107.             ";
  108.             }
  109.             // line 16
  110.             echo "                <div class=\"card card-tabs\">
  111.                     ";
  112.             // line 17
  113.             $this->displayBlock('element_product_desciption_reviews_tabs_navigation'$context$blocks);
  114.             // line 77
  115.             echo "
  116.                     ";
  117.             // line 78
  118.             $this->displayBlock('element_product_desciption_reviews_tabs_content'$context$blocks);
  119.             // line 110
  120.             echo "                </div>
  121.             ";
  122.             // line 111
  123.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "verticalAlign", [], "any"falsefalsefalse111), "value", [], "any"falsefalsefalse111)) {
  124.                 // line 112
  125.                 echo "                </div>
  126.             ";
  127.             }
  128.             // line 114
  129.             echo "        </div>
  130.     ";
  131.         }
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     // line 17
  138.     public function block_element_product_desciption_reviews_tabs_navigation($context, array $blocks = [])
  139.     {
  140.         $macros $this->macros;
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation"));
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation"));
  145.         // line 18
  146.         echo "                        <div class=\"cms-card-header card-header product-detail-tab-navigation product-description-reviews-tab-navigation\">
  147.                             ";
  148.         // line 19
  149.         $this->displayBlock('element_product_desciption_reviews_tabs_navigation_container'$context$blocks);
  150.         // line 75
  151.         echo "                        </div>
  152.                     ";
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.         
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157.     }
  158.     // line 19
  159.     public function block_element_product_desciption_reviews_tabs_navigation_container($context, array $blocks = [])
  160.     {
  161.         $macros $this->macros;
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation_container"));
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation_container"));
  166.         // line 20
  167.         echo "                                <ul class=\"nav nav-tabs product-detail-tab-navigation-list\"
  168.                                     id=\"product-detail-tabs\"
  169.                                     role=\"tablist\">
  170.                                     ";
  171.         // line 23
  172.         $this->displayBlock('element_product_desciption_reviews_tabs_navigation_description'$context$blocks);
  173.         // line 53
  174.         echo "
  175.                                     ";
  176.         // line 54
  177.         $this->displayBlock('element_product_desciption_reviews_tabs_navigation_review'$context$blocks);
  178.         // line 73
  179.         echo "                                </ul>
  180.                             ";
  181.         
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  183.         
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  185.     }
  186.     // line 23
  187.     public function block_element_product_desciption_reviews_tabs_navigation_description($context, array $blocks = [])
  188.     {
  189.         $macros $this->macros;
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation_description"));
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation_description"));
  194.         // line 24
  195.         echo "                                        <li class=\"nav-item\">
  196.                                             <a class=\"nav-link ";
  197.         // line 25
  198.         if (((($context["ratingSuccess"] ?? null) != 1) && (($context["ratingSuccess"] ?? null) !=  -1))) {
  199.             echo "active";
  200.         }
  201.         echo " product-detail-tab-navigation-link description-tab\"
  202.                                                id=\"";
  203.         // line 26
  204.         echo sw_escape_filter($this->env, ($context["descriptionTabId"] ?? null), "html"nulltrue);
  205.         echo "\"
  206.                                                ";
  207.         // line 27
  208.         echo sw_escape_filter($this->env, ($context["dataBsToggleAttr"] ?? null), "html"nulltrue);
  209.         echo "=\"tab\"
  210.                                                data-offcanvas-tabs=\"true\"
  211.                                                href=\"";
  212.         // line 29
  213.         echo sw_escape_filter($this->env, ($context["descriptionTabHref"] ?? null), "html"nulltrue);
  214.         echo "\"
  215.                                                role=\"tab\"
  216.                                                aria-controls=\"";
  217.         // line 31
  218.         echo sw_escape_filter($this->env, ($context["descriptionTabContent"] ?? null), "html"nulltrue);
  219.         echo "\"
  220.                                                aria-selected=\"true\">
  221.                                                 <span>";
  222.         // line 33
  223.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tabsDescription"));
  224.         echo "</span>
  225.                                                 <span class=\"product-detail-tab-navigation-icon\">
  226.                                                     ";
  227.         // line 35
  228.         ((function () use ($context$blocks) {
  229.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  230.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  231.             return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/element/cms-element-product-description-reviews.html.twig"35);
  232.         })())->display(twig_array_merge($context, ["pack" => "solid""name" => "arrow-medium-right"]));
  233.         // line 36
  234.         echo "                                                </span>
  235.                                                 ";
  236.         // line 37
  237.         if ((twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse37), "product", [], "any"falsefalsefalse37), "translated", [], "any"falsefalsefalse37), "description", [], "any"falsefalsefalse37)) > 0)) {
  238.             // line 38
  239.             echo "                                                    <span class=\"product-detail-tab-preview\">
  240.                                                         ";
  241.             // line 39
  242.             echo sw_escape_filter($this->envsw_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->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse39), "translated", [], "any"falsefalsefalse39), "description", [], "any"falsefalsefalse39)))), "truncate", [=> 125=> "…"], "method"falsefalsefalse39), "html"nulltrue);
  243.             echo "
  244.                                                         ";
  245.             // line 45
  246.             echo "                                                        ";
  247.             if ((twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse45), "product", [], "any"falsefalsefalse45), "translated", [], "any"falsefalsefalse45), "description", [], "any"falsefalsefalse45)) >= 126)) {
  248.                 // line 46
  249.                 echo "                                                            <span class=\"product-detail-tab-preview-more\">";
  250.                 echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tabsPreviewMore"));
  251.                 echo "</span>
  252.                                                         ";
  253.             }
  254.             // line 48
  255.             echo "                                                        </span>
  256.                                                 ";
  257.         }
  258.         // line 50
  259.         echo "                                            </a>
  260.                                         </li>
  261.                                     ";
  262.         
  263.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  264.         
  265.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  266.     }
  267.     // line 54
  268.     public function block_element_product_desciption_reviews_tabs_navigation_review($context, array $blocks = [])
  269.     {
  270.         $macros $this->macros;
  271.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  272.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation_review"));
  273.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  274.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_navigation_review"));
  275.         // line 55
  276.         echo "                                        ";
  277.         if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.listing.showReview")) {
  278.             // line 56
  279.             echo "                                            <li class=\"nav-item\">
  280.                                                 <a class=\"nav-link ";
  281.             // line 57
  282.             if (((($context["ratingSuccess"] ?? null) == 1) || (($context["ratingSuccess"] ?? null) ==  -1))) {
  283.                 echo "active";
  284.             }
  285.             echo " product-detail-tab-navigation-link review-tab\"
  286.                                                    id=\"";
  287.             // line 58
  288.             echo sw_escape_filter($this->env, ($context["reviewTabId"] ?? null), "html"nulltrue);
  289.             echo "\"
  290.                                                    ";
  291.             // line 59
  292.             echo sw_escape_filter($this->env, ($context["dataBsToggleAttr"] ?? null), "html"nulltrue);
  293.             echo "=\"tab\"
  294.                                                    data-offcanvas-tabs=\"true\"
  295.                                                    href=\"";
  296.             // line 61
  297.             echo sw_escape_filter($this->env, ($context["reviewTabHref"] ?? null), "html"nulltrue);
  298.             echo "\"
  299.                                                    role=\"tab\"
  300.                                                    aria-controls=\"";
  301.             // line 63
  302.             echo sw_escape_filter($this->env, ($context["reviewTabContent"] ?? null), "html"nulltrue);
  303.             echo "\"
  304.                                                    aria-selected=\"true\">
  305.                                                     ";
  306.             // line 65
  307.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tabsReview"));
  308.             echo "
  309.                                                     <span class=\"product-detail-tab-navigation-icon\">
  310.                                                         ";
  311.             // line 67
  312.             ((function () use ($context$blocks) {
  313.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  314.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  315.                 return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/element/cms-element-product-description-reviews.html.twig"67);
  316.             })())->display(twig_array_merge($context, ["pack" => "solid""name" => "arrow-medium-right"]));
  317.             // line 68
  318.             echo "                                                    </span>
  319.                                                 </a>
  320.                                             </li>
  321.                                         ";
  322.         }
  323.         // line 72
  324.         echo "                                    ";
  325.         
  326.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  327.         
  328.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  329.     }
  330.     // line 78
  331.     public function block_element_product_desciption_reviews_tabs_content($context, array $blocks = [])
  332.     {
  333.         $macros $this->macros;
  334.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  335.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content"));
  336.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  337.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content"));
  338.         // line 79
  339.         echo "                        <div class=\"product-detail-tabs-content card-body\">
  340.                             ";
  341.         // line 80
  342.         $this->displayBlock('element_product_desciption_reviews_tabs_content_container'$context$blocks);
  343.         // line 108
  344.         echo "                        </div>
  345.                     ";
  346.         
  347.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  348.         
  349.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  350.     }
  351.     // line 80
  352.     public function block_element_product_desciption_reviews_tabs_content_container($context, array $blocks = [])
  353.     {
  354.         $macros $this->macros;
  355.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  356.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content_container"));
  357.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  358.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content_container"));
  359.         // line 81
  360.         echo "                                <div class=\"tab-content\">
  361.                                     ";
  362.         // line 82
  363.         $this->displayBlock('element_product_desciption_reviews_tabs_content_description'$context$blocks);
  364.         // line 92
  365.         echo "
  366.                                     ";
  367.         // line 93
  368.         $this->displayBlock('element_product_desciption_reviews_tabs_content_review'$context$blocks);
  369.         // line 106
  370.         echo "                                </div>
  371.                             ";
  372.         
  373.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  374.         
  375.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  376.     }
  377.     // line 82
  378.     public function block_element_product_desciption_reviews_tabs_content_description($context, array $blocks = [])
  379.     {
  380.         $macros $this->macros;
  381.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  382.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content_description"));
  383.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  384.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content_description"));
  385.         // line 83
  386.         echo "                                        <div class=\"tab-pane fade show ";
  387.         if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse83), "ratingSuccess", [], "any"falsefalsefalse83) != 1) && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse83), "ratingSuccess", [], "any"falsefalsefalse83) !=  -1))) {
  388.             echo "active";
  389.         }
  390.         echo "\"
  391.                                              id=\"";
  392.         // line 84
  393.         echo sw_escape_filter($this->env, ($context["descriptionTabContent"] ?? null), "html"nulltrue);
  394.         echo "\"
  395.                                              role=\"tabpanel\"
  396.                                              aria-labelledby=\"";
  397.         // line 86
  398.         echo sw_escape_filter($this->env, ($context["descriptionTabId"] ?? null), "html"nulltrue);
  399.         echo "\">
  400.                                             ";
  401.         // line 87
  402.         $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->sourcesw_get_attribute($this->env$this->source,         // line 88
  403. ($context["element"] ?? null), "data", [], "any"falsefalsefalse88), "product", [], "any"falsefalsefalse88)]));
  404.         // line 90
  405.         echo "                                        </div>
  406.                                     ";
  407.         
  408.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  409.         
  410.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  411.     }
  412.     // line 93
  413.     public function block_element_product_desciption_reviews_tabs_content_review($context, array $blocks = [])
  414.     {
  415.         $macros $this->macros;
  416.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  417.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content_review"));
  418.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  419.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_desciption_reviews_tabs_content_review"));
  420.         // line 94
  421.         echo "                                        ";
  422.         if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.listing.showReview")) {
  423.             // line 95
  424.             echo "                                            <div class=\"tab-pane fade show ";
  425.             if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse95), "ratingSuccess", [], "any"falsefalsefalse95) == 1) || (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse95), "ratingSuccess", [], "any"falsefalsefalse95) ==  -1))) {
  426.                 echo "active";
  427.             }
  428.             echo "\"
  429.                                                  id=\"";
  430.             // line 96
  431.             echo sw_escape_filter($this->env, ($context["reviewTabContent"] ?? null), "html"nulltrue);
  432.             echo "\"
  433.                                                  role=\"tabpanel\"
  434.                                                  aria-labelledby=\"";
  435.             // line 98
  436.             echo sw_escape_filter($this->env, ($context["reviewTabId"] ?? null), "html"nulltrue);
  437.             echo "\">
  438.                                                 ";
  439.             // line 99
  440.             $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->sourcesw_get_attribute($this->env$this->source,             // line 100
  441. ($context["element"] ?? null), "data", [], "any"falsefalsefalse100), "reviews", [], "any"falsefalsefalse100), "product" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 101
  442. ($context["element"] ?? null), "data", [], "any"falsefalsefalse101), "product", [], "any"falsefalsefalse101)]));
  443.             // line 103
  444.             echo "                                            </div>
  445.                                         ";
  446.         }
  447.         // line 105
  448.         echo "                                    ";
  449.         
  450.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  451.         
  452.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  453.     }
  454.     public function getTemplateName()
  455.     {
  456.         return "@Storefront/storefront/element/cms-element-product-description-reviews.html.twig";
  457.     }
  458.     public function getDebugInfo()
  459.     {
  460.         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,);
  461.     }
  462.     public function getSourceContext()
  463.     {
  464.         return new Source("{% block element_product_desciption_reviews %}
  465.     {% set config = element.fieldConfig.elements %}
  466.     {% set product = element.data.product %}
  467.     {% set descriptionTabId = \"description-tab-\" ~ product.id %}
  468.     {% set descriptionTabHref = \"#description-tab-\" ~ product.id ~ \"-pane\" %}
  469.     {% set descriptionTabContent = \"description-tab-\" ~ product.id ~ \"-pane\" %}
  470.     {% set reviewTabId = \"review-tab-\" ~ product.id %}
  471.     {% set reviewTabHref = \"#review-tab-\" ~ product.id ~ \"-pane\" %}
  472.     {% set reviewTabContent = \"review-tab-\" ~ product.id ~ \"-pane\" %}
  473.     {% if element.data.product %}
  474.         <div class=\"product-detail-tabs cms-element-{{ element.type }}{% if config.alignment.value %} has-vertical-alignment{% endif %}\">
  475.             {% if config.alignment.value %}
  476.                 <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 %}\">
  477.             {% endif %}
  478.                 <div class=\"card card-tabs\">
  479.                     {% block element_product_desciption_reviews_tabs_navigation %}
  480.                         <div class=\"cms-card-header card-header product-detail-tab-navigation product-description-reviews-tab-navigation\">
  481.                             {% block element_product_desciption_reviews_tabs_navigation_container %}
  482.                                 <ul class=\"nav nav-tabs product-detail-tab-navigation-list\"
  483.                                     id=\"product-detail-tabs\"
  484.                                     role=\"tablist\">
  485.                                     {% block element_product_desciption_reviews_tabs_navigation_description %}
  486.                                         <li class=\"nav-item\">
  487.                                             <a class=\"nav-link {% if (ratingSuccess != 1) and (ratingSuccess != -1) %}active{% endif %} product-detail-tab-navigation-link description-tab\"
  488.                                                id=\"{{ descriptionTabId }}\"
  489.                                                {{ dataBsToggleAttr }}=\"tab\"
  490.                                                data-offcanvas-tabs=\"true\"
  491.                                                href=\"{{ descriptionTabHref }}\"
  492.                                                role=\"tab\"
  493.                                                aria-controls=\"{{ descriptionTabContent }}\"
  494.                                                aria-selected=\"true\">
  495.                                                 <span>{{ \"detail.tabsDescription\"|trans|sw_sanitize }}</span>
  496.                                                 <span class=\"product-detail-tab-navigation-icon\">
  497.                                                     {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  498.                                                 </span>
  499.                                                 {% if element.data.product.translated.description|length > 0 %}
  500.                                                     <span class=\"product-detail-tab-preview\">
  501.                                                         {{ page.product.translated.description|raw|striptags|sw_sanitize|u.truncate(125, '…') }}
  502.                                                         {# truncate always cuts down the length to 125 characters.
  503.                                                                So it will only shorten the string if it exceeds 125 chars.
  504.                                                                Therefor, only show the button when the length of the text is
  505.                                                                greater or equal then 126 characters. #}
  506.                                                         {% if element.data.product.translated.description|length >= 126 %}
  507.                                                             <span class=\"product-detail-tab-preview-more\">{{ \"detail.tabsPreviewMore\"|trans|sw_sanitize }}</span>
  508.                                                         {% endif %}
  509.                                                         </span>
  510.                                                 {% endif %}
  511.                                             </a>
  512.                                         </li>
  513.                                     {% endblock %}
  514.                                     {% block element_product_desciption_reviews_tabs_navigation_review %}
  515.                                         {% if config('core.listing.showReview') %}
  516.                                             <li class=\"nav-item\">
  517.                                                 <a class=\"nav-link {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %} product-detail-tab-navigation-link review-tab\"
  518.                                                    id=\"{{ reviewTabId }}\"
  519.                                                    {{ dataBsToggleAttr }}=\"tab\"
  520.                                                    data-offcanvas-tabs=\"true\"
  521.                                                    href=\"{{ reviewTabHref }}\"
  522.                                                    role=\"tab\"
  523.                                                    aria-controls=\"{{ reviewTabContent }}\"
  524.                                                    aria-selected=\"true\">
  525.                                                     {{ \"detail.tabsReview\"|trans|sw_sanitize }}
  526.                                                     <span class=\"product-detail-tab-navigation-icon\">
  527.                                                         {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  528.                                                     </span>
  529.                                                 </a>
  530.                                             </li>
  531.                                         {% endif %}
  532.                                     {% endblock %}
  533.                                 </ul>
  534.                             {% endblock %}
  535.                         </div>
  536.                     {% endblock %}
  537.                     {% block element_product_desciption_reviews_tabs_content %}
  538.                         <div class=\"product-detail-tabs-content card-body\">
  539.                             {% block element_product_desciption_reviews_tabs_content_container %}
  540.                                 <div class=\"tab-content\">
  541.                                     {% block element_product_desciption_reviews_tabs_content_description %}
  542.                                         <div class=\"tab-pane fade show {% if (element.data.ratingSuccess != 1) and (element.data.ratingSuccess != -1) %}active{% endif %}\"
  543.                                              id=\"{{ descriptionTabContent }}\"
  544.                                              role=\"tabpanel\"
  545.                                              aria-labelledby=\"{{ descriptionTabId }}\">
  546.                                             {% sw_include '@Storefront/storefront/component/product/description.html.twig' with {
  547.                                                 product: element.data.product
  548.                                             } %}
  549.                                         </div>
  550.                                     {% endblock %}
  551.                                     {% block element_product_desciption_reviews_tabs_content_review %}
  552.                                         {% if config('core.listing.showReview') %}
  553.                                             <div class=\"tab-pane fade show {% if (element.data.ratingSuccess == 1) or (element.data.ratingSuccess == -1) %}active{% endif %}\"
  554.                                                  id=\"{{ reviewTabContent }}\"
  555.                                                  role=\"tabpanel\"
  556.                                                  aria-labelledby=\"{{ reviewTabId }}\">
  557.                                                 {% sw_include '@Storefront/storefront/component/review/review.html.twig' with {
  558.                                                     reviews: element.data.reviews,
  559.                                                     product: element.data.product
  560.                                                 } %}
  561.                                             </div>
  562.                                         {% endif %}
  563.                                     {% endblock %}
  564.                                 </div>
  565.                             {% endblock %}
  566.                         </div>
  567.                     {% endblock %}
  568.                 </div>
  569.             {% if config.verticalAlign.value %}
  570.                 </div>
  571.             {% endif %}
  572.         </div>
  573.     {% endif %}
  574. {% endblock %}
  575. ""@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");
  576.     }
  577. }