<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig */
class __TwigTemplate_b3196220182bcd1d74728a4beed1ae6c extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"));
// line 2
$macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 2)->unwrap();
// line 1
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 5
echo " ";
if ((array_key_exists("taxon", $context) && !(null === twig_get_attribute($this->env, $this->source, 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.', 5, $this->source); })()), "translation", [], "any", false, false, false, 5), "metaTitle", [], "any", false, false, false, 5)))) {
// line 6
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 6, $this->source); })()), "translation", [], "any", false, false, false, 6), "metaTitle", [], "any", false, false, false, 6), "html", null, true);
echo "
";
} else {
// line 8
echo " ";
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); })())]))) {
// line 9
echo " ";
$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); })())]);
// line 10
echo " ";
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", false, false, false, 10))) {
// line 11
echo " ";
echo twig_escape_filter($this->env, 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", false, false, false, 11), "html", null, true);
echo "
";
} else {
// line 13
echo " ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}
// line 15
echo " ";
} else {
// line 16
echo " ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}
// line 18
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 21
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 22
echo " ";
if ((array_key_exists("taxon", $context) && !(null === twig_get_attribute($this->env, $this->source, 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.', 22, $this->source); })()), "translation", [], "any", false, false, false, 22), "metaDescription", [], "any", false, false, false, 22)))) {
// line 23
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 23, $this->source); })()), "translation", [], "any", false, false, false, 23), "metaDescription", [], "any", false, false, false, 23), "html", null, true);
echo "\">
";
} else {
// line 25
echo " ";
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); })())]))) {
// line 26
echo " ";
$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); })())]);
// line 27
echo " ";
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", false, false, false, 27))) {
// line 28
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, 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.', 28, $this->source); })()), "metaDescription", [], "any", false, false, false, 28), "html", null, true);
echo "\">
";
} else {
// line 30
echo " ";
$this->displayParentBlock("metatags", $context, $blocks);
echo "
";
}
// line 32
echo "
";
} else {
// line 34
echo " ";
$this->displayParentBlock("metatags", $context, $blocks);
echo "
";
}
// line 36
echo " ";
}
// line 37
echo "
";
// line 38
if ((twig_get_attribute($this->env, $this->source, 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.', 38, $this->source); })()), "translation", [], "any", false, false, false, 38), "metaRobotIndex", [], "any", false, false, false, 38) == true)) {
// line 39
echo " ";
$context["metaRobotIndex"] = "index, follow";
// line 40
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, 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.', 40, $this->source); })()), "translation", [], "any", false, false, false, 40), "metaRobotIndex", [], "any", false, false, false, 40) == false)) {
// line 41
echo " ";
$context["metaRobotIndex"] = "noindex, nofollow";
// line 42
echo " ";
}
// line 43
echo "
";
// line 44
if (array_key_exists("metaRobotIndex", $context)) {
// line 45
echo " <meta name=\"robots\" content=\"";
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", null, true);
echo "\"/>
";
}
// line 47
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 50
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 51
echo " ";
$context["wishlist"] = null;
// line 52
echo " ";
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", false, false, false, 52)) {
// line 53
echo " ";
$context["wishlist"] = $this->extensions['App\Twig\Extensions\Wishlist\WishlistExtension']->getWishlist();
// line 54
echo " ";
}
// line 55
echo " <section class=\"container px-xl-0 px-2\">
<section class=\"container-page-aside pb-2\">
<div class=\"\">
";
// line 58
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->source, twig_get_attribute($this->env, $this->source, 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.', 58, $this->source); })()), "request", [], "any", false, false, false, 58), "attributes", [], "any", false, false, false, 58), "get", [0 => "slug"], "method", false, false, false, 58), "template" => "@SyliusShop/Taxon/_breadcrumb.html.twig"]));
echo "
</div>
<div class=\"bg-white rounded-10 border p-xl-4 p-3 mb-4 page-categorie-content\">
<div class=\"categorie-top pb-2 gradient-whiteb avenir-book pr-xl-5 pr-4\">
<h1 class=\"title-big text-left has-after pb-3\">";
// line 62
echo twig_escape_filter($this->env, 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.', 62, $this->source); })()), "name", [], "any", false, false, false, 62), "html", null, true);
echo "</h1>
<div class=\"expand-me font-15 font-16-mobile\">
";
// line 64
echo twig_get_attribute($this->env, $this->source, 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.', 64, $this->source); })()), "translation", [], "any", false, false, false, 64), "description", [], "any", false, false, false, 64);
echo "
</div>
</div>
";
// line 67
if ((twig_length_filter($this->env, 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.', 67, $this->source); })()), "children", [], "any", false, false, false, 67)) > 0)) {
// line 68
echo "
<div class=\"pt-3 sscategorie-container font-16-mobile ";
// line 69
if ((twig_length_filter($this->env, 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.', 69, $this->source); })()), "children", [], "any", false, false, false, 69)) < 20)) {
echo " max-container-txt ";
}
echo "\">
<ul class=\"row no-gutters pl-3 \">
";
// line 71
$context['_parent'] = $context;
$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", false, false, false, 71));
foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
// line 72
echo " <li class=\"col-12 pr-md-3 ";
if ((twig_length_filter($this->env, 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.', 72, $this->source); })()), "children", [], "any", false, false, false, 72)) < 20)) {
echo "col-md-6 ";
} else {
echo " col-lg-4 col-md-6 ";
}
echo "\"><a href=\"";
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", false, false, false, 72), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "translation", [], "any", false, false, false, 72), "locale", [], "any", false, false, false, 72)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "name", [], "any", false, false, false, 72), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "name", [], "any", false, false, false, 72), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
echo " </ul>
</div>
";
}
// line 77
echo " ";
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", false, false, false, 77) == 0)) {
// line 78
echo " <div class=\"categorie-bottom px-lg-0\">
<div class=\"no-result pt-md-4 pt-2 pb-md-4 pb-2 mt-xl-2 px-lg-0 px-3\">
<div class=\"py-4 my-3 text-left \">
<div class=\"d-inline-block\">
<div class=\"alert alert-danger\">
";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.no_product_available"), "html", null, true);
echo "
</div>
</div>
</div>
</div>
</div>
";
} else {
// line 90
echo " <div class=\"pb-3\">
<div class=\"filtre-cat mt-3\">
<div class=\"categorie-filtre mbiz-sylius-search-filters row no-gutters align-items-center\">
<div class=\"lib-f-c font-weight-bold font-16 pr-xl-5 pr-3 col-auto\">
<span class=\"d-block pb-2\">Trier par :</span>
</div>
<div class=\"d-lg-none d-block py-3 text-center \">
<div class=\"d-inline-block mobile-label-filtre\">
<span class=\"d-flex align-items-center\">
<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\">
<g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
<g id=\"group-desktop\" fill-rule=\"nonzero\">
<path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
</g>
</g>
</svg>
<strong class=\"\">";
// line 108
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.sort_by"), "html", null, true);
echo "</strong>
</span>
</div>
</div>
<div class=\"cell-facette col\">
<div class=\"d-flex justify-content-between d-lg-none align-items-center p-3 border-bottom\">
<strong class=\"font-20 text-uppercase\">";
// line 114
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.refine_your_choice"), "html", null, true);
echo "</strong>
<span class=\"close-filtre-categ \"><img src=\"";
// line 115
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/closemenu.png"), "html", null, true);
echo "\" alt=\"X\" class=\"d-block\" /></span>
</div>
<div class=\"content-fitre-categ align-items-center justify-content-center\">
";
// line 118
$this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 118)->display($context);
// line 119
echo " </div>
</div>
</div>
</div>
<div class=\"res-filtre fontsize-mobile-text pb-md-0 pb-2 \">
<div class=\"row no-gutters align-items-center justify-content-between\">
<div class=\"col \">
<span class=\"d-inline-block font-16\">";
// line 126
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.your_selection"), "html", null, true);
echo " :</span>
<div class=\"d-inline-block\">
";
// line 128
$context['_parent'] = $context;
$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", false, false, false, 128));
foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
// line 129
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["filter"], "values", [], "any", false, false, false, 129));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 130
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["value"], "isApplied", [], "any", false, false, false, 130) && (twig_get_attribute($this->env, $this->source, $context["filter"], "type", [], "any", false, false, false, 130) != "range"))) {
// line 131
echo " <span class=\"filtre delete-filter\" data-filter=\"";
echo twig_escape_filter($this->env, ((("filter-" . twig_get_attribute($this->env, $this->source, $context["filter"], "code", [], "any", false, false, false, 131)) . "-value-") . twig_get_attribute($this->env, $this->source, $context["value"], "slug", [], "any", false, false, false, 131)), "html", null, true);
echo "\" ><i class=\"icon-cancel\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["value"], "label", [], "any", false, false, false, 131), "html", null, true);
echo " </span></span>
";
}
// line 133
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 135
echo " </div>
</div>
<div class=\"col-auto\">
";
// line 138
echo twig_escape_filter($this->env, 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.', 138, $this->source); })()), "count", [], "any", false, false, false, 138), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.items"), "html", null, true);
echo "
</div>
</div>
</div>
</div>
<div class=\"categorie-bottom px-lg-0\">
<div class=\"py-4\">
<div class=\"row justify-content-between no-gutters px-xl-0 px-lg-2 px-0\">
<div class=\"col-auto pr-1\">";
// line 146
$this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_pagination.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 146)->display($context);
echo "</div>
<div class=\"col-auto pl-1\">";
// line 147
$this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 147)->display($context);
echo "</div>
</div>
</div>
<div class=\"row no-gutters mx-n3\" id=\"products\">
";
// line 151
$context["productsUsefullNbr"] = twig_get_attribute($this->env, $this->source, 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.', 151, $this->source); })()), "productsUsefull", [], "any", false, false, false, 151), "count", [], "any", false, false, false, 151);
// line 152
echo " ";
$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", false, false, false, 152);
// line 153
echo "
";
// line 154
if (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr", $context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.', 154, $this->source); })()) == 1)) {
// line 155
echo " ";
$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));
// line 156
echo " ";
} elseif (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr", $context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.', 156, $this->source); })()) > 0)) {
// line 157
echo " ";
$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); })())));
// line 158
echo " ";
}
// line 159
echo "
";
// line 160
$context["i"] = 0;
// line 161
echo " ";
$context["itemNum"] = 0;
// line 162
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 163
echo " ";
$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);
// line 164
echo " <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4\">
";
// line 165
$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", [0 => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 165)], "method", false, false, false, 165);
// line 166
echo " ";
$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); })())]));
// line 167
echo " </div>
";
// line 169
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); })())))) {
// line 170
echo " ";
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); })()))) {
// line 171
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, 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); })()), "productsUsefull", [], "any", false, false, false, 171), (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)));
foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
// line 172
echo " ";
$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", [0 => twig_get_attribute($this->env, $this->source, $context["itemUsefull"], "id", [], "any", false, false, false, 172)], "method", false, false, false, 172);
// line 173
echo " ";
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", false, false, false, 173)) {
// line 174
echo " <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
";
// line 175
$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); })())]));
// line 176
echo " </div>
";
}
// line 178
echo " ";
$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);
// line 179
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemUsefull'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 180
echo "
";
// line 181
$context["itemNum"] = 0;
// line 182
echo " ";
}
// line 183
echo " ";
}
// line 184
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 185
echo "
";
// line 186
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); })())))) {
// line 187
echo "
";
// line 188
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, 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.', 188, $this->source); })()), "productsUsefull", [], "any", false, false, false, 188), (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)));
foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
// line 189
echo " ";
$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", [0 => twig_get_attribute($this->env, $this->source, $context["itemUsefull"], "id", [], "any", false, false, false, 189)], "method", false, false, false, 189);
// line 190
echo " ";
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", false, false, false, 190)) {
// line 191
echo " <div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
";
// line 192
$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); })())]));
// line 193
echo " </div>
";
}
// line 195
echo "
";
// line 196
$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);
// line 197
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemUsefull'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 198
echo " ";
}
// line 199
echo " </div>
";
// line 200
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", false, false, false, 200)], 200, $context, $this->getSourceContext());
echo "
</div>
";
}
// line 203
echo " </div>
";
// line 204
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["taxon"] ?? null), "translation", [], "any", false, true, false, 204), "textSeo", [], "any", true, true, false, 204)) {
// line 205
echo " <div class=\"text-grey font-15 py-lg-4 py-3 d-none d-md-block\">
";
// line 206
echo twig_get_attribute($this->env, $this->source, 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.', 206, $this->source); })()), "translation", [], "any", false, false, false, 206), "textSeo", [], "any", false, false, false, 206);
echo "
</div>
";
}
// line 209
echo " </section>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
{% block title %}
{% if taxon is defined and taxon.translation.metaTitle is not null %}
{{ taxon.translation.metaTitle }}
{% else %}
{% if app_get_page_meta_by_code(\"taxon\",{ 'taxon': taxon }) is not empty %}
{% set meta = app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon }) %}
{% if meta.title is not null %}
{{ meta.title }}
{% else %}
{{ parent() }}
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endif %}
{% endblock %}
{% block metatags %}
{% if taxon is defined and taxon.translation.metaDescription is not null %}
<meta name=\"description\" content=\"{{ taxon.translation.metaDescription }}\">
{% else %}
{% if app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon}) is not empty %}
{% set meta = app_get_page_meta_by_code(\"taxon\", { 'taxon': taxon }) %}
{% if meta.metaDescription is not null %}
<meta name=\"description\" content=\"{{ meta.metaDescription }}\">
{% else %}
{{ parent() }}
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endif %}
{% if taxon.translation.metaRobotIndex == true %}
{% set metaRobotIndex = 'index, follow' %}
{% elseif taxon.translation.metaRobotIndex == false %}
{% set metaRobotIndex = 'noindex, nofollow' %}
{% endif %}
{% if metaRobotIndex is defined %}
<meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
{% endif %}
{% endblock %}
{% block content %}
{% set wishlist = null %}
{% if app.user %}
{% set wishlist = app_get_wishlist() %}
{% endif %}
<section class=\"container px-xl-0 px-2\">
<section class=\"container-page-aside pb-2\">
<div class=\"\">
{{ render(url('sylius_shop_partial_taxon_show_by_slug', {'slug': app.request.attributes.get('slug'),'template': '@SyliusShop/Taxon/_breadcrumb.html.twig'})) }}
</div>
<div class=\"bg-white rounded-10 border p-xl-4 p-3 mb-4 page-categorie-content\">
<div class=\"categorie-top pb-2 gradient-whiteb avenir-book pr-xl-5 pr-4\">
<h1 class=\"title-big text-left has-after pb-3\">{{ taxon.name }}</h1>
<div class=\"expand-me font-15 font-16-mobile\">
{{ taxon.translation.description|raw }}
</div>
</div>
{% if taxon.children|length > 0 %}
<div class=\"pt-3 sscategorie-container font-16-mobile {% if taxon.children|length < 20 %} max-container-txt {% endif %}\">
<ul class=\"row no-gutters pl-3 \">
{% for childTaxon in taxon.children %}
<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>
{% endfor %}
</ul>
</div>
{% endif %}
{% if result.count == 0 %}
<div class=\"categorie-bottom px-lg-0\">
<div class=\"no-result pt-md-4 pt-2 pb-md-4 pb-2 mt-xl-2 px-lg-0 px-3\">
<div class=\"py-4 my-3 text-left \">
<div class=\"d-inline-block\">
<div class=\"alert alert-danger\">
{{ 'app.common.no_product_available'|trans }}
</div>
</div>
</div>
</div>
</div>
{% else %}
<div class=\"pb-3\">
<div class=\"filtre-cat mt-3\">
<div class=\"categorie-filtre mbiz-sylius-search-filters row no-gutters align-items-center\">
<div class=\"lib-f-c font-weight-bold font-16 pr-xl-5 pr-3 col-auto\">
<span class=\"d-block pb-2\">Trier par :</span>
</div>
<div class=\"d-lg-none d-block py-3 text-center \">
<div class=\"d-inline-block mobile-label-filtre\">
<span class=\"d-flex align-items-center\">
<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\">
<g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
<g id=\"group-desktop\" fill-rule=\"nonzero\">
<path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
</g>
</g>
</svg>
<strong class=\"\">{{'app.taxon.sort_by'|trans}}</strong>
</span>
</div>
</div>
<div class=\"cell-facette col\">
<div class=\"d-flex justify-content-between d-lg-none align-items-center p-3 border-bottom\">
<strong class=\"font-20 text-uppercase\">{{'app.taxon.refine_your_choice'|trans}}</strong>
<span class=\"close-filtre-categ \"><img src=\"{{asset('images/closemenu.png')}}\" alt=\"X\" class=\"d-block\" /></span>
</div>
<div class=\"content-fitre-categ align-items-center justify-content-center\">
{% include '@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig' %}
</div>
</div>
</div>
</div>
<div class=\"res-filtre fontsize-mobile-text pb-md-0 pb-2 \">
<div class=\"row no-gutters align-items-center justify-content-between\">
<div class=\"col \">
<span class=\"d-inline-block font-16\">{{'app.taxon.your_selection'|trans}} :</span>
<div class=\"d-inline-block\">
{% for filter in result.filters %}
{% for value in filter.values %}
{% if value.isApplied and filter.type != \"range\" %}
<span class=\"filtre delete-filter\" data-filter=\"{{ 'filter-' ~ filter.code ~ '-value-' ~ value.slug }}\" ><i class=\"icon-cancel\"></i><span>{{ value.label}} </span></span>
{% endif %}
{% endfor %}
{% endfor %}
</div>
</div>
<div class=\"col-auto\">
{{result.count}} {{'app.taxon.items'|trans}}
</div>
</div>
</div>
</div>
<div class=\"categorie-bottom px-lg-0\">
<div class=\"py-4\">
<div class=\"row justify-content-between no-gutters px-xl-0 px-lg-2 px-0\">
<div class=\"col-auto pr-1\">{% include '@MonsieurBizSyliusSearchPlugin/Search/_pagination.html.twig' %}</div>
<div class=\"col-auto pl-1\">{% include '@MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig' %}</div>
</div>
</div>
<div class=\"row no-gutters mx-n3\" id=\"products\">
{% set productsUsefullNbr = taxon.productsUsefull.count %}
{% set productsNbr = result.count %}
{% if productsUsefullNbr == 1 %}
{% set productUsefullPos = (productsNbr / 2)|round %}
{% elseif productsUsefullNbr > 0 %}
{% set productUsefullPos = (productsNbr / productsUsefullNbr)|round %}
{% endif %}
{% set i = 0 %}
{% set itemNum = 0 %}
{% for item in result %}
{% set itemNum = itemNum + 1 %}
<div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4\">
{% set product = product_repository.find(item.id) %}
{% include '@SyliusShop/Product/_box.html.twig' with {'product': product, 'wishlist': wishlist} only %}
</div>
{% if productsUsefullNbr > 0 and i < productsUsefullNbr %}
{% if itemNum == productUsefullPos %}
{% for itemUsefull in taxon.productsUsefull|slice(i, i + 1) %}
{% set productUsefull = product_repository.find(itemUsefull.id) %}
{% if productUsefull.enabled %}
<div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
{% include '@SyliusShop/Product/_box.html.twig' with {'product': productUsefull, 'wishlist': wishlist} only %}
</div>
{% endif %}
{% set i = i + 1 %}
{% endfor %}
{% set itemNum = 0 %}
{% endif %}
{% endif %}
{% endfor %}
{% if productsUsefullNbr > 0 and i < productsUsefullNbr %}
{% for itemUsefull in taxon.productsUsefull|slice(i, i + 1) %}
{% set productUsefull = product_repository.find(itemUsefull.id) %}
{% if productUsefull.enabled %}
<div class=\"col-5-desk col-lg-3 col-md-4 col-6 mb-lg-5 mb-4 article-usefull\">
{% include '@SyliusShop/Product/_box.html.twig' with {'product': productUsefull} only %}
</div>
{% endif %}
{% set i = i + 1 %}
{% endfor %}
{% endif %}
</div>
{{ pagination.simple(result.paginator) }}
</div>
{% endif %}
</div>
{% if taxon.translation.textSeo is defined %}
<div class=\"text-grey font-15 py-lg-4 py-3 d-none d-md-block\">
{{ taxon.translation.textSeo|raw }}
</div>
{% endif %}
</section>
</section>
{% endblock %}
", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", "/var/www/html/themes/BootstrapTheme/templates/bundles/MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig");
}
}