var/cache/dev/twig/f1/f1f9de746f91d1793760311e29a52fcf.php line 429

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. /* @MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig */
  14. class __TwigTemplate_b3196220182bcd1d74728a4beed1ae6c extends \Twig\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.             'title' => [$this'block_title'],
  24.             'metatags' => [$this'block_metatags'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@SyliusShop/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""@MonsieurBizSyliusSearchPlugin/Taxon/result.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""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"));
  40.         // line 2
  41.         $macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"2)->unwrap();
  42.         // line 1
  43.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 4
  51.     public function block_title($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""title"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         // line 5
  59.         echo "    ";
  60.         if ((array_key_exists("taxon"$context) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'5$this->source); })()), "translation", [], "any"falsefalsefalse5), "metaTitle", [], "any"falsefalsefalse5)))) {
  61.             // line 6
  62.             echo "        ";
  63.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'6$this->source); })()), "translation", [], "any"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6), "html"nulltrue);
  64.             echo "
  65.     ";
  66.         } else {
  67.             // line 8
  68.             echo "        ";
  69.             if ( !twig_test_empty($this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("taxon", ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'8$this->source); })())]))) {
  70.                 // line 9
  71.                 echo "            ";
  72.                 $context["meta"] = $this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("taxon", ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'9$this->source); })())]);
  73.                 // line 10
  74.                 echo "            ";
  75.                 if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'10$this->source); })()), "title", [], "any"falsefalsefalse10))) {
  76.                     // line 11
  77.                     echo "                ";
  78.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'11$this->source); })()), "title", [], "any"falsefalsefalse11), "html"nulltrue);
  79.                     echo "
  80.             ";
  81.                 } else {
  82.                     // line 13
  83.                     echo "                ";
  84.                     $this->displayParentBlock("title"$context$blocks);
  85.                     echo "
  86.             ";
  87.                 }
  88.                 // line 15
  89.                 echo "        ";
  90.             } else {
  91.                 // line 16
  92.                 echo "            ";
  93.                 $this->displayParentBlock("title"$context$blocks);
  94.                 echo "
  95.         ";
  96.             }
  97.             // line 18
  98.             echo "    ";
  99.         }
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.     }
  105.     // line 21
  106.     public function block_metatags($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  113.         // line 22
  114.         echo "    ";
  115.         if ((array_key_exists("taxon"$context) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'22$this->source); })()), "translation", [], "any"falsefalsefalse22), "metaDescription", [], "any"falsefalsefalse22)))) {
  116.             // line 23
  117.             echo "        <meta name=\"description\" content=\"";
  118.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'23$this->source); })()), "translation", [], "any"falsefalsefalse23), "metaDescription", [], "any"falsefalsefalse23), "html"nulltrue);
  119.             echo "\">
  120.     ";
  121.         } else {
  122.             // line 25
  123.             echo "        ";
  124.             if ( !twig_test_empty($this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("taxon", ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'25$this->source); })())]))) {
  125.                 // line 26
  126.                 echo "            ";
  127.                 $context["meta"] = $this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("taxon", ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'26$this->source); })())]);
  128.                 // line 27
  129.                 echo "            ";
  130.                 if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'27$this->source); })()), "metaDescription", [], "any"falsefalsefalse27))) {
  131.                     // line 28
  132.                     echo "                <meta name=\"description\" content=\"";
  133.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'28$this->source); })()), "metaDescription", [], "any"falsefalsefalse28), "html"nulltrue);
  134.                     echo "\">
  135.             ";
  136.                 } else {
  137.                     // line 30
  138.                     echo "                ";
  139.                     $this->displayParentBlock("metatags"$context$blocks);
  140.                     echo "
  141.             ";
  142.                 }
  143.                 // line 32
  144.                 echo "
  145.         ";
  146.             } else {
  147.                 // line 34
  148.                 echo "            ";
  149.                 $this->displayParentBlock("metatags"$context$blocks);
  150.                 echo "
  151.         ";
  152.             }
  153.             // line 36
  154.             echo "    ";
  155.         }
  156.         // line 37
  157.         echo "
  158.     ";
  159.         // line 38
  160.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'38$this->source); })()), "translation", [], "any"falsefalsefalse38), "metaRobotIndex", [], "any"falsefalsefalse38) == true)) {
  161.             // line 39
  162.             echo "        ";
  163.             $context["metaRobotIndex"] = "index, follow";
  164.             // line 40
  165.             echo "    ";
  166.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'40$this->source); })()), "translation", [], "any"falsefalsefalse40), "metaRobotIndex", [], "any"falsefalsefalse40) == false)) {
  167.             // line 41
  168.             echo "        ";
  169.             $context["metaRobotIndex"] = "noindex, nofollow";
  170.             // line 42
  171.             echo "    ";
  172.         }
  173.         // line 43
  174.         echo "
  175.     ";
  176.         // line 44
  177.         if (array_key_exists("metaRobotIndex"$context)) {
  178.             // line 45
  179.             echo "        <meta name=\"robots\" content=\"";
  180.             echo twig_escape_filter($this->env, (isset($context["metaRobotIndex"]) || array_key_exists("metaRobotIndex"$context) ? $context["metaRobotIndex"] : (function () { throw new RuntimeError('Variable "metaRobotIndex" does not exist.'45$this->source); })()), "html"nulltrue);
  181.             echo "\"/>
  182.     ";
  183.         }
  184.         // line 47
  185.         echo "
  186. ";
  187.         
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  189.         
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  191.     }
  192.     // line 50
  193.     public function block_content($context, array $blocks = [])
  194.     {
  195.         $macros $this->macros;
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  198.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  199.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  200.         // line 51
  201.         echo "    ";
  202.         $context["wishlist"] = null;
  203.         // line 52
  204.         echo "    ";
  205.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'52$this->source); })()), "user", [], "any"falsefalsefalse52)) {
  206.             // line 53
  207.             echo "        ";
  208.             $context["wishlist"] = $this->extensions['App\Twig\Extensions\Wishlist\WishlistExtension']->getWishlist();
  209.             // line 54
  210.             echo "    ";
  211.         }
  212.         // line 55
  213.         echo "    <section class=\"container px-xl-0 px-2\">
  214.         <section class=\"container-page-aside pb-2\">
  215.             <div class=\"\">
  216.                 ";
  217.         // line 58
  218.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_taxon_show_by_slug", ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'58$this->source); })()), "request", [], "any"falsefalsefalse58), "attributes", [], "any"falsefalsefalse58), "get", [=> "slug"], "method"falsefalsefalse58), "template" => "@SyliusShop/Taxon/_breadcrumb.html.twig"]));
  219.         echo "
  220.             </div>
  221.             <div class=\"bg-white rounded-10 border p-xl-4 p-3 mb-4 page-categorie-content\">
  222.                 <div class=\"categorie-top pb-2 gradient-whiteb avenir-book pr-xl-5 pr-4\">
  223.                     <h1 class=\"title-big text-left has-after pb-3\">";
  224.         // line 62
  225.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'62$this->source); })()), "name", [], "any"falsefalsefalse62), "html"nulltrue);
  226.         echo "</h1>
  227.                     <div class=\"expand-me font-15 font-16-mobile\">
  228.                         ";
  229.         // line 64
  230.         echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'64$this->source); })()), "translation", [], "any"falsefalsefalse64), "description", [], "any"falsefalsefalse64);
  231.         echo "
  232.                     </div>
  233.                 </div>
  234.                 ";
  235.         // line 67
  236.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'67$this->source); })()), "children", [], "any"falsefalsefalse67)) > 0)) {
  237.             // line 68
  238.             echo "                
  239.                 <div class=\"pt-3 sscategorie-container font-16-mobile  ";
  240.             // line 69
  241.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'69$this->source); })()), "children", [], "any"falsefalsefalse69)) < 20)) {
  242.                 echo " max-container-txt ";
  243.             }
  244.             echo "\">
  245.                     <ul class=\"row no-gutters pl-3 \">
  246.                         ";
  247.             // line 71
  248.             $context['_parent'] = $context;
  249.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'71$this->source); })()), "children", [], "any"falsefalsefalse71));
  250.             foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
  251.                 // line 72
  252.                 echo "                        <li class=\"col-12 pr-md-3  ";
  253.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'72$this->source); })()), "children", [], "any"falsefalsefalse72)) < 20)) {
  254.                     echo "col-md-6 ";
  255.                 } else {
  256.                     echo " col-lg-4 col-md-6 ";
  257.                 }
  258.                 echo "\"><a href=\"";
  259.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("monsieurbiz_sylius_search_taxon", ["slug" => twig_get_attribute($this->env$this->source$context["childTaxon"], "slug", [], "any"falsefalsefalse72), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["childTaxon"], "translation", [], "any"falsefalsefalse72), "locale", [], "any"falsefalsefalse72)]), "html"nulltrue);
  260.                 echo "\" title=\"";
  261.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["childTaxon"], "name", [], "any"falsefalsefalse72), "html"nulltrue);
  262.                 echo "\">";
  263.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["childTaxon"], "name", [], "any"falsefalsefalse72), "html"nulltrue);
  264.                 echo "</a></li>
  265.                         ";
  266.             }
  267.             $_parent $context['_parent'];
  268.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
  269.             $context array_intersect_key($context$_parent) + $_parent;
  270.             // line 74
  271.             echo "                    </ul>
  272.                 </div>
  273.                 ";
  274.         }
  275.         // line 77
  276.         echo "                    ";
  277.         if ((twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'77$this->source); })()), "count", [], "any"falsefalsefalse77) == 0)) {
  278.             // line 78
  279.             echo "                    <div class=\"categorie-bottom px-lg-0\">
  280.                         <div class=\"no-result pt-md-4 pt-2 pb-md-4 pb-2 mt-xl-2 px-lg-0 px-3\">
  281.                             <div class=\"py-4 my-3 text-left \">
  282.                                 <div class=\"d-inline-block\">
  283.                                     <div class=\"alert alert-danger\">
  284.                                         ";
  285.             // line 83
  286.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.no_product_available"), "html"nulltrue);
  287.             echo "
  288.                                     </div>
  289.                                 </div>
  290.                             </div>
  291.                         </div>
  292.                     </div>
  293.                     ";
  294.         } else {
  295.             // line 90
  296.             echo "                    <div class=\"pb-3\">
  297.                         <div class=\"filtre-cat mt-3\">
  298.                             <div class=\"categorie-filtre mbiz-sylius-search-filters row no-gutters align-items-center\">
  299.                                 <div class=\"lib-f-c font-weight-bold font-16  pr-xl-5 pr-3 col-auto\">
  300.                                     <span class=\"d-block pb-2\">Trier par :</span>
  301.                                 </div>
  302.                                 <div class=\"d-lg-none d-block py-3 text-center \">
  303.                                     <div class=\"d-inline-block mobile-label-filtre\">
  304.                                         <span class=\"d-flex align-items-center\">
  305.                                             <svg class=\"burger-icon\" viewBox=\"0 0 30 30\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">
  306.                                                 <g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
  307.                                                     <g id=\"group-desktop\" fill-rule=\"nonzero\">
  308.                                                         <path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  309.                                                         <path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  310.                                                         <path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  311.                                                     </g>
  312.                                                 </g>
  313.                                             </svg>
  314.                                             <strong class=\"\">";
  315.             // line 108
  316.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.sort_by"), "html"nulltrue);
  317.             echo "</strong>
  318.                                         </span>
  319.                                     </div>
  320.                                 </div>
  321.                                 <div class=\"cell-facette col\">
  322.                                     <div class=\"d-flex justify-content-between d-lg-none align-items-center p-3 border-bottom\">
  323.                                         <strong class=\"font-20 text-uppercase\">";
  324.             // line 114
  325.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.refine_your_choice"), "html"nulltrue);
  326.             echo "</strong>
  327.                                         <span class=\"close-filtre-categ \"><img src=\"";
  328.             // line 115
  329.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/closemenu.png"), "html"nulltrue);
  330.             echo "\" alt=\"X\" class=\"d-block\" /></span>
  331.                                     </div>
  332.                                     <div class=\"content-fitre-categ align-items-center justify-content-center\">
  333.                                         ";
  334.             // line 118
  335.             $this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"118)->display($context);
  336.             // line 119
  337.             echo "                                    </div>
  338.                                 </div>
  339.                             </div>
  340.                         </div>
  341.                         <div class=\"res-filtre  fontsize-mobile-text pb-md-0 pb-2 \">
  342.                             <div class=\"row no-gutters align-items-center justify-content-between\">
  343.                                 <div class=\"col \">
  344.                                     <span class=\"d-inline-block font-16\">";
  345.             // line 126
  346.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.your_selection"), "html"nulltrue);
  347.             echo " :</span>
  348.                                     <div class=\"d-inline-block\">
  349.                                         ";
  350.             // line 128
  351.             $context['_parent'] = $context;
  352.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'128$this->source); })()), "filters", [], "any"falsefalsefalse128));
  353.             foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
  354.                 // line 129
  355.                 echo "                                            ";
  356.                 $context['_parent'] = $context;
  357.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["filter"], "values", [], "any"falsefalsefalse129));
  358.                 foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
  359.                     // line 130
  360.                     echo "                                                ";
  361.                     if ((twig_get_attribute($this->env$this->source$context["value"], "isApplied", [], "any"falsefalsefalse130) && (twig_get_attribute($this->env$this->source$context["filter"], "type", [], "any"falsefalsefalse130) != "range"))) {
  362.                         // line 131
  363.                         echo "                                                    <span class=\"filtre delete-filter\" data-filter=\"";
  364.                         echo twig_escape_filter($this->env, ((("filter-" twig_get_attribute($this->env$this->source$context["filter"], "code", [], "any"falsefalsefalse131)) . "-value-") . twig_get_attribute($this->env$this->source$context["value"], "slug", [], "any"falsefalsefalse131)), "html"nulltrue);
  365.                         echo "\" ><i class=\"icon-cancel\"></i><span>";
  366.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["value"], "label", [], "any"falsefalsefalse131), "html"nulltrue);
  367.                         echo " </span></span>
  368.                                                 ";
  369.                     }
  370.                     // line 133
  371.                     echo "                                            ";
  372.                 }
  373.                 $_parent $context['_parent'];
  374.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
  375.                 $context array_intersect_key($context$_parent) + $_parent;
  376.                 // line 134
  377.                 echo "                                        ";
  378.             }
  379.             $_parent $context['_parent'];
  380.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']);
  381.             $context array_intersect_key($context$_parent) + $_parent;
  382.             // line 135
  383.             echo "                                    </div>
  384.                                 </div>
  385.                                 <div class=\"col-auto\">
  386.                                     ";
  387.             // line 138
  388.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'138$this->source); })()), "count", [], "any"falsefalsefalse138), "html"nulltrue);
  389.             echo " ";
  390.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.items"), "html"nulltrue);
  391.             echo "
  392.                                 </div>
  393.                             </div>
  394.                         </div>
  395.                     </div>
  396.                     <div class=\"categorie-bottom px-lg-0\">
  397.                         <div class=\"py-4\">
  398.                             <div class=\"row justify-content-between no-gutters px-xl-0 px-lg-2 px-0\">
  399.                                 <div class=\"col-auto  pr-1\">";
  400.             // line 146
  401.             $this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_pagination.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"146)->display($context);
  402.             echo "</div>
  403.                                 <div class=\"col-auto  pl-1\">";
  404.             // line 147
  405.             $this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"147)->display($context);
  406.             echo "</div>
  407.                             </div>
  408.                         </div>
  409.                         <div class=\"row no-gutters mx-n3\" id=\"products\">
  410.                             ";
  411.             // line 151
  412.             $context["productsUsefullNbr"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'151$this->source); })()), "productsUsefull", [], "any"falsefalsefalse151), "count", [], "any"falsefalsefalse151);
  413.             // line 152
  414.             echo "                            ";
  415.             $context["productsNbr"] = twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'152$this->source); })()), "count", [], "any"falsefalsefalse152);
  416.             // line 153
  417.             echo "
  418.                             ";
  419.             // line 154
  420.             if (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'154$this->source); })()) == 1)) {
  421.                 // line 155
  422.                 echo "                                ";
  423.                 $context["productUsefullPos"] = twig_round(((isset($context["productsNbr"]) || array_key_exists("productsNbr"$context) ? $context["productsNbr"] : (function () { throw new RuntimeError('Variable "productsNbr" does not exist.'155$this->source); })()) / 2));
  424.                 // line 156
  425.                 echo "                            ";
  426.             } elseif (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'156$this->source); })()) > 0)) {
  427.                 // line 157
  428.                 echo "                                ";
  429.                 $context["productUsefullPos"] = twig_round(((isset($context["productsNbr"]) || array_key_exists("productsNbr"$context) ? $context["productsNbr"] : (function () { throw new RuntimeError('Variable "productsNbr" does not exist.'157$this->source); })()) / (isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'157$this->source); })())));
  430.                 // line 158
  431.                 echo "                            ";
  432.             }
  433.             // line 159
  434.             echo "
  435.                             ";
  436.             // line 160
  437.             $context["i"] = 0;
  438.             // line 161
  439.             echo "                            ";
  440.             $context["itemNum"] = 0;
  441.             // line 162
  442.             echo "                            ";
  443.             $context['_parent'] = $context;
  444.             $context['_seq'] = twig_ensure_traversable((isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'162$this->source); })()));
  445.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  446.                 // line 163
  447.                 echo "                                ";
  448.                 $context["itemNum"] = ((isset($context["itemNum"]) || array_key_exists("itemNum"$context) ? $context["itemNum"] : (function () { throw new RuntimeError('Variable "itemNum" does not exist.'163$this->source); })()) + 1);
  449.                 // line 164
  450.                 echo "                                <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4\">
  451.                                     ";
  452.                 // line 165
  453.                 $context["product"] = twig_get_attribute($this->env$this->source, (isset($context["product_repository"]) || array_key_exists("product_repository"$context) ? $context["product_repository"] : (function () { throw new RuntimeError('Variable "product_repository" does not exist.'165$this->source); })()), "find", [=> twig_get_attribute($this->env$this->source$context["item"], "id", [], "any"falsefalsefalse165)], "method"falsefalsefalse165);
  454.                 // line 166
  455.                 echo "                                    ";
  456.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"166)->display(twig_to_array(["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'166$this->source); })()), "wishlist" => (isset($context["wishlist"]) || array_key_exists("wishlist"$context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.'166$this->source); })())]));
  457.                 // line 167
  458.                 echo "                                </div>
  459.                                 ";
  460.                 // line 169
  461.                 if ((((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'169$this->source); })()) > 0) && ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'169$this->source); })()) < (isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'169$this->source); })())))) {
  462.                     // line 170
  463.                     echo "                                    ";
  464.                     if (((isset($context["itemNum"]) || array_key_exists("itemNum"$context) ? $context["itemNum"] : (function () { throw new RuntimeError('Variable "itemNum" does not exist.'170$this->source); })()) == (isset($context["productUsefullPos"]) || array_key_exists("productUsefullPos"$context) ? $context["productUsefullPos"] : (function () { throw new RuntimeError('Variable "productUsefullPos" does not exist.'170$this->source); })()))) {
  465.                         // line 171
  466.                         echo "                                        ";
  467.                         $context['_parent'] = $context;
  468.                         $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'171$this->source); })()), "productsUsefull", [], "any"falsefalsefalse171), (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'171$this->source); })()), ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'171$this->source); })()) + 1)));
  469.                         foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
  470.                             // line 172
  471.                             echo "                                            ";
  472.                             $context["productUsefull"] = twig_get_attribute($this->env$this->source, (isset($context["product_repository"]) || array_key_exists("product_repository"$context) ? $context["product_repository"] : (function () { throw new RuntimeError('Variable "product_repository" does not exist.'172$this->source); })()), "find", [=> twig_get_attribute($this->env$this->source$context["itemUsefull"], "id", [], "any"falsefalsefalse172)], "method"falsefalsefalse172);
  473.                             // line 173
  474.                             echo "                                            ";
  475.                             if (twig_get_attribute($this->env$this->source, (isset($context["productUsefull"]) || array_key_exists("productUsefull"$context) ? $context["productUsefull"] : (function () { throw new RuntimeError('Variable "productUsefull" does not exist.'173$this->source); })()), "enabled", [], "any"falsefalsefalse173)) {
  476.                                 // line 174
  477.                                 echo "                                                <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
  478.                                                     ";
  479.                                 // line 175
  480.                                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"175)->display(twig_to_array(["product" => (isset($context["productUsefull"]) || array_key_exists("productUsefull"$context) ? $context["productUsefull"] : (function () { throw new RuntimeError('Variable "productUsefull" does not exist.'175$this->source); })()), "wishlist" => (isset($context["wishlist"]) || array_key_exists("wishlist"$context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.'175$this->source); })())]));
  481.                                 // line 176
  482.                                 echo "                                                </div>
  483.                                             ";
  484.                             }
  485.                             // line 178
  486.                             echo "                                            ";
  487.                             $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'178$this->source); })()) + 1);
  488.                             // line 179
  489.                             echo "                                        ";
  490.                         }
  491.                         $_parent $context['_parent'];
  492.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemUsefull'], $context['_parent'], $context['loop']);
  493.                         $context array_intersect_key($context$_parent) + $_parent;
  494.                         // line 180
  495.                         echo "
  496.                                         ";
  497.                         // line 181
  498.                         $context["itemNum"] = 0;
  499.                         // line 182
  500.                         echo "                                    ";
  501.                     }
  502.                     // line 183
  503.                     echo "                                ";
  504.                 }
  505.                 // line 184
  506.                 echo "                            ";
  507.             }
  508.             $_parent $context['_parent'];
  509.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  510.             $context array_intersect_key($context$_parent) + $_parent;
  511.             // line 185
  512.             echo "
  513.                             ";
  514.             // line 186
  515.             if ((((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'186$this->source); })()) > 0) && ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'186$this->source); })()) < (isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'186$this->source); })())))) {
  516.                 // line 187
  517.                 echo "
  518.                                 ";
  519.                 // line 188
  520.                 $context['_parent'] = $context;
  521.                 $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'188$this->source); })()), "productsUsefull", [], "any"falsefalsefalse188), (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'188$this->source); })()), ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'188$this->source); })()) + 1)));
  522.                 foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
  523.                     // line 189
  524.                     echo "                                    ";
  525.                     $context["productUsefull"] = twig_get_attribute($this->env$this->source, (isset($context["product_repository"]) || array_key_exists("product_repository"$context) ? $context["product_repository"] : (function () { throw new RuntimeError('Variable "product_repository" does not exist.'189$this->source); })()), "find", [=> twig_get_attribute($this->env$this->source$context["itemUsefull"], "id", [], "any"falsefalsefalse189)], "method"falsefalsefalse189);
  526.                     // line 190
  527.                     echo "                                    ";
  528.                     if (twig_get_attribute($this->env$this->source, (isset($context["productUsefull"]) || array_key_exists("productUsefull"$context) ? $context["productUsefull"] : (function () { throw new RuntimeError('Variable "productUsefull" does not exist.'190$this->source); })()), "enabled", [], "any"falsefalsefalse190)) {
  529.                         // line 191
  530.                         echo "                                        <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
  531.                                             ";
  532.                         // line 192
  533.                         $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"192)->display(twig_to_array(["product" => (isset($context["productUsefull"]) || array_key_exists("productUsefull"$context) ? $context["productUsefull"] : (function () { throw new RuntimeError('Variable "productUsefull" does not exist.'192$this->source); })())]));
  534.                         // line 193
  535.                         echo "                                        </div>
  536.                                     ";
  537.                     }
  538.                     // line 195
  539.                     echo "
  540.                                     ";
  541.                     // line 196
  542.                     $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'196$this->source); })()) + 1);
  543.                     // line 197
  544.                     echo "                                ";
  545.                 }
  546.                 $_parent $context['_parent'];
  547.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemUsefull'], $context['_parent'], $context['loop']);
  548.                 $context array_intersect_key($context$_parent) + $_parent;
  549.                 // line 198
  550.                 echo "                            ";
  551.             }
  552.             // line 199
  553.             echo "                        </div>
  554.                         ";
  555.             // line 200
  556.             echo twig_call_macro($macros["pagination"], "macro_simple", [twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'200$this->source); })()), "paginator", [], "any"falsefalsefalse200)], 200$context$this->getSourceContext());
  557.             echo "
  558.                     </div>
  559.                     ";
  560.         }
  561.         // line 203
  562.         echo "            </div>
  563.             ";
  564.         // line 204
  565.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["taxon"] ?? null), "translation", [], "any"falsetruefalse204), "textSeo", [], "any"truetruefalse204)) {
  566.             // line 205
  567.             echo "                <div class=\"text-grey font-15 py-lg-4 py-3 d-none d-md-block\">
  568.                     ";
  569.             // line 206
  570.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'206$this->source); })()), "translation", [], "any"falsefalsefalse206), "textSeo", [], "any"falsefalsefalse206);
  571.             echo "
  572.                 </div>
  573.             ";
  574.         }
  575.         // line 209
  576.         echo "        </section>
  577.      </section>
  578. ";
  579.         
  580.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  581.         
  582.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  583.     }
  584.     public function getTemplateName()
  585.     {
  586.         return "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig";
  587.     }
  588.     public function isTraitable()
  589.     {
  590.         return false;
  591.     }
  592.     public function getDebugInfo()
  593.     {
  594.         return array (  601 => 209,  595 => 206,  592 => 205,  590 => 204,  587 => 203,  581 => 200,  578 => 199,  575 => 198,  569 => 197,  567 => 196,  564 => 195,  560 => 193,  558 => 192,  555 => 191,  552 => 190,  549 => 189,  545 => 188,  542 => 187,  540 => 186,  537 => 185,  531 => 184,  528 => 183,  525 => 182,  523 => 181,  520 => 180,  514 => 179,  511 => 178,  507 => 176,  505 => 175,  502 => 174,  499 => 173,  496 => 172,  491 => 171,  488 => 170,  486 => 169,  482 => 167,  479 => 166,  477 => 165,  474 => 164,  471 => 163,  466 => 162,  463 => 161,  461 => 160,  458 => 159,  455 => 158,  452 => 157,  449 => 156,  446 => 155,  444 => 154,  441 => 153,  438 => 152,  436 => 151,  429 => 147,  425 => 146,  412 => 138,  407 => 135,  401 => 134,  395 => 133,  387 => 131,  384 => 130,  379 => 129,  375 => 128,  370 => 126,  361 => 119,  359 => 118,  353 => 115,  349 => 114,  340 => 108,  320 => 90,  310 => 83,  303 => 78,  300 => 77,  295 => 74,  276 => 72,  272 => 71,  265 => 69,  262 => 68,  260 => 67,  254 => 64,  249 => 62,  242 => 58,  237 => 55,  234 => 54,  231 => 53,  228 => 52,  225 => 51,  215 => 50,  204 => 47,  198 => 45,  196 => 44,  193 => 43,  190 => 42,  187 => 41,  184 => 40,  181 => 39,  179 => 38,  176 => 37,  173 => 36,  167 => 34,  163 => 32,  157 => 30,  151 => 28,  148 => 27,  145 => 26,  142 => 25,  136 => 23,  133 => 22,  123 => 21,  112 => 18,  106 => 16,  103 => 15,  97 => 13,  91 => 11,  88 => 10,  85 => 9,  82 => 8,  76 => 6,  73 => 5,  63 => 4,  52 => 1,  50 => 2,  37 => 1,);
  595.     }
  596.     public function getSourceContext()
  597.     {
  598.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  599. {% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
  600. {% block title %}
  601.     {% if taxon is defined and taxon.translation.metaTitle is not null %}
  602.         {{ taxon.translation.metaTitle }}
  603.     {% else %}
  604.         {% if app_get_page_meta_by_code(\"taxon\",{ 'taxon': taxon }) is not empty %}
  605.             {% set meta = app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon }) %}
  606.             {% if meta.title is not null %}
  607.                 {{ meta.title }}
  608.             {% else %}
  609.                 {{ parent() }}
  610.             {% endif %}
  611.         {% else %}
  612.             {{ parent() }}
  613.         {% endif %}
  614.     {% endif %}
  615. {% endblock %}
  616. {% block metatags %}
  617.     {% if taxon is defined and taxon.translation.metaDescription is not null %}
  618.         <meta name=\"description\" content=\"{{ taxon.translation.metaDescription }}\">
  619.     {% else %}
  620.         {% if app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon}) is not empty %}
  621.             {% set meta = app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon }) %}
  622.             {% if meta.metaDescription is not null %}
  623.                 <meta name=\"description\" content=\"{{ meta.metaDescription }}\">
  624.             {% else %}
  625.                 {{ parent() }}
  626.             {% endif %}
  627.         {% else %}
  628.             {{ parent() }}
  629.         {% endif %}
  630.     {% endif %}
  631.     {% if taxon.translation.metaRobotIndex == true %}
  632.         {% set metaRobotIndex = 'index, follow' %}
  633.     {% elseif taxon.translation.metaRobotIndex == false %}
  634.         {% set metaRobotIndex = 'noindex, nofollow' %}
  635.     {% endif %}
  636.     {% if metaRobotIndex is defined %}
  637.         <meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
  638.     {% endif %}
  639. {% endblock %}
  640. {% block content %}
  641.     {% set wishlist = null %}
  642.     {% if app.user %}
  643.         {% set wishlist = app_get_wishlist() %}
  644.     {% endif %}
  645.     <section class=\"container px-xl-0 px-2\">
  646.         <section class=\"container-page-aside pb-2\">
  647.             <div class=\"\">
  648.                 {{ render(url('sylius_shop_partial_taxon_show_by_slug', {'slug': app.request.attributes.get('slug'),'template': '@SyliusShop/Taxon/_breadcrumb.html.twig'})) }}
  649.             </div>
  650.             <div class=\"bg-white rounded-10 border p-xl-4 p-3 mb-4 page-categorie-content\">
  651.                 <div class=\"categorie-top pb-2 gradient-whiteb avenir-book pr-xl-5 pr-4\">
  652.                     <h1 class=\"title-big text-left has-after pb-3\">{{ taxon.name }}</h1>
  653.                     <div class=\"expand-me font-15 font-16-mobile\">
  654.                         {{ taxon.translation.description|raw }}
  655.                     </div>
  656.                 </div>
  657.                 {% if taxon.children|length > 0 %}
  658.                 
  659.                 <div class=\"pt-3 sscategorie-container font-16-mobile  {% if taxon.children|length < 20 %} max-container-txt {% endif %}\">
  660.                     <ul class=\"row no-gutters pl-3 \">
  661.                         {% for childTaxon in taxon.children %}
  662.                         <li class=\"col-12 pr-md-3  {% if taxon.children|length < 20 %}col-md-6 {% else %} col-lg-4 col-md-6 {% endif %}\"><a href=\"{{ path('monsieurbiz_sylius_search_taxon', {'slug': childTaxon.slug, '_locale': childTaxon.translation.locale}) }}\" title=\"{{ childTaxon.name }}\">{{ childTaxon.name }}</a></li>
  663.                         {% endfor %}
  664.                     </ul>
  665.                 </div>
  666.                 {% endif %}
  667.                     {% if result.count == 0 %}
  668.                     <div class=\"categorie-bottom px-lg-0\">
  669.                         <div class=\"no-result pt-md-4 pt-2 pb-md-4 pb-2 mt-xl-2 px-lg-0 px-3\">
  670.                             <div class=\"py-4 my-3 text-left \">
  671.                                 <div class=\"d-inline-block\">
  672.                                     <div class=\"alert alert-danger\">
  673.                                         {{ 'app.common.no_product_available'|trans }}
  674.                                     </div>
  675.                                 </div>
  676.                             </div>
  677.                         </div>
  678.                     </div>
  679.                     {% else %}
  680.                     <div class=\"pb-3\">
  681.                         <div class=\"filtre-cat mt-3\">
  682.                             <div class=\"categorie-filtre mbiz-sylius-search-filters row no-gutters align-items-center\">
  683.                                 <div class=\"lib-f-c font-weight-bold font-16  pr-xl-5 pr-3 col-auto\">
  684.                                     <span class=\"d-block pb-2\">Trier par :</span>
  685.                                 </div>
  686.                                 <div class=\"d-lg-none d-block py-3 text-center \">
  687.                                     <div class=\"d-inline-block mobile-label-filtre\">
  688.                                         <span class=\"d-flex align-items-center\">
  689.                                             <svg class=\"burger-icon\" viewBox=\"0 0 30 30\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">
  690.                                                 <g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
  691.                                                     <g id=\"group-desktop\" fill-rule=\"nonzero\">
  692.                                                         <path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  693.                                                         <path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  694.                                                         <path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  695.                                                     </g>
  696.                                                 </g>
  697.                                             </svg>
  698.                                             <strong class=\"\">{{'app.taxon.sort_by'|trans}}</strong>
  699.                                         </span>
  700.                                     </div>
  701.                                 </div>
  702.                                 <div class=\"cell-facette col\">
  703.                                     <div class=\"d-flex justify-content-between d-lg-none align-items-center p-3 border-bottom\">
  704.                                         <strong class=\"font-20 text-uppercase\">{{'app.taxon.refine_your_choice'|trans}}</strong>
  705.                                         <span class=\"close-filtre-categ \"><img src=\"{{asset('images/closemenu.png')}}\" alt=\"X\" class=\"d-block\" /></span>
  706.                                     </div>
  707.                                     <div class=\"content-fitre-categ align-items-center justify-content-center\">
  708.                                         {% include '@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig' %}
  709.                                     </div>
  710.                                 </div>
  711.                             </div>
  712.                         </div>
  713.                         <div class=\"res-filtre  fontsize-mobile-text pb-md-0 pb-2 \">
  714.                             <div class=\"row no-gutters align-items-center justify-content-between\">
  715.                                 <div class=\"col \">
  716.                                     <span class=\"d-inline-block font-16\">{{'app.taxon.your_selection'|trans}} :</span>
  717.                                     <div class=\"d-inline-block\">
  718.                                         {% for filter in result.filters %}
  719.                                             {% for value in filter.values %}
  720.                                                 {% if value.isApplied and filter.type != \"range\" %}
  721.                                                     <span class=\"filtre delete-filter\" data-filter=\"{{ 'filter-' ~ filter.code ~ '-value-' ~ value.slug }}\" ><i class=\"icon-cancel\"></i><span>{{ value.label}} </span></span>
  722.                                                 {% endif %}
  723.                                             {% endfor %}
  724.                                         {% endfor %}
  725.                                     </div>
  726.                                 </div>
  727.                                 <div class=\"col-auto\">
  728.                                     {{result.count}} {{'app.taxon.items'|trans}}
  729.                                 </div>
  730.                             </div>
  731.                         </div>
  732.                     </div>
  733.                     <div class=\"categorie-bottom px-lg-0\">
  734.                         <div class=\"py-4\">
  735.                             <div class=\"row justify-content-between no-gutters px-xl-0 px-lg-2 px-0\">
  736.                                 <div class=\"col-auto  pr-1\">{% include '@MonsieurBizSyliusSearchPlugin/Search/_pagination.html.twig' %}</div>
  737.                                 <div class=\"col-auto  pl-1\">{% include '@MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig' %}</div>
  738.                             </div>
  739.                         </div>
  740.                         <div class=\"row no-gutters mx-n3\" id=\"products\">
  741.                             {% set productsUsefullNbr = taxon.productsUsefull.count %}
  742.                             {% set productsNbr = result.count %}
  743.                             {% if productsUsefullNbr == 1 %}
  744.                                 {% set productUsefullPos = (productsNbr /  2)|round %}
  745.                             {% elseif productsUsefullNbr > 0 %}
  746.                                 {% set productUsefullPos = (productsNbr /  productsUsefullNbr)|round %}
  747.                             {% endif %}
  748.                             {% set i = 0 %}
  749.                             {% set itemNum = 0 %}
  750.                             {% for item in result %}
  751.                                 {% set itemNum = itemNum + 1 %}
  752.                                 <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4\">
  753.                                     {% set product = product_repository.find(item.id) %}
  754.                                     {% include '@SyliusShop/Product/_box.html.twig' with {'product': product, 'wishlist': wishlist} only %}
  755.                                 </div>
  756.                                 {% if productsUsefullNbr > 0 and i < productsUsefullNbr %}
  757.                                     {% if itemNum == productUsefullPos %}
  758.                                         {% for itemUsefull in taxon.productsUsefull|slice(i, i + 1) %}
  759.                                             {% set productUsefull = product_repository.find(itemUsefull.id) %}
  760.                                             {% if productUsefull.enabled %}
  761.                                                 <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
  762.                                                     {% include '@SyliusShop/Product/_box.html.twig' with {'product': productUsefull, 'wishlist': wishlist} only %}
  763.                                                 </div>
  764.                                             {% endif %}
  765.                                             {% set i = i + 1 %}
  766.                                         {% endfor %}
  767.                                         {% set itemNum = 0 %}
  768.                                     {% endif %}
  769.                                 {% endif %}
  770.                             {% endfor %}
  771.                             {% if productsUsefullNbr > 0 and i < productsUsefullNbr %}
  772.                                 {% for itemUsefull in taxon.productsUsefull|slice(i, i + 1) %}
  773.                                     {% set productUsefull = product_repository.find(itemUsefull.id) %}
  774.                                     {% if productUsefull.enabled %}
  775.                                         <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
  776.                                             {% include '@SyliusShop/Product/_box.html.twig' with {'product': productUsefull} only %}
  777.                                         </div>
  778.                                     {% endif %}
  779.                                     {% set i = i + 1 %}
  780.                                 {% endfor %}
  781.                             {% endif %}
  782.                         </div>
  783.                         {{ pagination.simple(result.paginator) }}
  784.                     </div>
  785.                     {% endif %}
  786.             </div>
  787.             {% if  taxon.translation.textSeo is defined %}
  788.                 <div class=\"text-grey font-15 py-lg-4 py-3 d-none d-md-block\">
  789.                     {{ taxon.translation.textSeo|raw }}
  790.                 </div>
  791.             {% endif %}
  792.         </section>
  793.      </section>
  794. {% endblock %}
  795. ""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig");
  796.     }
  797. }