var/cache/dev/twig/c7/c75bb363cfeb7e92a79b69e1dcd42f7d.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* product/product-list.html.twig */
  14. class __TwigTemplate_71615c07ac2473f1ac469b0896108918 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layouts/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/product-list.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/product-list.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout.html.twig""product/product-list.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "
  57.     ";
  58.         // line 5
  59.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [=> (isset($context["pageTitle"]) || array_key_exists("pageTitle"$context) ? $context["pageTitle"] : (function () { throw new RuntimeError('Variable "pageTitle" does not exist.'5$this->source); })())], "method"falsefalsetrue5);
  60.         // line 6
  61.         echo "    ";
  62.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [=> (isset($context["pageDescription"]) || array_key_exists("pageDescription"$context) ? $context["pageDescription"] : (function () { throw new RuntimeError('Variable "pageDescription" does not exist.'6$this->source); })())], "method"falsefalsetrue6);
  63.         // line 7
  64.         echo "
  65.     <main role=\"main\" class=\"products mt-100 pt-0 pt-lg-100\">
  66.         ";
  67.         // line 9
  68.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuController::breadcrumbsAction"));
  69.         echo "
  70.         <div class=\"pb-20 mx-10 mx-md-40 mx-lg-70 \">
  71.             <div class=\"row gx-0 gx-lg-70\">
  72.                 <h1 class=\"d-block d-lg-none mb-0\">";
  73.         // line 12
  74.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["categorydo"]) || array_key_exists("categorydo"$context) ? $context["categorydo"] : (function () { throw new RuntimeError('Variable "categorydo" does not exist.'12$this->source); })()), "name", [], "any"falsefalsetrue12), 12$this->source), "html"nulltrue);
  75.         echo "</h1>
  76.                 <div class=\"sidebar\">
  77.                     <div class=\"sticky-lg-top pt-20\">
  78.                         <div class=\"pb-0 pb-lg-20 mb-10\">
  79.                             <form class=\"form-inline d-flex border border-black\" role=\"search\">
  80.                                 <input class=\"form-control me-5 border-0 search-input w-100 ps-10\" id=\"fast-search\" type=\"search\" placeholder=\"";
  81.         // line 17
  82.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search product code"), "html"nulltrue);
  83.         echo "\" aria-label=\"Search\">
  84.                                 <button class=\"btn border-0 py-10 ps-5 pe-10 align-items-center fast-search-submit d-none\" type=\"submit\"><i class=\"fa-sharp fa-solid fa-magnifying-glass\"></i></button>
  85.                             </form>
  86.                         </div>
  87.                         <style>
  88.                             #fast-search { margin-right:0!important; }
  89.                             #fast-search::placeholder { font-size: 12px!important; }
  90.                             #fast-search::-webkit-input-placeholder { font-size: 12px!important; }
  91.                             #fast-search::-moz-placeholder { font-size: 12px!important; }
  92.                         </style>
  93.                         <!-- start accordion -->
  94.                         <div class=\"accordion\" id=\"mobileAccordion\">
  95.                             <div class=\"accordion-item rounded-0 border-0\">
  96.                                 <div class=\"accordion-header\">
  97.                                     <button class=\"accordion-button rounded-0 bg-transparent shadow-none px-0 collapsed d-flex d-lg-none fs-25 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#filtersAccordion\" aria-expanded=\"false\" aria-controls=\"filtersAccordion\">
  98.                                         ";
  99.         // line 32
  100.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("FILTERS"), "html"nulltrue);
  101.         echo "
  102.                                     </button>
  103.                                 </div>
  104.                                 <div class=\"pb-0 pb-lg-20 mb-10 \" id=\"filtersAccordion\">
  105.                                     <form id=\"js_filterfield\">
  106.                                         ";
  107.         // line 37
  108.         if (array_key_exists("term"$context)) {
  109.             // line 38
  110.             echo "                                        <input type=\"hidden\" name=\"term\" value=\"";
  111.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["term"]) || array_key_exists("term"$context) ? $context["term"] : (function () { throw new RuntimeError('Variable "term" does not exist.'38$this->source); })()), 38$this->source), "html"nulltrue);
  112.             echo "\"/>
  113.                                         ";
  114.         }
  115.         // line 40
  116.         echo "                                        ";
  117.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["filterDefinition"]) || array_key_exists("filterDefinition"$context) ? $context["filterDefinition"] : (function () { throw new RuntimeError('Variable "filterDefinition" does not exist.'40$this->source); })()), "filters", [], "any"falsefalsetrue40)) > 0)) {
  118.             // line 41
  119.             echo "                                            ";
  120.             $context['_parent'] = $context;
  121.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["filterDefinition"]) || array_key_exists("filterDefinition"$context) ? $context["filterDefinition"] : (function () { throw new RuntimeError('Variable "filterDefinition" does not exist.'41$this->source); })()), "filters", [], "any"falsefalsetrue41));
  122.             foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
  123.                 // line 42
  124.                 echo "                                                ";
  125.                 $context["filterMarkup"] = twig_get_attribute($this->env$this->source, (isset($context["filterService"]) || array_key_exists("filterService"$context) ? $context["filterService"] : (function () { throw new RuntimeError('Variable "filterService" does not exist.'42$this->source); })()), "filterFrontend", [=> $context["filter"], => (isset($context["productListing"]) || array_key_exists("productListing"$context) ? $context["productListing"] : (function () { throw new RuntimeError('Variable "productListing" does not exist.'42$this->source); })()), => (isset($context["currentFilter"]) || array_key_exists("currentFilter"$context) ? $context["currentFilter"] : (function () { throw new RuntimeError('Variable "currentFilter" does not exist.'42$this->source); })())], "method"falsefalsetrue42);
  126.                 // line 43
  127.                 echo "                                                ";
  128.                 echo $this->sandbox->ensureToStringAllowed((isset($context["filterMarkup"]) || array_key_exists("filterMarkup"$context) ? $context["filterMarkup"] : (function () { throw new RuntimeError('Variable "filterMarkup" does not exist.'43$this->source); })()), 43$this->source);
  129.                 echo "
  130.                                             ";
  131.             }
  132.             $_parent $context['_parent'];
  133.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']);
  134.             $context array_intersect_key($context$_parent) + $_parent;
  135.             // line 45
  136.             echo "                                        ";
  137.         }
  138.         // line 46
  139.         echo "                                    </form>
  140.                                 </div>
  141.                             </div>
  142.                         </div>
  143.                         <!-- end accordion -->
  144.                     </div>
  145.                 </div>
  146.                 <div class=\"col-12 col-lg pt-20\">
  147.                     <h1 class=\"d-none d-lg-block\">";
  148.         // line 54
  149.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["categorydo"]) || array_key_exists("categorydo"$context) ? $context["categorydo"] : (function () { throw new RuntimeError('Variable "categorydo" does not exist.'54$this->source); })()), "name", [], "any"falsefalsetrue54), 54$this->source), "html"nulltrue);
  150.         echo "</h1>
  151.                     <div class=\"category-description mt-40\">";
  152.         // line 56
  153.         echo $this->sandbox->ensureToStringAllowed((isset($context["intro"]) || array_key_exists("intro"$context) ? $context["intro"] : (function () { throw new RuntimeError('Variable "intro" does not exist.'56$this->source); })()), 56$this->source);
  154.         echo "</div>
  155.                     <div class=\"filters-active d-flex gap-10\"><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">poltroncina <i class=\"fa-sharp fa-solid fa-xmark\"></i></a><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">moderno <i class=\"fa-sharp fa-solid fa-xmark\"></i></a></div>
  156.                     
  157.                     <div class=\"num-products my-10 d-none\">";
  158.         // line 59
  159.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["results"]) || array_key_exists("results"$context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.'59$this->source); })()), "count", [], "method"falsefalsetrue59), 59$this->source), "html"nulltrue);
  160.         echo " ";
  161.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("PRODUCTS"), "html"nulltrue);
  162.         echo "</div>
  163.                     <div class=\"row gx-20\">
  164.                         ";
  165.         // line 61
  166.         $context['_parent'] = $context;
  167.         $context['_seq'] = twig_ensure_traversable((isset($context["results"]) || array_key_exists("results"$context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.'61$this->source); })()));
  168.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  169.             // line 62
  170.             echo "                            <div class=\"col-6 col-lg-4 col-xxl-3 col-xxl-5x single-product text-center position-relative mb-60\" data-sku=\"";
  171.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["product"], "codice", [], "any"falsefalsetrue62), 62$this->source)), "html"nulltrue);
  172.             echo "\">
  173.                                 <a href=\"";
  174.             // line 63
  175.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "url", [], "any"falsefalsetrue63), 0, [], "array"falsefalsetrue63), "slug", [], "any"falsefalsetrue63), 63$this->source), "html"nulltrue);
  176.             echo "\" class=\"product text-center d-block my-10\">
  177.                                     <div class=\"image p-15\">
  178.                                         ";
  179.             // line 65
  180.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["product"], "fotoPricipale", [], "any"falsefalsetrue65))) {
  181.                 // line 66
  182.                 echo "                                            ";
  183.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "fotoPricipale", [], "any"falsefalsetrue66), "getThumbnail", [=> "product_listing"], "method"falsefalsetrue66), "getHtml", [], "method"falsefalsetrue66), 66$this->source);
  184.                 echo "
  185.                                         ";
  186.             } else {
  187.                 // line 68
  188.                 echo "                                            <img src=\"/busetto-placeholder.jpg\" alt=\"\" >
  189.                                         ";
  190.             }
  191.             // line 70
  192.             echo "
  193.                                     </div>
  194.                                 </a>
  195.                                 <div class=\"d-flex justify-content-center align-items-center gap-20\">
  196.                                 <span>";
  197.             // line 74
  198.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["product"], "nome", [], "any"falsefalsetrue74), 74$this->source), "html"nulltrue);
  199.             echo "</span>
  200.                                 ";
  201.             // line 75
  202.             if (twig_get_attribute($this->env$this->source$context["product"], "url3d", [], "any"falsefalsetrue75)) {
  203.                 // line 76
  204.                 echo "                                <div class=\"banner3d-container\">
  205.                                     <a href=\"";
  206.                 // line 77
  207.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["product"], "url3d", [], "any"falsefalsetrue77), 77$this->source), "html"nulltrue);
  208.                 echo "\" target=\"_blank\" class=\"banner3d\"></a>
  209.                                 </div>
  210.                                 ";
  211.             }
  212.             // line 80
  213.             echo "                                </div>
  214.                             </div>
  215.                         ";
  216.         }
  217.         $_parent $context['_parent'];
  218.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  219.         $context array_intersect_key($context$_parent) + $_parent;
  220.         // line 83
  221.         echo "                    </div>
  222.                     <div class=\"category-description mt-40\">";
  223.         // line 84
  224.         echo $this->sandbox->ensureToStringAllowed((isset($context["description"]) || array_key_exists("description"$context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.'84$this->source); })()), 84$this->source);
  225.         echo "</div>
  226.                 </div>
  227.             </div>
  228.         </div>
  229.     </main>
  230.     ";
  231.         // line 90
  232.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_inline_script')->getCallable()(), "appendScript", [=> "
  233.     \$('#js_filterfield .custom-checkbox input, #js_filterfield .custom-radio input').on('change', function() {
  234.         \$('#js_filterfield').submit();
  235.     });
  236.     function createActiveFilters(){
  237.         var sPageURL = decodeURIComponent(window.location.search.substring(1));
  238.         var array =[]
  239.         var sURLVariables = sPageURL.split('&');
  240.         \$('.filters-active').empty();
  241.         for (var i = 0; i < sURLVariables.length; i++) {
  242.             var sParameterName = sURLVariables[i].split('=');
  243.             createFilter(sParameterName[0], sParameterName[1]);
  244.         }
  245.     }
  246.     function createFilter(type, value){
  247.         var type = type.replace('[]', '');
  248.         var id = type+value;
  249.         if(\$('#'+id).length){
  250.             var e = \$('<a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\" data-filterid=\"'+id+'\">'+ \$('label[for=\"'+id+'\"').html() +' <i class=\"fa-sharp fa-solid fa-xmark\"></i></a>');
  251.             \$('.filters-active').append(e);
  252.         }
  253.     }
  254.     \$('body').on('click', '.filters-active > a', function(){
  255.         \$('#'+\$(this).attr('data-filterid')).prop('checked', false);
  256.         \$('#js_filterfield').submit();
  257.     });
  258.     createActiveFilters();
  259.     \$('.readMore').on('click', function(){
  260.         if(\$(this).hasClass('active')){
  261.             \$(this).removeClass('active');
  262.             \$(this).find('.open').css('display','block');
  263.             \$(this).find('.close').css('display','none');
  264.             \$('.moreText').slideUp();
  265.         } else {
  266.             \$(this).addClass('active');
  267.             \$(this).find('.open').css('display','none');
  268.             \$(this).find('.close').css('display','block');
  269.             \$('.moreText').slideDown();
  270.         }
  271.     });
  272.     "], "method"falsefalsetrue90);
  273.         // line 138
  274.         echo "
  275. ";
  276.         
  277.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  278.         
  279.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  280.     }
  281.     public function getTemplateName()
  282.     {
  283.         return "product/product-list.html.twig";
  284.     }
  285.     public function isTraitable()
  286.     {
  287.         return false;
  288.     }
  289.     public function getDebugInfo()
  290.     {
  291.         return array (  297 => 138,  248 => 90,  239 => 84,  236 => 83,  228 => 80,  222 => 77,  219 => 76,  217 => 75,  213 => 74,  207 => 70,  203 => 68,  197 => 66,  195 => 65,  190 => 63,  185 => 62,  181 => 61,  174 => 59,  168 => 56,  163 => 54,  153 => 46,  150 => 45,  141 => 43,  138 => 42,  133 => 41,  130 => 40,  124 => 38,  122 => 37,  114 => 32,  96 => 17,  88 => 12,  82 => 9,  78 => 7,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  292.     }
  293.     public function getSourceContext()
  294.     {
  295.         return new Source("{% extends 'layouts/layout.html.twig' %}
  296. {% block content %}
  297.     {% do pimcore_head_title().set(pageTitle) %}
  298.     {% do pimcore_head_meta().setDescription(pageDescription) %}
  299.     <main role=\"main\" class=\"products mt-100 pt-0 pt-lg-100\">
  300.         {{ render(controller('App\\\\Controller\\\\MenuController::breadcrumbsAction')) }}
  301.         <div class=\"pb-20 mx-10 mx-md-40 mx-lg-70 \">
  302.             <div class=\"row gx-0 gx-lg-70\">
  303.                 <h1 class=\"d-block d-lg-none mb-0\">{{ categorydo.name }}</h1>
  304.                 <div class=\"sidebar\">
  305.                     <div class=\"sticky-lg-top pt-20\">
  306.                         <div class=\"pb-0 pb-lg-20 mb-10\">
  307.                             <form class=\"form-inline d-flex border border-black\" role=\"search\">
  308.                                 <input class=\"form-control me-5 border-0 search-input w-100 ps-10\" id=\"fast-search\" type=\"search\" placeholder=\"{{ 'Search product code'|trans }}\" aria-label=\"Search\">
  309.                                 <button class=\"btn border-0 py-10 ps-5 pe-10 align-items-center fast-search-submit d-none\" type=\"submit\"><i class=\"fa-sharp fa-solid fa-magnifying-glass\"></i></button>
  310.                             </form>
  311.                         </div>
  312.                         <style>
  313.                             #fast-search { margin-right:0!important; }
  314.                             #fast-search::placeholder { font-size: 12px!important; }
  315.                             #fast-search::-webkit-input-placeholder { font-size: 12px!important; }
  316.                             #fast-search::-moz-placeholder { font-size: 12px!important; }
  317.                         </style>
  318.                         <!-- start accordion -->
  319.                         <div class=\"accordion\" id=\"mobileAccordion\">
  320.                             <div class=\"accordion-item rounded-0 border-0\">
  321.                                 <div class=\"accordion-header\">
  322.                                     <button class=\"accordion-button rounded-0 bg-transparent shadow-none px-0 collapsed d-flex d-lg-none fs-25 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#filtersAccordion\" aria-expanded=\"false\" aria-controls=\"filtersAccordion\">
  323.                                         {{ 'FILTERS'|trans }}
  324.                                     </button>
  325.                                 </div>
  326.                                 <div class=\"pb-0 pb-lg-20 mb-10 \" id=\"filtersAccordion\">
  327.                                     <form id=\"js_filterfield\">
  328.                                         {% if term is defined %}
  329.                                         <input type=\"hidden\" name=\"term\" value=\"{{ term }}\"/>
  330.                                         {% endif %}
  331.                                         {% if(filterDefinition.filters|length > 0) %}
  332.                                             {% for filter in filterDefinition.filters %}
  333.                                                 {% set filterMarkup = filterService.filterFrontend(filter, productListing, currentFilter) %}
  334.                                                 {{ filterMarkup | raw  }}
  335.                                             {% endfor %}
  336.                                         {% endif %}
  337.                                     </form>
  338.                                 </div>
  339.                             </div>
  340.                         </div>
  341.                         <!-- end accordion -->
  342.                     </div>
  343.                 </div>
  344.                 <div class=\"col-12 col-lg pt-20\">
  345.                     <h1 class=\"d-none d-lg-block\">{{ categorydo.name }}</h1>
  346.                     <div class=\"category-description mt-40\">{{ intro|raw }}</div>
  347.                     <div class=\"filters-active d-flex gap-10\"><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">poltroncina <i class=\"fa-sharp fa-solid fa-xmark\"></i></a><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">moderno <i class=\"fa-sharp fa-solid fa-xmark\"></i></a></div>
  348.                     
  349.                     <div class=\"num-products my-10 d-none\">{{  results.count() }} {{ 'PRODUCTS'|trans }}</div>
  350.                     <div class=\"row gx-20\">
  351.                         {% for product in results %}
  352.                             <div class=\"col-6 col-lg-4 col-xxl-3 col-xxl-5x single-product text-center position-relative mb-60\" data-sku=\"{{ product.codice|lower }}\">
  353.                                 <a href=\"{{ product.url[0].slug }}\" class=\"product text-center d-block my-10\">
  354.                                     <div class=\"image p-15\">
  355.                                         {% if product.fotoPricipale is not empty %}
  356.                                             {{ product.fotoPricipale.getThumbnail(\"product_listing\").getHtml()|raw }}
  357.                                         {% else %}
  358.                                             <img src=\"/busetto-placeholder.jpg\" alt=\"\" >
  359.                                         {% endif %}
  360.                                     </div>
  361.                                 </a>
  362.                                 <div class=\"d-flex justify-content-center align-items-center gap-20\">
  363.                                 <span>{{ product.nome }}</span>
  364.                                 {% if product.url3d %}
  365.                                 <div class=\"banner3d-container\">
  366.                                     <a href=\"{{ product.url3d }}\" target=\"_blank\" class=\"banner3d\"></a>
  367.                                 </div>
  368.                                 {% endif %}
  369.                                 </div>
  370.                             </div>
  371.                         {% endfor %}
  372.                     </div>
  373.                     <div class=\"category-description mt-40\">{{ description|raw }}</div>
  374.                 </div>
  375.             </div>
  376.         </div>
  377.     </main>
  378.     {% do pimcore_inline_script().appendScript(\"
  379.     \$('#js_filterfield .custom-checkbox input, #js_filterfield .custom-radio input').on('change', function() {
  380.         \$('#js_filterfield').submit();
  381.     });
  382.     function createActiveFilters(){
  383.         var sPageURL = decodeURIComponent(window.location.search.substring(1));
  384.         var array =[]
  385.         var sURLVariables = sPageURL.split('&');
  386.         \$('.filters-active').empty();
  387.         for (var i = 0; i < sURLVariables.length; i++) {
  388.             var sParameterName = sURLVariables[i].split('=');
  389.             createFilter(sParameterName[0], sParameterName[1]);
  390.         }
  391.     }
  392.     function createFilter(type, value){
  393.         var type = type.replace('[]', '');
  394.         var id = type+value;
  395.         if(\$('#'+id).length){
  396.             var e = \$('<a href=\\\"#\\\" class=\\\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\\\" data-filterid=\\\"'+id+'\\\">'+ \$('label[for=\\\"'+id+'\\\"').html() +' <i class=\\\"fa-sharp fa-solid fa-xmark\\\"></i></a>');
  397.             \$('.filters-active').append(e);
  398.         }
  399.     }
  400.     \$('body').on('click', '.filters-active > a', function(){
  401.         \$('#'+\$(this).attr('data-filterid')).prop('checked', false);
  402.         \$('#js_filterfield').submit();
  403.     });
  404.     createActiveFilters();
  405.     \$('.readMore').on('click', function(){
  406.         if(\$(this).hasClass('active')){
  407.             \$(this).removeClass('active');
  408.             \$(this).find('.open').css('display','block');
  409.             \$(this).find('.close').css('display','none');
  410.             \$('.moreText').slideUp();
  411.         } else {
  412.             \$(this).addClass('active');
  413.             \$(this).find('.open').css('display','none');
  414.             \$(this).find('.close').css('display','block');
  415.             \$('.moreText').slideDown();
  416.         }
  417.     });
  418.     \") %}
  419. {% endblock %}""product/product-list.html.twig""/var/www/html/templates/product/product-list.html.twig");
  420.     }
  421.     
  422.     public function checkSecurity()
  423.     {
  424.         static $tags = array("do" => 5"if" => 37"for" => 41"set" => 42);
  425.         static $filters = array("escape" => 12"trans" => 17"length" => 40"raw" => 43"lower" => 62);
  426.         static $functions = array("pimcore_head_title" => 5"pimcore_head_meta" => 6"render" => 9"controller" => 9"pimcore_inline_script" => 90);
  427.         try {
  428.             $this->sandbox->checkSecurity(
  429.                 ['do''if''for''set'],
  430.                 ['escape''trans''length''raw''lower'],
  431.                 ['pimcore_head_title''pimcore_head_meta''render''controller''pimcore_inline_script']
  432.             );
  433.         } catch (SecurityError $e) {
  434.             $e->setSourceContext($this->source);
  435.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  436.                 $e->setTemplateLine($tags[$e->getTagName()]);
  437.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  438.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  439.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  440.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  441.             }
  442.             throw $e;
  443.         }
  444.     }
  445. }