var/cache/dev_h470ebe8d8ccd12942d9662afa697ffe9/twig/8d/8d54cdb4e7f24528f0cde00dd66569a9d0a875d266ce5a71d7afebaa7d73cdc6.php line 51

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. /* @FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig */
  16. class __TwigTemplate_d8b0d58367feb7ebf1d1f25c1578a323 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->blocks = [
  25.             'page_product_detail_media' => [$this'block_page_product_detail_media'],
  26.             'fourtwosixAttributeBadges_product_detail_media' => [$this'block_fourtwosixAttributeBadges_product_detail_media'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@fourtwosixAttributeBadges/storefront/page/product-detail/index.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig"));
  41.         $this->parent $this->loadTemplate("@fourtwosixAttributeBadges/storefront/page/product-detail/index.html.twig""@FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_page_product_detail_media($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_media"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_media"));
  56.         // line 4
  57.         echo "\t";
  58.         // line 5
  59.         echo "\t";
  60.         $context["galleryWidthConfig"] = (($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context"zen-product-gallery-slider-width")) ? ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context"zen-product-gallery-slider-width")) : (7));
  61.         // line 6
  62.         echo "\t";
  63.         // line 7
  64.         echo "
  65. \t";
  66.         // line 9
  67.         echo "\t\t<div class=\"col-lg-7 product-detail-media col-xl-";
  68.         echo sw_escape_filter($this->env, ($context["galleryWidthConfig"] ?? null), "html"nulltrue);
  69.         echo "\"> ";
  70.         $this->displayBlock('fourtwosixAttributeBadges_product_detail_media'$context$blocks);
  71.         // line 95
  72.         echo "\t</div>
  73. ";
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.     }
  79.     // line 9
  80.     public function block_fourtwosixAttributeBadges_product_detail_media($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fourtwosixAttributeBadges_product_detail_media"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fourtwosixAttributeBadges_product_detail_media"));
  87.         // line 10
  88.         echo "
  89. \t\t\t";
  90.         // line 12
  91.         $context["listPrice"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse12), "calculatedPrice", [], "any"falsefalsefalse12), "listPrice", [], "any"falsefalsefalse12);
  92.         // line 13
  93.         echo "\t\t\t";
  94.         $context["isListPrice"] = (($context["listPrice"] ?? null) && (sw_get_attribute($this->env$this->source, ($context["listPrice"] ?? null), "percentage", [], "any"falsefalsefalse13) > 0));
  95.         // line 14
  96.         echo "\t\t\t";
  97.         if (($context["isListPrice"] ?? null)) {
  98.             // line 15
  99.             echo "\t\t\t\t<div class=\"product-badges\">
  100. \t\t\t\t\t<div class=\"badge badge-danger badge-discount\">
  101. \t\t\t\t\t\t";
  102.             // line 17
  103.             echo sw_escape_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["page"] ?? null), "product", [], "any"falsefalsefalse17), "calculatedPrice", [], "any"falsefalsefalse17), "listPrice", [], "any"falsefalsefalse17), "percentage", [], "any"falsefalsefalse17), "html"nulltrue);
  104.             echo "
  105. \t\t\t\t\t\t<span>&#37;</span>
  106. \t\t\t\t\t</div>
  107. \t\t\t\t</div>
  108. \t\t\t";
  109.         }
  110.         // line 22
  111.         echo "\t\t\t
  112. \t\t\t";
  113.         // line 23
  114.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse23), "media", [], "any"falsefalsefalse23)) {
  115.             // line 24
  116.             echo "\t\t\t\t
  117. \t\t\t\t";
  118.             // line 25
  119.             $this->loadTemplate("@zenitPlatformStratus/storefront/element/cms-element-image-gallery.html.twig""@FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig"25)->display(twig_array_merge($context, ["mediaItems" =>             // line 26
  120. ($context["mediaItems"] ?? null), "zoom" => true"zoomModal" => true"displayMode" => "contain""gutter" => 5"minHeight" => "430px""navigationArrows" => "inside""navigationDots" => "inside""galleryPosition" => "left""isProduct" => true"fallbackImageTitle" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 36
  121. ($context["page"] ?? null), "product", [], "any"falsefalsefalse36), "translated", [], "any"falsefalsefalse36), "name", [], "any"falsefalsefalse36), "startIndexThumbnails" => 1"startIndexSlider" => 1"keepAspectRatioOnZoom" => false]));
  122.             // line 41
  123.             echo "\t\t\t";
  124.         }
  125.         // line 42
  126.         echo "
  127. \t\t\t<div class=\"d-flex justify-content-center fourtwosix-badges\">
  128. \t\t\t\t";
  129.         // line 44
  130.         $context["badgesMediaIds"] = [];
  131.         // line 45
  132.         echo "\t\t\t\t";
  133.         $context["propertiesBadge"] = [];
  134.         // line 46
  135.         echo "\t\t\t\t";
  136.         $context["configDefaultMedia"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"fourtwosixAttributeBadges.config.defaultMedia");
  137.         // line 47
  138.         echo "
  139. \t\t\t\t";
  140.         // line 49
  141.         echo "\t\t\t\t";
  142.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse49), "sortedProperties", [], "any"falsefalsefalse49) != null)) {
  143.             // line 50
  144.             echo "\t\t\t\t\t";
  145.             $context['_parent'] = $context;
  146.             $context['_seq'] = twig_ensure_traversable($this->extensions['Shopware\Core\Framework\Adapter\Twig\SecurityExtension']->filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse50), "sortedProperties", [], "any"falsefalsefalse50), function ($__x__) use ($context$macros) { $context["x"] = $__x__; return (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["x"], "translated", [], "any"falsefalsefalse50), "customFields", [], "any"falsefalsefalse50), "attribute_badges", [], "any"falsefalsefalse50) == true); }));
  147.             foreach ($context['_seq'] as $context["_key"] => $context["x"]) {
  148.                 // line 51
  149.                 $context["propertiesBadge"] = twig_array_merge(($context["propertiesBadge"] ?? null), sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["x"], "options", [], "any"falsefalsefalse51), "elements", [], "any"falsefalsefalse51));
  150.                 // line 52
  151.                 echo "\t\t\t\t\t";
  152.             }
  153.             $_parent $context['_parent'];
  154.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['x'], $context['_parent'], $context['loop']);
  155.             $context array_intersect_key($context$_parent) + $_parent;
  156.             // line 53
  157.             echo "
  158. \t\t\t\t\t";
  159.             // line 54
  160.             if (($context["propertiesBadge"] ?? null)) {
  161.                 // line 55
  162.                 echo "\t\t\t\t\t\t";
  163.                 $context['_parent'] = $context;
  164.                 $context['_seq'] = twig_ensure_traversable(($context["propertiesBadge"] ?? null));
  165.                 foreach ($context['_seq'] as $context["_key"] => $context["badge"]) {
  166.                     // line 56
  167.                     echo "\t\t\t\t\t\t\t";
  168.                     if ((sw_get_attribute($this->env$this->source$context["badge"], "mediaId", [], "any"falsefalsefalse56) != null)) {
  169.                         // line 57
  170.                         echo "\t\t\t\t\t\t\t\t";
  171.                         $context["badgesMediaIds"] = twig_array_merge(($context["badgesMediaIds"] ?? null), [=> sw_get_attribute($this->env$this->source$context["badge"], "mediaId", [], "any"falsefalsefalse57)]);
  172.                         // line 58
  173.                         echo "\t\t\t\t\t\t\t";
  174.                     } else {
  175.                         // line 59
  176.                         echo "\t\t\t\t\t\t\t\t";
  177.                         $context["badgesMediaIds"] = twig_array_merge(($context["badgesMediaIds"] ?? null), [=> ($context["configDefaultMedia"] ?? null)]);
  178.                         // line 60
  179.                         echo "\t\t\t\t\t\t\t";
  180.                     }
  181.                     // line 61
  182.                     echo "\t\t\t\t\t\t";
  183.                 }
  184.                 $_parent $context['_parent'];
  185.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['badge'], $context['_parent'], $context['loop']);
  186.                 $context array_intersect_key($context$_parent) + $_parent;
  187.                 // line 62
  188.                 echo "
  189. \t\t\t\t\t\t";
  190.                 // line 63
  191.                 $context["mediaCollection"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\MediaExtension']->searchMedia(($context["badgesMediaIds"] ?? null), sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "context", [], "any"falsefalsefalse63));
  192.                 // line 64
  193.                 echo "
  194. \t\t\t\t\t\t";
  195.                 // line 65
  196.                 $context['_parent'] = $context;
  197.                 $context['_seq'] = twig_ensure_traversable(twig_slice($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\SecurityExtension']->sort(($context["propertiesBadge"] ?? null), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (sw_get_attribute($this->env$this->source, ($context["a"] ?? null), "position", [], "any"falsefalsefalse65) <=> sw_get_attribute($this->env$this->source, ($context["b"] ?? null), "position", [], "any"falsefalsefalse65)); }), 08));
  198.                 $context['loop'] = [
  199.                   'parent' => $context['_parent'],
  200.                   'index0' => 0,
  201.                   'index'  => 1,
  202.                   'first'  => true,
  203.                 ];
  204.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  205.                     $length count($context['_seq']);
  206.                     $context['loop']['revindex0'] = $length 1;
  207.                     $context['loop']['revindex'] = $length;
  208.                     $context['loop']['length'] = $length;
  209.                     $context['loop']['last'] = === $length;
  210.                 }
  211.                 foreach ($context['_seq'] as $context["_key"] => $context["badge"]) {
  212.                     // line 66
  213.                     echo "\t\t\t\t\t\t\t";
  214.                     if ((sw_get_attribute($this->env$this->source$context["badge"], "mediaId", [], "any"falsefalsefalse66) != null)) {
  215.                         // line 67
  216.                         echo "\t\t\t\t\t\t\t\t";
  217.                         $context["badgeMedia"] = sw_get_attribute($this->env$this->source, ($context["mediaCollection"] ?? null), "get", [=> sw_get_attribute($this->env$this->source$context["badge"], "mediaId", [], "any"falsefalsefalse67)], "method"falsefalsefalse67);
  218.                         // line 68
  219.                         echo "
  220. \t\t\t\t\t\t\t\t";
  221.                         // line 69
  222.                         ((function () use ($context$blocks) {
  223.                             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  224.                             $includeTemplate $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
  225.                             return $this->loadTemplate($includeTemplate ?? null"@FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig"69);
  226.                         })())->display(twig_array_merge($context, ["media" =>                         // line 70
  227. ($context["badgeMedia"] ?? null), "attributes" => ["class" => "img-fluid badgeImg""data-toggle" => "tooltip""title" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,                         // line 74
  228. $context["badge"], "group", [], "any"falsefalsefalse74), "translated", [], "any"falsefalsefalse74), "name", [], "any"falsefalsefalse74) . ": ") . sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse74), "name", [], "any"falsefalsefalse74))], "name" => "product-detail-badge-thumbnails"]));
  229.                         // line 77
  230.                         echo "\t\t\t\t\t\t\t";
  231.                     } elseif (sw_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["badge"], "group", [], "any"falsefalsefalse77), "translated", [], "any"falsefalsefalse77), "customFields", [], "any"falsefalsefalse77), "fts_property_group_custom_graphics_option", [], "any"falsefalsefalse77)) {
  232.                         // line 78
  233.                         echo "\t\t\t\t\t\t\t\t<div class=\"dynamic-badge-box arrow-badge badgeImg\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
  234.                         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "group", [], "any"falsefalsefalse78), "translated", [], "any"falsefalsefalse78), "name", [], "any"falsefalsefalse78), "html"nulltrue);
  235.                         echo ": ";
  236.                         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse78), "name", [], "any"falsefalsefalse78), "html"nulltrue);
  237.                         echo "\">
  238. \t\t\t\t\t\t\t\t\t<div class=\"option-label\">
  239. \t\t\t\t\t\t\t\t\t\t";
  240.                         // line 80
  241.                         echo sw_escape_filter($this->env, (((twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse80), "name", [], "any"falsefalsefalse80)) > 5)) ? ((twig_slice($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse80), "name", [], "any"falsefalsefalse80), 03) . "...")) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse80), "name", [], "any"falsefalsefalse80))), "html"nulltrue);
  242.                         echo "
  243. \t\t\t\t\t\t\t\t\t</div>
  244. \t\t\t\t\t\t\t\t</div>
  245. \t\t\t\t\t\t\t";
  246.                     } else {
  247.                         // line 84
  248.                         echo "\t\t\t\t\t\t\t\t<div class=\"dynamic-badge-box badgeImg\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
  249.                         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "group", [], "any"falsefalsefalse84), "translated", [], "any"falsefalsefalse84), "name", [], "any"falsefalsefalse84), "html"nulltrue);
  250.                         echo ": ";
  251.                         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse84), "name", [], "any"falsefalsefalse84), "html"nulltrue);
  252.                         echo "\">
  253. \t\t\t\t\t\t\t\t\t<div class=\"option-label\">
  254. \t\t\t\t\t\t\t\t\t\t";
  255.                         // line 86
  256.                         echo sw_escape_filter($this->env, (((twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse86), "name", [], "any"falsefalsefalse86)) > 5)) ? ((twig_slice($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse86), "name", [], "any"falsefalsefalse86), 03) . "...")) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["badge"], "translated", [], "any"falsefalsefalse86), "name", [], "any"falsefalsefalse86))), "html"nulltrue);
  257.                         echo "
  258. \t\t\t\t\t\t\t\t\t</div>
  259. \t\t\t\t\t\t\t\t</div>
  260. \t\t\t\t\t\t\t";
  261.                     }
  262.                     // line 90
  263.                     echo "\t\t\t\t\t\t";
  264.                     ++$context['loop']['index0'];
  265.                     ++$context['loop']['index'];
  266.                     $context['loop']['first'] = false;
  267.                     if (isset($context['loop']['length'])) {
  268.                         --$context['loop']['revindex0'];
  269.                         --$context['loop']['revindex'];
  270.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  271.                     }
  272.                 }
  273.                 $_parent $context['_parent'];
  274.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['badge'], $context['_parent'], $context['loop']);
  275.                 $context array_intersect_key($context$_parent) + $_parent;
  276.                 // line 91
  277.                 echo "\t\t\t\t\t";
  278.             }
  279.             // line 92
  280.             echo "\t\t\t\t";
  281.         }
  282.         // line 93
  283.         echo "\t\t\t</div>
  284. \t\t";
  285.         
  286.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  287.         
  288.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  289.     }
  290.     public function getTemplateName()
  291.     {
  292.         return "@FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig";
  293.     }
  294.     public function isTraitable()
  295.     {
  296.         return false;
  297.     }
  298.     public function getDebugInfo()
  299.     {
  300.         return array (  303 => 93,  300 => 92,  297 => 91,  283 => 90,  276 => 86,  268 => 84,  261 => 80,  253 => 78,  250 => 77,  248 => 74,  247 => 70,  240 => 69,  237 => 68,  234 => 67,  231 => 66,  214 => 65,  211 => 64,  209 => 63,  206 => 62,  200 => 61,  197 => 60,  194 => 59,  191 => 58,  188 => 57,  185 => 56,  180 => 55,  178 => 54,  175 => 53,  169 => 52,  167 => 51,  162 => 50,  159 => 49,  156 => 47,  153 => 46,  150 => 45,  148 => 44,  144 => 42,  141 => 41,  139 => 36,  138 => 26,  137 => 25,  134 => 24,  132 => 23,  129 => 22,  121 => 17,  117 => 15,  114 => 14,  111 => 13,  109 => 12,  105 => 10,  95 => 9,  84 => 95,  79 => 9,  76 => 7,  74 => 6,  71 => 5,  69 => 4,  59 => 3,  36 => 2,);
  301.     }
  302.     public function getSourceContext()
  303.     {
  304.         return new Source("{% sw_extends '@fourtwosixAttributeBadges/storefront/page/product-detail/index.html.twig' %}
  305. {% block page_product_detail_media %}
  306. \t{# @fourtwosix-edit: FV added Zenit stratus config for PDP #}
  307. \t{% set galleryWidthConfig = theme_config('zen-product-gallery-slider-width') ?: 7 %}
  308. \t{# @fourtwosix-edit: end  #}
  309. \t{# @fourtwosix-edit: FV This is new col-xl-{{ galleryWidthConfig }} #}
  310. \t\t<div class=\"col-lg-7 product-detail-media col-xl-{{ galleryWidthConfig }}\"> {% block fourtwosixAttributeBadges_product_detail_media %}
  311. \t\t\t{% set listPrice = page.product.calculatedPrice.listPrice %}
  312. \t\t\t{% set isListPrice = listPrice and listPrice.percentage > 0 %}
  313. \t\t\t{% if isListPrice %}
  314. \t\t\t\t<div class=\"product-badges\">
  315. \t\t\t\t\t<div class=\"badge badge-danger badge-discount\">
  316. \t\t\t\t\t\t{{ page.product.calculatedPrice.listPrice.percentage }}
  317. \t\t\t\t\t\t<span>&#37;</span>
  318. \t\t\t\t\t</div>
  319. \t\t\t\t</div>
  320. \t\t\t{% endif %}
  321. \t\t\t
  322. \t\t\t{% if page.product.media %}
  323. \t\t\t\t
  324. \t\t\t\t{% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  325. \t\t\t\t\t'mediaItems': mediaItems,
  326. \t\t\t\t\t'zoom': true,
  327. \t\t\t\t\t'zoomModal': true,
  328. \t\t\t\t\t'displayMode': 'contain',
  329. \t\t\t\t\t'gutter': 5,
  330. \t\t\t\t\t'minHeight': '430px',
  331. \t\t\t\t\t'navigationArrows': 'inside',
  332. \t\t\t\t\t'navigationDots': 'inside',
  333. \t\t\t\t\t'galleryPosition': 'left',
  334. \t\t\t\t\t'isProduct': true,
  335. \t\t\t\t\t'fallbackImageTitle': page.product.translated.name,
  336. \t\t\t\t\t'startIndexThumbnails': 1,
  337. \t\t\t\t\t'startIndexSlider': 1,
  338. \t\t\t\t\t'keepAspectRatioOnZoom': false
  339. \t\t\t\t} %}
  340. \t\t\t{% endif %}
  341. \t\t\t<div class=\"d-flex justify-content-center fourtwosix-badges\">
  342. \t\t\t\t{% set badgesMediaIds = [] %}
  343. \t\t\t\t{% set propertiesBadge = [] %}
  344. \t\t\t\t{% set configDefaultMedia = config('fourtwosixAttributeBadges.config.defaultMedia') %}
  345. \t\t\t\t{# @fourtwosix-edit: RD addedd triangles badge }} #}
  346. \t\t\t\t{% if page.product.sortedProperties != null %}
  347. \t\t\t\t\t{% for x in page.product.sortedProperties|filter(x => x.translated.customFields.attribute_badges == true) -%}
  348. \t\t\t\t\t\t{% set propertiesBadge = propertiesBadge|merge(x.options.elements) %}
  349. \t\t\t\t\t{% endfor %}
  350. \t\t\t\t\t{% if propertiesBadge %}
  351. \t\t\t\t\t\t{% for badge in propertiesBadge %}
  352. \t\t\t\t\t\t\t{% if badge.mediaId != null %}
  353. \t\t\t\t\t\t\t\t{% set badgesMediaIds = badgesMediaIds|merge([badge.mediaId]) %}
  354. \t\t\t\t\t\t\t{% else %}
  355. \t\t\t\t\t\t\t\t{% set badgesMediaIds = badgesMediaIds|merge([configDefaultMedia]) %}
  356. \t\t\t\t\t\t\t{% endif %}
  357. \t\t\t\t\t\t{% endfor %}
  358. \t\t\t\t\t\t{% set mediaCollection = searchMedia(badgesMediaIds, context.context) %}
  359. \t\t\t\t\t\t{% for badge in propertiesBadge|sort((a, b) => a.position <=> b.position)|slice(0,8) %}
  360. \t\t\t\t\t\t\t{% if badge.mediaId != null %}
  361. \t\t\t\t\t\t\t\t{% set badgeMedia = mediaCollection.get(badge.mediaId) %}
  362. \t\t\t\t\t\t\t\t{% sw_thumbnails 'product-detail-badge-thumbnails' with {
  363. \t\t\t\t\t\t\t\t\tmedia: badgeMedia,
  364. \t\t\t\t\t\t\t\t\tattributes: {
  365. \t\t\t\t\t\t\t\t\t\t'class': 'img-fluid badgeImg',
  366. \t\t\t\t\t\t\t\t\t\t'data-toggle' : 'tooltip',
  367. \t\t\t\t\t\t\t\t\t\t'title': badge.group.translated.name ~ ': ' ~ badge.translated.name
  368. \t\t\t\t\t\t\t\t\t}
  369. \t\t\t\t\t\t\t\t} %}
  370. \t\t\t\t\t\t\t{% elseif badge.group.translated.customFields.fts_property_group_custom_graphics_option %}
  371. \t\t\t\t\t\t\t\t<div class=\"dynamic-badge-box arrow-badge badgeImg\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"{{ badge.group.translated.name }}: {{ badge.translated.name }}\">
  372. \t\t\t\t\t\t\t\t\t<div class=\"option-label\">
  373. \t\t\t\t\t\t\t\t\t\t{{ badge.translated.name|length > 5 ? badge.translated.name|slice(0, 3) ~ '...' : badge.translated.name }}
  374. \t\t\t\t\t\t\t\t\t</div>
  375. \t\t\t\t\t\t\t\t</div>
  376. \t\t\t\t\t\t\t{% else %}
  377. \t\t\t\t\t\t\t\t<div class=\"dynamic-badge-box badgeImg\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"{{ badge.group.translated.name }}: {{ badge.translated.name }}\">
  378. \t\t\t\t\t\t\t\t\t<div class=\"option-label\">
  379. \t\t\t\t\t\t\t\t\t\t{{ badge.translated.name|length > 5 ? badge.translated.name|slice(0, 3) ~ '...' : badge.translated.name }}
  380. \t\t\t\t\t\t\t\t\t</div>
  381. \t\t\t\t\t\t\t\t</div>
  382. \t\t\t\t\t\t\t{% endif %}
  383. \t\t\t\t\t\t{% endfor %}
  384. \t\t\t\t\t{% endif %}
  385. \t\t\t\t{% endif %}
  386. \t\t\t</div>
  387. \t\t{% endblock %}
  388. \t</div>
  389. {% endblock %}
  390. ""@FourtwosixThemeExtension/storefront/page/product-detail/index.html.twig""/var/www/dev.artecon.426.agency/custom/plugins/FourtwosixThemeExtension/src/Resources/views/storefront/page/product-detail/index.html.twig");
  391.     }
  392. }