<?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_cc6e7465b4bd843b3f886afdd7e3be7f60a1eba52d764d7b28bd49bedba5705d 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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 3
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 3)->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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 6
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.', 6, $this->source); })()), "translation", [], "any", false, false, false, 6), "metaTitle", [], "any", false, false, false, 6))) && (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) != ""))) {
// line 7
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.', 7, $this->source); })()), "translation", [], "any", false, false, false, 7), "metaTitle", [], "any", false, false, false, 7), "html", null, true);
echo "
";
} else {
// line 9
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.', 9, $this->source); })())]))) {
// line 10
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.', 10, $this->source); })())]);
// line 11
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.', 11, $this->source); })()), "title", [], "any", false, false, false, 11))) {
// line 12
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.', 12, $this->source); })()), "title", [], "any", false, false, false, 12), "html", null, true);
echo "
";
} else {
// line 14
echo " ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}
// line 16
echo " ";
} else {
// line 17
echo " ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}
// line 19
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 23
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 24
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.', 24, $this->source); })()), "translation", [], "any", false, false, false, 24), "metaDescription", [], "any", false, false, false, 24))) && (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.', 24, $this->source); })()), "translation", [], "any", false, false, false, 24), "metaTitle", [], "any", false, false, false, 24) != ""))) {
// line 25
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.', 25, $this->source); })()), "translation", [], "any", false, false, false, 25), "metaDescription", [], "any", false, false, false, 25), "html", null, true);
echo "\">
";
} else {
// line 27
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.', 27, $this->source); })())]))) {
// line 28
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.', 28, $this->source); })())]);
// line 29
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.', 29, $this->source); })()), "metaDescription", [], "any", false, false, false, 29))) {
// line 30
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.', 30, $this->source); })()), "metaDescription", [], "any", false, false, false, 30), "html", null, true);
echo "\">
";
} else {
// line 32
echo " ";
$this->displayParentBlock("metatags", $context, $blocks);
echo "
";
}
// line 34
echo "
";
// line 35
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", false, false, false, 35) == true)) {
// line 36
echo " ";
$context["metaRobotIndex"] = "index, follow";
// line 37
echo " ";
} 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", false, false, false, 37) == false)) {
// line 38
echo " ";
$context["metaRobotIndex"] = "noindex, nofollow";
// line 39
echo " ";
}
// line 40
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.', 40, $this->source); })()), "html", null, true);
echo "\"/>
";
} else {
// line 43
echo " ";
$this->displayParentBlock("metatags", $context, $blocks);
echo "
";
}
// line 45
echo " ";
}
// line 46
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 49
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 50
echo " ";
$context["missingAmountFranco"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
// line 51
echo " <div class=\"page-categorie-content\">
<div class=\"categorie-top\">
<div class=\"max-container-4 px-0\">
";
// line 54
$this->loadTemplate("@SyliusShop/Product/Index/_sidebar.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 54)->display($context);
// line 55
echo " </div>
</div>
<div class=\"max-container-4 px-xl-0\">
<div class=\"categ-bottom\">
";
// line 59
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", false, false, false, 59) == 0)) {
// line 60
echo " <div class=\"my-3 px-2 text-center pt-4 no-result\">
<div class=\"d-inline-block\">
<div class=\"alert alert-danger\">
";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.aucun_produit_disponible"), "html", null, true);
echo "
</div>
</div>
</div>
";
} else {
// line 68
echo " <div class=\"px-0\">
<div class=\"filtre-cat d-none\">
";
// line 70
$this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 70)->display($context);
// line 71
echo " </div>
<div class=\"res-filtre fontsize-mobile-text pb-0 pt-md-0 pt-3 d-none \">
<div class=\"d-flex align-items-center justify-content-md-start justify-content-between\">
<div class=\"order-md-12 d-none d-md-block\">
<h2 class=\"d-inline-block text-sofiaMedium\" style=\"font-size: 1.2rem; margin-bottom: 0;\">";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.your_selection"), "html", null, true);
echo " :</h2>
";
// line 76
$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.', 76, $this->source); })()), "filters", [], "any", false, false, false, 76));
foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
// line 77
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["filter"], "values", [], "any", false, false, false, 77));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 78
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["value"], "isApplied", [], "any", false, false, false, 78) && (twig_get_attribute($this->env, $this->source, $context["filter"], "type", [], "any", false, false, false, 78) != "range"))) {
// line 79
echo " <div class=\"d-inline-block delete-filter cursor-pointer\" data-filter=\"";
echo twig_escape_filter($this->env, ((("filter-" . twig_get_attribute($this->env, $this->source, $context["filter"], "code", [], "any", false, false, false, 79)) . "-value-") . twig_get_attribute($this->env, $this->source, $context["value"], "slug", [], "any", false, false, false, 79)), "html", null, true);
echo "\" ><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["value"], "label", [], "any", false, false, false, 79), "html", null, true);
echo " <i class=\"icon-cancel color-orange\"></i></span></div>
";
}
// line 81
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 82
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 83
echo " </div>
<div class=\"order-md-1 pt-sm-0 pt-2\"><strong class=\"nbre-article fontsize-mobilesm-text \">";
// line 84
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.', 84, $this->source); })()), "count", [], "any", false, false, false, 84), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.products")), "html", null, true);
echo " </strong></div>
<div class=\"d-md-none_ d-block_ d-none mobile-label-filtre\">";
// line 85
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.sort_per")), "html", null, true);
echo " <i class=\"icon-down-open-big\"></i></div>
</div>
</div>
</div>
<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\">
<div class=\"row mx-0\" id=\"products\">
<div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
<div class=\"h-100 pb-sm-3 pt-perso-10\">
<a href=\"#\" class=\"link-free-delivery d-flex align-items-center justify-content-center h-100 flex-column transition-bgcolor\">
";
// line 94
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.free_delivery");
echo "
<em>";
// line 95
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());
echo "</em>
";
// line 98
echo "
</a>
</div>
</div>
";
// line 103
$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.', 103, $this->source); })()), "productsUsefull", [], "any", false, false, false, 103), "count", [], "any", false, false, false, 103);
// line 104
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.', 104, $this->source); })()), "count", [], "any", false, false, false, 104);
// line 105
echo "
";
// line 106
if (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr", $context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.', 106, $this->source); })()) == 1)) {
// line 107
echo " ";
$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));
// line 108
echo " ";
} elseif (((isset($context["productsUsefullNbr"]) || array_key_exists("productsUsefullNbr", $context) ? $context["productsUsefullNbr"] : (function () { throw new RuntimeError('Variable "productsUsefullNbr" does not exist.', 108, $this->source); })()) > 0)) {
// line 109
echo " ";
$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); })())));
// line 110
echo " ";
}
// line 111
echo "
";
// line 112
$context["i"] = 0;
// line 113
echo " ";
$context["itemNum"] = 0;
// line 114
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.', 114, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 115
echo " ";
$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);
// line 116
echo " <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
";
// line 117
$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", [0 => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 117)], "method", false, false, false, 117);
// line 118
echo " ";
$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); })())]));
// line 119
echo " </div>
";
// line 121
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); })())))) {
// line 122
echo " ";
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); })()))) {
// line 123
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.', 123, $this->source); })()), "productsUsefull", [], "any", false, false, false, 123), (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)));
foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
// line 124
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.', 124, $this->source); })()), "find", [0 => twig_get_attribute($this->env, $this->source, $context["itemUsefull"], "id", [], "any", false, false, false, 124)], "method", false, false, false, 124);
// line 125
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.', 125, $this->source); })()), "enabled", [], "any", false, false, false, 125)) {
// line 126
echo " <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 article-usefull\">
";
// line 127
$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); })())]));
// line 128
echo " </div>
";
}
// line 130
echo " ";
$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);
// line 131
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 132
echo "
";
// line 133
$context["itemNum"] = 0;
// line 134
echo " ";
}
// line 135
echo " ";
}
// line 136
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 137
echo "
";
// line 138
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); })())))) {
// line 139
echo "
";
// line 140
$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.', 140, $this->source); })()), "productsUsefull", [], "any", false, false, false, 140), (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)));
foreach ($context['_seq'] as $context["_key"] => $context["itemUsefull"]) {
// line 141
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.', 141, $this->source); })()), "find", [0 => twig_get_attribute($this->env, $this->source, $context["itemUsefull"], "id", [], "any", false, false, false, 141)], "method", false, false, false, 141);
// line 142
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.', 142, $this->source); })()), "enabled", [], "any", false, false, false, 142)) {
// line 143
echo " <div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 article-usefull\">
";
// line 144
$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); })())]));
// line 145
echo " </div>
";
}
// line 147
echo "
";
// line 148
$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);
// line 149
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 150
echo " ";
}
// line 151
echo " </div>
";
// line 152
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", false, false, false, 152)], 152, $context, $this->getSourceContext());
echo "
</div>
";
// line 154
if ( !twig_test_empty(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.', 154, $this->source); })()), "translation", [], "any", false, false, false, 154), "textSEO", [], "any", false, false, false, 154))) {
// line 157
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 \">
<div class=\"texte-seo\">
";
// line 159
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.', 159, $this->source); })()), "translation", [], "any", false, false, false, 159), "textSEO", [], "any", false, false, false, 159);
echo "
</div>
</div>
";
}
// line 163
echo " ";
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.', 163, $this->source); })()), "productsAssociated", [], "any", false, false, false, 163)) > 0)) {
// line 164
echo " <div class=\"pt-lg-4 pt-2\">
<h2 class=\"titre-medium text-uppercase max-after\"><span>";
// line 165
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.products_associated"), "html", null, true);
echo "</span></h2>
<div class=\"contenu-art-top\">
<div class=\"selection-prev prev-top\"></div>
<div class=\"selection-next next-top\"></div>
<div id=\"sylius-carouselselection\" class=\"top-nouvselection swiper-container product-swiper-container\">
<div class=\"swiper-wrapper\">
";
// line 171
$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.', 171, $this->source); })()), "productsAssociated", [], "any", false, false, false, 171));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 172
echo " <div class=\"produit-selection-item swiper-slide\">
<div class=\"\">
";
// line 174
$this->loadTemplate("@SyliusShop/Product/_box.html.twig", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", 174)->display($context);
// line 175
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 178
echo " </div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
</div>
";
}
// line 184
echo " ";
}
// line 185
echo " </div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{% block title %}
{% if taxon is defined and taxon.translation.metaTitle is not null and taxon.translation.metaTitle != \"\" %}
{{ 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 and taxon.translation.metaTitle != \"\" %}
<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 %}
{% if meta.metaRobotIndex == true %}
{% set metaRobotIndex = 'index, follow' %}
{% elseif meta.metaRobotIndex == false %}
{% set metaRobotIndex = 'noindex, nofollow' %}
{% endif %}
<meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
{% else %}
{{ parent() }}
{% endif %}
{% endif %}
{% endblock %}
{% block content %}
{% set missingAmountFranco = app_get_missing_franco_port() %}
<div class=\"page-categorie-content\">
<div class=\"categorie-top\">
<div class=\"max-container-4 px-0\">
{% include '@SyliusShop/Product/Index/_sidebar.html.twig' %}
</div>
</div>
<div class=\"max-container-4 px-xl-0\">
<div class=\"categ-bottom\">
{% if result.count == 0 %}
<div class=\"my-3 px-2 text-center pt-4 no-result\">
<div class=\"d-inline-block\">
<div class=\"alert alert-danger\">
{{ 'app.common.aucun_produit_disponible'|trans }}
</div>
</div>
</div>
{% else %}
<div class=\"px-0\">
<div class=\"filtre-cat d-none\">
{% include '@MonsieurBizSyliusSearchPlugin/Search/_sidebar.html.twig' %}
</div>
<div class=\"res-filtre fontsize-mobile-text pb-0 pt-md-0 pt-3 d-none \">
<div class=\"d-flex align-items-center justify-content-md-start justify-content-between\">
<div class=\"order-md-12 d-none d-md-block\">
<h2 class=\"d-inline-block text-sofiaMedium\" style=\"font-size: 1.2rem; margin-bottom: 0;\">{{ \"app.ui.your_selection\"|trans }} :</h2>
{% for filter in result.filters %}
{% for value in filter.values %}
{% if value.isApplied and filter.type != \"range\" %}
<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>
{% endif %}
{% endfor %}
{% endfor %}
</div>
<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>
<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>
</div>
</div>
</div>
<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\">
<div class=\"row mx-0\" id=\"products\">
<div class=\"col-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
<div class=\"h-100 pb-sm-3 pt-perso-10\">
<a href=\"#\" class=\"link-free-delivery d-flex align-items-center justify-content-center h-100 flex-column transition-bgcolor\">
{{ \"app.ui.free_delivery\"|trans|raw }}
<em>{{ money.convertAndFormat(missingAmountFranco) }}</em>
{# <em>{{ \"app.ui.from\"|trans }} 60€</em>#}
{# {{'app.cart.missing_x_for_franco'|trans}} <span class=\"color-pink-s\">{{ money.convertAndFormat(missingAmountFranco) }}</span> {{'app.cart.before_free_shipping'|trans}}#}
</a>
</div>
</div>
{% 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-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0\">
{% set product = product_repository.find(item.id) %}
{% include '@SyliusShop/Product/_box.html.twig' with {'product': product} 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-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 article-usefull\">
{% include '@SyliusShop/Product/_box.html.twig' with {'product': productUsefull} 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-xl-perso col-lg-3 col-md-4 col-6 mb-3 px-0 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>
{% if taxon.translation.textSEO is not empty %}
{# <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\">#}
{# {{ taxon.translation.textSEO|raw }}#}
<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 \">
<div class=\"texte-seo\">
{{ taxon.translation.textSEO|raw }}
</div>
</div>
{% endif %}
{% if taxon.productsAssociated|length > 0 %}
<div class=\"pt-lg-4 pt-2\">
<h2 class=\"titre-medium text-uppercase max-after\"><span>{{'app.ui.products_associated'|trans}}</span></h2>
<div class=\"contenu-art-top\">
<div class=\"selection-prev prev-top\"></div>
<div class=\"selection-next next-top\"></div>
<div id=\"sylius-carouselselection\" class=\"top-nouvselection swiper-container product-swiper-container\">
<div class=\"swiper-wrapper\">
{% for product in taxon.productsAssociated %}
<div class=\"produit-selection-item swiper-slide\">
<div class=\"\">
{% include '@SyliusShop/Product/_box.html.twig' %}
</div>
</div>
{% endfor %}
</div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
{% endblock %}
", "@MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/MonsieurBizSyliusSearchPlugin/Taxon/result.html.twig");
}
}