var/cache/dev/twig/9b/9b7b0502d9005a91e45dbcbdcff824faf904f24e9452fe38e20bfe007ba9e79d.php line 55

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_cc6e7465b4bd843b3f886afdd7e3be7f60a1eba52d764d7b28bd49bedba5705d 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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 3
  43.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"3)->unwrap();
  44.         // line 1
  45.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 5
  53.     public function block_title($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         // line 6
  61.         echo "    ";
  62.         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.'6$this->source); })()), "translation", [], "any"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6))) && (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.'6$this->source); })()), "translation", [], "any"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6) != ""))) {
  63.             // line 7
  64.             echo "        ";
  65.             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.'7$this->source); })()), "translation", [], "any"falsefalsefalse7), "metaTitle", [], "any"falsefalsefalse7), "html"nulltrue);
  66.             echo "
  67.     ";
  68.         } else {
  69.             // line 9
  70.             echo "        ";
  71.             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.'9$this->source); })())]))) {
  72.                 // line 10
  73.                 echo "            ";
  74.                 $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.'10$this->source); })())]);
  75.                 // line 11
  76.                 echo "            ";
  77.                 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.'11$this->source); })()), "title", [], "any"falsefalsefalse11))) {
  78.                     // line 12
  79.                     echo "                ";
  80.                     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.'12$this->source); })()), "title", [], "any"falsefalsefalse12), "html"nulltrue);
  81.                     echo "
  82.             ";
  83.                 } else {
  84.                     // line 14
  85.                     echo "                ";
  86.                     $this->displayParentBlock("title"$context$blocks);
  87.                     echo "
  88.             ";
  89.                 }
  90.                 // line 16
  91.                 echo "        ";
  92.             } else {
  93.                 // line 17
  94.                 echo "            ";
  95.                 $this->displayParentBlock("title"$context$blocks);
  96.                 echo "
  97.         ";
  98.             }
  99.             // line 19
  100.             echo "    ";
  101.         }
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.         
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  106.     }
  107.     // line 23
  108.     public function block_metatags($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  115.         // line 24
  116.         echo "    ";
  117.         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.'24$this->source); })()), "translation", [], "any"falsefalsefalse24), "metaDescription", [], "any"falsefalsefalse24))) && (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.'24$this->source); })()), "translation", [], "any"falsefalsefalse24), "metaTitle", [], "any"falsefalsefalse24) != ""))) {
  118.             // line 25
  119.             echo "        <meta name=\"description\" content=\"";
  120.             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.'25$this->source); })()), "translation", [], "any"falsefalsefalse25), "metaDescription", [], "any"falsefalsefalse25), "html"nulltrue);
  121.             echo "\">
  122.     ";
  123.         } else {
  124.             // line 27
  125.             echo "        ";
  126.             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.'27$this->source); })())]))) {
  127.                 // line 28
  128.                 echo "            ";
  129.                 $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.'28$this->source); })())]);
  130.                 // line 29
  131.                 echo "            ";
  132.                 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.'29$this->source); })()), "metaDescription", [], "any"falsefalsefalse29))) {
  133.                     // line 30
  134.                     echo "                <meta name=\"description\" content=\"";
  135.                     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.'30$this->source); })()), "metaDescription", [], "any"falsefalsefalse30), "html"nulltrue);
  136.                     echo "\">
  137.             ";
  138.                 } else {
  139.                     // line 32
  140.                     echo "                ";
  141.                     $this->displayParentBlock("metatags"$context$blocks);
  142.                     echo "
  143.             ";
  144.                 }
  145.                 // line 34
  146.                 echo "
  147.             ";
  148.                 // line 35
  149.                 if ((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.'35$this->source); })()), "metaRobotIndex", [], "any"falsefalsefalse35) == true)) {
  150.                     // line 36
  151.                     echo "                ";
  152.                     $context["metaRobotIndex"] = "index, follow";
  153.                     // line 37
  154.                     echo "            ";
  155.                 } elseif ((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.'37$this->source); })()), "metaRobotIndex", [], "any"falsefalsefalse37) == false)) {
  156.                     // line 38
  157.                     echo "                ";
  158.                     $context["metaRobotIndex"] = "noindex, nofollow";
  159.                     // line 39
  160.                     echo "            ";
  161.                 }
  162.                 // line 40
  163.                 echo "            <meta name=\"robots\" content=\"";
  164.                 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.'40$this->source); })()), "html"nulltrue);
  165.                 echo "\"/>
  166.         ";
  167.             } else {
  168.                 // line 43
  169.                 echo "            ";
  170.                 $this->displayParentBlock("metatags"$context$blocks);
  171.                 echo "
  172.         ";
  173.             }
  174.             // line 45
  175.             echo "    ";
  176.         }
  177.         // line 46
  178.         echo "
  179. ";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.     }
  185.     // line 49
  186.     public function block_content($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  193.         // line 50
  194.         echo "    ";
  195.         $context["missingAmountFranco"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
  196.         // line 51
  197.         echo "    <div class=\"page-categorie-content\">
  198.         <div class=\"categorie-top\">
  199.             <div class=\"max-container-4 px-0\">
  200.                 ";
  201.         // line 54
  202.         $this->loadTemplate("@SyliusShop/Product/Index/_sidebar.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"54)->display($context);
  203.         // line 55
  204.         echo "            </div>
  205.         </div>
  206.         <div class=\"max-container-4 px-xl-0\">
  207.             <div class=\"categ-bottom\">
  208.                 ";
  209.         // line 59
  210.         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.'59$this->source); })()), "count", [], "any"falsefalsefalse59) == 0)) {
  211.             // line 60
  212.             echo "                    <div class=\"my-3 px-2 text-center pt-4 no-result\">
  213.                         <div class=\"d-inline-block\">
  214.                             <div class=\"alert alert-danger\">
  215.                                 ";
  216.             // line 63
  217.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.aucun_produit_disponible"), "html"nulltrue);
  218.             echo "
  219.                             </div>
  220.                         </div>
  221.                     </div>
  222.                 ";
  223.         } else {
  224.             // line 68
  225.             echo "                    <div class=\"px-0\">
  226.                         <div class=\"filtre-cat d-none\">
  227.                             ";
  228.             // line 70
  229.             $this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"70)->display($context);
  230.             // line 71
  231.             echo "                        </div>
  232.                         <div class=\"res-filtre  fontsize-mobile-text pb-0 pt-md-0 pt-3 d-none \">
  233.                             <div class=\"d-flex align-items-center justify-content-md-start justify-content-between\">
  234.                                 <div class=\"order-md-12 d-none d-md-block\">
  235.                                     <h2 class=\"d-inline-block text-sofiaMedium\" style=\"font-size: 1.2rem; margin-bottom: 0;\">";
  236.             // line 75
  237.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.your_selection"), "html"nulltrue);
  238.             echo " :</h2>
  239.                                     ";
  240.             // line 76
  241.             $context['_parent'] = $context;
  242.             $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.'76$this->source); })()), "filters", [], "any"falsefalsefalse76));
  243.             foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
  244.                 // line 77
  245.                 echo "                                        ";
  246.                 $context['_parent'] = $context;
  247.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["filter"], "values", [], "any"falsefalsefalse77));
  248.                 foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
  249.                     // line 78
  250.                     echo "                                            ";
  251.                     if ((twig_get_attribute($this->env$this->source$context["value"], "isApplied", [], "any"falsefalsefalse78) && (twig_get_attribute($this->env$this->source$context["filter"], "type", [], "any"falsefalsefalse78) != "range"))) {
  252.                         // line 79
  253.                         echo "                                                <div class=\"d-inline-block delete-filter cursor-pointer\" data-filter=\"";
  254.                         echo twig_escape_filter($this->env, ((("filter-" twig_get_attribute($this->env$this->source$context["filter"], "code", [], "any"falsefalsefalse79)) . "-value-") . twig_get_attribute($this->env$this->source$context["value"], "slug", [], "any"falsefalsefalse79)), "html"nulltrue);
  255.                         echo "\" ><span>";
  256.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["value"], "label", [], "any"falsefalsefalse79), "html"nulltrue);
  257.                         echo " <i class=\"icon-cancel color-orange\"></i></span></div>
  258.                                             ";
  259.                     }
  260.                     // line 81
  261.                     echo "                                        ";
  262.                 }
  263.                 $_parent $context['_parent'];
  264.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
  265.                 $context array_intersect_key($context$_parent) + $_parent;
  266.                 // line 82
  267.                 echo "                                    ";
  268.             }
  269.             $_parent $context['_parent'];
  270.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']);
  271.             $context array_intersect_key($context$_parent) + $_parent;
  272.             // line 83
  273.             echo "                                </div>
  274.                                 <div class=\"order-md-1 pt-sm-0 pt-2\"><strong class=\"nbre-article fontsize-mobilesm-text \">";
  275.             // line 84
  276.             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.'84$this->source); })()), "count", [], "any"falsefalsefalse84), "html"nulltrue);
  277.             echo " ";
  278.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.products")), "html"nulltrue);
  279.             echo " </strong></div>
  280.                                 <div class=\"d-md-none_ d-block_ d-none mobile-label-filtre\">";
  281.             // line 85
  282.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.sort_per")), "html"nulltrue);
  283.             echo " <i class=\"icon-down-open-big\"></i></div>
  284.                             </div>
  285.                         </div>
  286.                     </div>
  287.                     <div class=\"liste-articles pt-lg-4 pt-md-3 pt-2 pb-md-4 pb-2 mt-xl-2 px-md-0 px-perso-top\">
  288.                         <div class=\"row mx-0\" id=\"products\">
  289.                             <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
  290.                                 <div class=\"h-100 pb-sm-3 pt-perso-10\">
  291.                                     <a href=\"#\" class=\"link-free-delivery d-flex align-items-center justify-content-center h-100 flex-column transition-bgcolor\">
  292.                                         ";
  293.             // line 94
  294.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.free_delivery");
  295.             echo "
  296.                                         <em>";
  297.             // line 95
  298.             echo twig_call_macro($macros["money"], "macro_convertAndFormat", [(isset($context["missingAmountFranco"]) || array_key_exists("missingAmountFranco"$context) ? $context["missingAmountFranco"] : (function () { throw new RuntimeError('Variable "missingAmountFranco" does not exist.'95$this->source); })())], 95$context$this->getSourceContext());
  299.             echo "</em>
  300. ";
  301.             // line 98
  302.             echo "
  303.                                     </a>
  304.                                 </div>
  305.                             </div>
  306.                             ";
  307.             // line 103
  308.             $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.'103$this->source); })()), "productsUsefull", [], "any"falsefalsefalse103), "count", [], "any"falsefalsefalse103);
  309.             // line 104
  310.             echo "                            ";
  311.             $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.'104$this->source); })()), "count", [], "any"falsefalsefalse104);
  312.             // line 105
  313.             echo "
  314.                             ";
  315.             // line 106
  316.             if (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'106$this->source); })()) == 1)) {
  317.                 // line 107
  318.                 echo "                                ";
  319.                 $context["productUsefullPos"] = twig_round(((isset($context["productsNbr"]) || array_key_exists("productsNbr"$context) ? $context["productsNbr"] : (function () { throw new RuntimeError('Variable "productsNbr" does not exist.'107$this->source); })()) / 2));
  320.                 // line 108
  321.                 echo "                            ";
  322.             } elseif (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'108$this->source); })()) > 0)) {
  323.                 // line 109
  324.                 echo "                                ";
  325.                 $context["productUsefullPos"] = twig_round(((isset($context["productsNbr"]) || array_key_exists("productsNbr"$context) ? $context["productsNbr"] : (function () { throw new RuntimeError('Variable "productsNbr" does not exist.'109$this->source); })()) / (isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'109$this->source); })())));
  326.                 // line 110
  327.                 echo "                            ";
  328.             }
  329.             // line 111
  330.             echo "
  331.                             ";
  332.             // line 112
  333.             $context["i"] = 0;
  334.             // line 113
  335.             echo "                            ";
  336.             $context["itemNum"] = 0;
  337.             // line 114
  338.             echo "                            ";
  339.             $context['_parent'] = $context;
  340.             $context['_seq'] = twig_ensure_traversable((isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'114$this->source); })()));
  341.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  342.                 // line 115
  343.                 echo "                                ";
  344.                 $context["itemNum"] = ((isset($context["itemNum"]) || array_key_exists("itemNum"$context) ? $context["itemNum"] : (function () { throw new RuntimeError('Variable "itemNum" does not exist.'115$this->source); })()) + 1);
  345.                 // line 116
  346.                 echo "                                <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
  347.                                     ";
  348.                 // line 117
  349.                 $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.'117$this->source); })()), "find", [=> twig_get_attribute($this->env$this->source$context["item"], "id", [], "any"falsefalsefalse117)], "method"falsefalsefalse117);
  350.                 // line 118
  351.                 echo "                                    ";
  352.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"118)->display(twig_to_array(["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'118$this->source); })())]));
  353.                 // line 119
  354.                 echo "                                </div>
  355.                                 ";
  356.                 // line 121
  357.                 if ((((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'121$this->source); })()) > 0) && ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'121$this->source); })()) < (isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'121$this->source); })())))) {
  358.                     // line 122
  359.                     echo "                                    ";
  360.                     if (((isset($context["itemNum"]) || array_key_exists("itemNum"$context) ? $context["itemNum"] : (function () { throw new RuntimeError('Variable "itemNum" does not exist.'122$this->source); })()) == (isset($context["productUsefullPos"]) || array_key_exists("productUsefullPos"$context) ? $context["productUsefullPos"] : (function () { throw new RuntimeError('Variable "productUsefullPos" does not exist.'122$this->source); })()))) {
  361.                         // line 123
  362.                         echo "                                        ";
  363.                         $context['_parent'] = $context;
  364.                         $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.'123$this->source); })()), "productsUsefull", [], "any"falsefalsefalse123), (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'123$this->source); })()), ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'123$this->source); })()) + 1)));
  365.                         foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
  366.                             // line 124
  367.                             echo "                                            ";
  368.                             $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.'124$this->source); })()), "find", [=> twig_get_attribute($this->env$this->source$context["itemUsefull"], "id", [], "any"falsefalsefalse124)], "method"falsefalsefalse124);
  369.                             // line 125
  370.                             echo "                                            ";
  371.                             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.'125$this->source); })()), "enabled", [], "any"falsefalsefalse125)) {
  372.                                 // line 126
  373.                                 echo "                                            <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 article-usefull\">
  374.                                                 ";
  375.                                 // line 127
  376.                                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"127)->display(twig_to_array(["product" => (isset($context["productUsefull"]) || array_key_exists("productUsefull"$context) ? $context["productUsefull"] : (function () { throw new RuntimeError('Variable "productUsefull" does not exist.'127$this->source); })())]));
  377.                                 // line 128
  378.                                 echo "                                            </div>
  379.                                             ";
  380.                             }
  381.                             // line 130
  382.                             echo "                                            ";
  383.                             $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'130$this->source); })()) + 1);
  384.                             // line 131
  385.                             echo "                                        ";
  386.                         }
  387.                         $_parent $context['_parent'];
  388.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemUsefull'], $context['_parent'], $context['loop']);
  389.                         $context array_intersect_key($context$_parent) + $_parent;
  390.                         // line 132
  391.                         echo "
  392.                                         ";
  393.                         // line 133
  394.                         $context["itemNum"] = 0;
  395.                         // line 134
  396.                         echo "                                    ";
  397.                     }
  398.                     // line 135
  399.                     echo "                                ";
  400.                 }
  401.                 // line 136
  402.                 echo "                            ";
  403.             }
  404.             $_parent $context['_parent'];
  405.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  406.             $context array_intersect_key($context$_parent) + $_parent;
  407.             // line 137
  408.             echo "
  409.                             ";
  410.             // line 138
  411.             if ((((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'138$this->source); })()) > 0) && ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'138$this->source); })()) < (isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr"$context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.'138$this->source); })())))) {
  412.                 // line 139
  413.                 echo "
  414.                                 ";
  415.                 // line 140
  416.                 $context['_parent'] = $context;
  417.                 $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.'140$this->source); })()), "productsUsefull", [], "any"falsefalsefalse140), (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'140$this->source); })()), ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'140$this->source); })()) + 1)));
  418.                 foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
  419.                     // line 141
  420.                     echo "                                    ";
  421.                     $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.'141$this->source); })()), "find", [=> twig_get_attribute($this->env$this->source$context["itemUsefull"], "id", [], "any"falsefalsefalse141)], "method"falsefalsefalse141);
  422.                     // line 142
  423.                     echo "                                    ";
  424.                     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.'142$this->source); })()), "enabled", [], "any"falsefalsefalse142)) {
  425.                         // line 143
  426.                         echo "                                        <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 article-usefull\">
  427.                                             ";
  428.                         // line 144
  429.                         $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"144)->display(twig_to_array(["product" => (isset($context["productUsefull"]) || array_key_exists("productUsefull"$context) ? $context["productUsefull"] : (function () { throw new RuntimeError('Variable "productUsefull" does not exist.'144$this->source); })())]));
  430.                         // line 145
  431.                         echo "                                        </div>
  432.                                     ";
  433.                     }
  434.                     // line 147
  435.                     echo "
  436.                                     ";
  437.                     // line 148
  438.                     $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'148$this->source); })()) + 1);
  439.                     // line 149
  440.                     echo "                                ";
  441.                 }
  442.                 $_parent $context['_parent'];
  443.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemUsefull'], $context['_parent'], $context['loop']);
  444.                 $context array_intersect_key($context$_parent) + $_parent;
  445.                 // line 150
  446.                 echo "                            ";
  447.             }
  448.             // line 151
  449.             echo "                        </div>
  450.                         ";
  451.             // line 152
  452.             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.'152$this->source); })()), "paginator", [], "any"falsefalsefalse152)], 152$context$this->getSourceContext());
  453.             echo "
  454.                     </div>
  455.                     ";
  456.             // line 154
  457.             if ( !twig_test_empty(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.'154$this->source); })()), "translation", [], "any"falsefalsefalse154), "textSEO", [], "any"falsefalsefalse154))) {
  458.                 // line 157
  459.                 echo "                        <div class=\"texte-gris fontsize-mobile-text text-regular-onlg pt-2  font-texte-normale pt-md-2 pt-0   mp-0 pb-xl-4 pb-md-3 \">
  460.                             <div class=\"texte-seo\">
  461.                                 ";
  462.                 // line 159
  463.                 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.'159$this->source); })()), "translation", [], "any"falsefalsefalse159), "textSEO", [], "any"falsefalsefalse159);
  464.                 echo "
  465.                             </div>
  466.                         </div>
  467.                     ";
  468.             }
  469.             // line 163
  470.             echo "                    ";
  471.             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.'163$this->source); })()), "productsAssociated", [], "any"falsefalsefalse163)) > 0)) {
  472.                 // line 164
  473.                 echo "                        <div class=\"pt-lg-4 pt-2\">
  474.                             <h2 class=\"titre-medium text-uppercase max-after\"><span>";
  475.                 // line 165
  476.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.products_associated"), "html"nulltrue);
  477.                 echo "</span></h2>
  478.                             <div class=\"contenu-art-top\">
  479.                                 <div class=\"selection-prev prev-top\"></div>
  480.                                 <div class=\"selection-next next-top\"></div>
  481.                                 <div id=\"sylius-carouselselection\" class=\"top-nouvselection swiper-container product-swiper-container\">
  482.                                     <div class=\"swiper-wrapper\">
  483.                                         ";
  484.                 // line 171
  485.                 $context['_parent'] = $context;
  486.                 $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.'171$this->source); })()), "productsAssociated", [], "any"falsefalsefalse171));
  487.                 $context['loop'] = [
  488.                   'parent' => $context['_parent'],
  489.                   'index0' => 0,
  490.                   'index'  => 1,
  491.                   'first'  => true,
  492.                 ];
  493.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  494.                     $length count($context['_seq']);
  495.                     $context['loop']['revindex0'] = $length 1;
  496.                     $context['loop']['revindex'] = $length;
  497.                     $context['loop']['length'] = $length;
  498.                     $context['loop']['last'] = === $length;
  499.                 }
  500.                 foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  501.                     // line 172
  502.                     echo "                                            <div class=\"produit-selection-item swiper-slide\">
  503.                                                 <div class=\"\">
  504.                                                     ";
  505.                     // line 174
  506.                     $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"174)->display($context);
  507.                     // line 175
  508.                     echo "                                                </div>
  509.                                             </div>
  510.                                         ";
  511.                     ++$context['loop']['index0'];
  512.                     ++$context['loop']['index'];
  513.                     $context['loop']['first'] = false;
  514.                     if (isset($context['loop']['length'])) {
  515.                         --$context['loop']['revindex0'];
  516.                         --$context['loop']['revindex'];
  517.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  518.                     }
  519.                 }
  520.                 $_parent $context['_parent'];
  521.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  522.                 $context array_intersect_key($context$_parent) + $_parent;
  523.                 // line 178
  524.                 echo "                                    </div>
  525.                                     <div class=\"swiper-pagination\"></div>
  526.                                 </div>
  527.                             </div>
  528.                         </div>
  529.                     ";
  530.             }
  531.             // line 184
  532.             echo "                ";
  533.         }
  534.         // line 185
  535.         echo "            </div>
  536.         </div>
  537.     </div>
  538. ";
  539.         
  540.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  541.         
  542.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  543.     }
  544.     public function getTemplateName()
  545.     {
  546.         return "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig";
  547.     }
  548.     public function isTraitable()
  549.     {
  550.         return false;
  551.     }
  552.     public function getDebugInfo()
  553.     {
  554.         return array (  563 => 185,  560 => 184,  552 => 178,  536 => 175,  534 => 174,  530 => 172,  513 => 171,  504 => 165,  501 => 164,  498 => 163,  491 => 159,  487 => 157,  485 => 154,  480 => 152,  477 => 151,  474 => 150,  468 => 149,  466 => 148,  463 => 147,  459 => 145,  457 => 144,  454 => 143,  451 => 142,  448 => 141,  444 => 140,  441 => 139,  439 => 138,  436 => 137,  430 => 136,  427 => 135,  424 => 134,  422 => 133,  419 => 132,  413 => 131,  410 => 130,  406 => 128,  404 => 127,  401 => 126,  398 => 125,  395 => 124,  390 => 123,  387 => 122,  385 => 121,  381 => 119,  378 => 118,  376 => 117,  373 => 116,  370 => 115,  365 => 114,  362 => 113,  360 => 112,  357 => 111,  354 => 110,  351 => 109,  348 => 108,  345 => 107,  343 => 106,  340 => 105,  337 => 104,  335 => 103,  328 => 98,  324 => 95,  320 => 94,  308 => 85,  302 => 84,  299 => 83,  293 => 82,  287 => 81,  279 => 79,  276 => 78,  271 => 77,  267 => 76,  263 => 75,  257 => 71,  255 => 70,  251 => 68,  243 => 63,  238 => 60,  236 => 59,  230 => 55,  228 => 54,  223 => 51,  220 => 50,  210 => 49,  198 => 46,  195 => 45,  189 => 43,  182 => 40,  179 => 39,  176 => 38,  173 => 37,  170 => 36,  168 => 35,  165 => 34,  159 => 32,  153 => 30,  150 => 29,  147 => 28,  144 => 27,  138 => 25,  135 => 24,  125 => 23,  114 => 19,  108 => 17,  105 => 16,  99 => 14,  93 => 12,  90 => 11,  87 => 10,  84 => 9,  78 => 7,  75 => 6,  65 => 5,  54 => 1,  52 => 3,  50 => 2,  37 => 1,);
  555.     }
  556.     public function getSourceContext()
  557.     {
  558.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  559. {% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
  560. {% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  561. {% block title %}
  562.     {% if taxon is defined and taxon.translation.metaTitle is not null and taxon.translation.metaTitle != \"\" %}
  563.         {{ taxon.translation.metaTitle }}
  564.     {% else %}
  565.         {% if app_get_page_meta_by_code(\"taxon\",{ 'taxon': taxon }) is not empty %}
  566.             {% set meta = app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon }) %}
  567.             {% if meta.title is not null %}
  568.                 {{ meta.title }}
  569.             {% else %}
  570.                 {{ parent() }}
  571.             {% endif %}
  572.         {% else %}
  573.             {{ parent() }}
  574.         {% endif %}
  575.     {% endif %}
  576. {% endblock %}
  577. {% block metatags %}
  578.     {% if taxon is defined and taxon.translation.metaDescription is not null and taxon.translation.metaTitle != \"\" %}
  579.         <meta name=\"description\" content=\"{{ taxon.translation.metaDescription }}\">
  580.     {% else %}
  581.         {% if app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon}) is not empty %}
  582.             {% set meta = app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon }) %}
  583.             {% if meta.metaDescription is not null %}
  584.                 <meta name=\"description\" content=\"{{ meta.metaDescription }}\">
  585.             {% else %}
  586.                 {{ parent() }}
  587.             {% endif %}
  588.             {% if meta.metaRobotIndex == true %}
  589.                 {% set metaRobotIndex = 'index, follow' %}
  590.             {% elseif meta.metaRobotIndex == false %}
  591.                 {% set metaRobotIndex = 'noindex, nofollow' %}
  592.             {% endif %}
  593.             <meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
  594.         {% else %}
  595.             {{ parent() }}
  596.         {% endif %}
  597.     {% endif %}
  598. {% endblock %}
  599. {% block content %}
  600.     {% set missingAmountFranco = app_get_missing_franco_port() %}
  601.     <div class=\"page-categorie-content\">
  602.         <div class=\"categorie-top\">
  603.             <div class=\"max-container-4 px-0\">
  604.                 {% include '@SyliusShop/Product/Index/_sidebar.html.twig' %}
  605.             </div>
  606.         </div>
  607.         <div class=\"max-container-4 px-xl-0\">
  608.             <div class=\"categ-bottom\">
  609.                 {% if result.count == 0 %}
  610.                     <div class=\"my-3 px-2 text-center pt-4 no-result\">
  611.                         <div class=\"d-inline-block\">
  612.                             <div class=\"alert alert-danger\">
  613.                                 {{ 'app.common.aucun_produit_disponible'|trans }}
  614.                             </div>
  615.                         </div>
  616.                     </div>
  617.                 {% else %}
  618.                     <div class=\"px-0\">
  619.                         <div class=\"filtre-cat d-none\">
  620.                             {% include '@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig' %}
  621.                         </div>
  622.                         <div class=\"res-filtre  fontsize-mobile-text pb-0 pt-md-0 pt-3 d-none \">
  623.                             <div class=\"d-flex align-items-center justify-content-md-start justify-content-between\">
  624.                                 <div class=\"order-md-12 d-none d-md-block\">
  625.                                     <h2 class=\"d-inline-block text-sofiaMedium\" style=\"font-size: 1.2rem; margin-bottom: 0;\">{{ \"app.ui.your_selection\"|trans }} :</h2>
  626.                                     {% for filter in result.filters %}
  627.                                         {% for value in filter.values %}
  628.                                             {% if value.isApplied and filter.type != \"range\" %}
  629.                                                 <div class=\"d-inline-block delete-filter cursor-pointer\" data-filter=\"{{ 'filter-' ~ filter.code ~ '-value-' ~ value.slug }}\" ><span>{{ value.label}} <i class=\"icon-cancel color-orange\"></i></span></div>
  630.                                             {% endif %}
  631.                                         {% endfor %}
  632.                                     {% endfor %}
  633.                                 </div>
  634.                                 <div class=\"order-md-1 pt-sm-0 pt-2\"><strong class=\"nbre-article fontsize-mobilesm-text \">{{ result.count}} {{ \"app.ui.products\"|trans|lower }} </strong></div>
  635.                                 <div class=\"d-md-none_ d-block_ d-none mobile-label-filtre\">{{ \"app.ui.sort_per\"|trans|capitalize }} <i class=\"icon-down-open-big\"></i></div>
  636.                             </div>
  637.                         </div>
  638.                     </div>
  639.                     <div class=\"liste-articles pt-lg-4 pt-md-3 pt-2 pb-md-4 pb-2 mt-xl-2 px-md-0 px-perso-top\">
  640.                         <div class=\"row mx-0\" id=\"products\">
  641.                             <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
  642.                                 <div class=\"h-100 pb-sm-3 pt-perso-10\">
  643.                                     <a href=\"#\" class=\"link-free-delivery d-flex align-items-center justify-content-center h-100 flex-column transition-bgcolor\">
  644.                                         {{ \"app.ui.free_delivery\"|trans|raw }}
  645.                                         <em>{{ money.convertAndFormat(missingAmountFranco) }}</em>
  646. {#                                        <em>{{ \"app.ui.from\"|trans }} 60€</em>#}
  647. {#                                        {{'app.cart.missing_x_for_franco'|trans}} <span class=\"color-pink-s\">{{ money.convertAndFormat(missingAmountFranco) }}</span> {{'app.cart.before_free_shipping'|trans}}#}
  648.                                     </a>
  649.                                 </div>
  650.                             </div>
  651.                             {% set productsUsefullNbr = taxon.productsUsefull.count %}
  652.                             {% set productsNbr = result.count %}
  653.                             {% if productsUsefullNbr == 1 %}
  654.                                 {% set productUsefullPos = (productsNbr /  2)|round %}
  655.                             {% elseif productsUsefullNbr > 0 %}
  656.                                 {% set productUsefullPos = (productsNbr /  productsUsefullNbr)|round %}
  657.                             {% endif %}
  658.                             {% set i = 0 %}
  659.                             {% set itemNum = 0 %}
  660.                             {% for item in result %}
  661.                                 {% set itemNum = itemNum + 1 %}
  662.                                 <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
  663.                                     {% set product = product_repository.find(item.id) %}
  664.                                     {% include '@SyliusShop/Product/_box.html.twig' with {'product': product} only %}
  665.                                 </div>
  666.                                 {% if productsUsefullNbr > 0 and i < productsUsefullNbr %}
  667.                                     {% if itemNum == productUsefullPos %}
  668.                                         {% for itemUsefull in taxon.productsUsefull|slice(i, i + 1) %}
  669.                                             {% set productUsefull = product_repository.find(itemUsefull.id) %}
  670.                                             {% if productUsefull.enabled %}
  671.                                             <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 article-usefull\">
  672.                                                 {% include '@SyliusShop/Product/_box.html.twig' with {'product': productUsefull} only %}
  673.                                             </div>
  674.                                             {% endif %}
  675.                                             {% set i = i + 1 %}
  676.                                         {% endfor %}
  677.                                         {% set itemNum = 0 %}
  678.                                     {% endif %}
  679.                                 {% endif %}
  680.                             {% endfor %}
  681.                             {% if productsUsefullNbr > 0 and i < productsUsefullNbr %}
  682.                                 {% for itemUsefull in taxon.productsUsefull|slice(i, i + 1) %}
  683.                                     {% set productUsefull = product_repository.find(itemUsefull.id) %}
  684.                                     {% if productUsefull.enabled %}
  685.                                         <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 article-usefull\">
  686.                                             {% include '@SyliusShop/Product/_box.html.twig' with {'product': productUsefull} only %}
  687.                                         </div>
  688.                                     {% endif %}
  689.                                     {% set i = i + 1 %}
  690.                                 {% endfor %}
  691.                             {% endif %}
  692.                         </div>
  693.                         {{ pagination.simple(result.paginator) }}
  694.                     </div>
  695.                     {% if taxon.translation.textSEO is not empty %}
  696. {#                        <div class=\"texte-gris fontsize-mobile-text text-regular-onlg pt-2 font-texte-normale pt-md-2 pt-0   mp-0 pb-xl-4 pb-md-3\">#}
  697. {#                            {{ taxon.translation.textSEO|raw }}#}
  698.                         <div class=\"texte-gris fontsize-mobile-text text-regular-onlg pt-2  font-texte-normale pt-md-2 pt-0   mp-0 pb-xl-4 pb-md-3 \">
  699.                             <div class=\"texte-seo\">
  700.                                 {{ taxon.translation.textSEO|raw }}
  701.                             </div>
  702.                         </div>
  703.                     {% endif %}
  704.                     {% if taxon.productsAssociated|length > 0 %}
  705.                         <div class=\"pt-lg-4 pt-2\">
  706.                             <h2 class=\"titre-medium text-uppercase max-after\"><span>{{'app.ui.products_associated'|trans}}</span></h2>
  707.                             <div class=\"contenu-art-top\">
  708.                                 <div class=\"selection-prev prev-top\"></div>
  709.                                 <div class=\"selection-next next-top\"></div>
  710.                                 <div id=\"sylius-carouselselection\" class=\"top-nouvselection swiper-container product-swiper-container\">
  711.                                     <div class=\"swiper-wrapper\">
  712.                                         {% for product in taxon.productsAssociated %}
  713.                                             <div class=\"produit-selection-item swiper-slide\">
  714.                                                 <div class=\"\">
  715.                                                     {% include '@SyliusShop/Product/_box.html.twig' %}
  716.                                                 </div>
  717.                                             </div>
  718.                                         {% endfor %}
  719.                                     </div>
  720.                                     <div class=\"swiper-pagination\"></div>
  721.                                 </div>
  722.                             </div>
  723.                         </div>
  724.                     {% endif %}
  725.                 {% endif %}
  726.             </div>
  727.         </div>
  728.     </div>
  729. {% endblock %}
  730. ""@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig");
  731.     }
  732. }