<?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;
/* front/products.html.twig */
class __TwigTemplate_7afc9bfbb5cb47a0f61036f5ace2a3bce4db02d9ecfb5516679517b48765810e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'metaTags' => [$this, 'block_metaTags'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "front/products.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/products.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "front/products.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 3
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 4
echo " ";
$context["title"] = (isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 4, $this->source); })());
// line 5
echo " ";
$context["desc"] = (isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 5, $this->source); })());
// line 6
echo " ";
if ((isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 6, $this->source); })())) {
// line 7
echo " ";
$context["title"] = (((twig_get_attribute($this->env, $this->source, ($context["subCategoryActive"] ?? null), "metaTitle", [], "any", true, true, false, 7) && !(null === twig_get_attribute($this->env, $this->source, ($context["subCategoryActive"] ?? null), "metaTitle", [], "any", false, false, false, 7)))) ? (twig_get_attribute($this->env, $this->source, ($context["subCategoryActive"] ?? null), "metaTitle", [], "any", false, false, false, 7)) : ((((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 7, $this->source); })()) . " - ") . twig_get_attribute($this->env, $this->source, (isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 7, $this->source); })()), "title", [], "any", false, false, false, 7))));
// line 8
echo " ";
$context["desc"] = (((twig_get_attribute($this->env, $this->source, ($context["subCategoryActive"] ?? null), "metaDescription", [], "any", true, true, false, 8) && !(null === twig_get_attribute($this->env, $this->source, ($context["subCategoryActive"] ?? null), "metaDescription", [], "any", false, false, false, 8)))) ? (twig_get_attribute($this->env, $this->source, ($context["subCategoryActive"] ?? null), "metaDescription", [], "any", false, false, false, 8)) : (twig_get_attribute($this->env, $this->source, (isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 8, $this->source); })()), "description", [], "any", false, false, false, 8)));
// line 9
echo " ";
} elseif ((isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 9, $this->source); })())) {
// line 10
echo " ";
$context["title"] = (((twig_get_attribute($this->env, $this->source, ($context["categoryActive"] ?? null), "metaTitle", [], "any", true, true, false, 10) && !(null === twig_get_attribute($this->env, $this->source, ($context["categoryActive"] ?? null), "metaTitle", [], "any", false, false, false, 10)))) ? (twig_get_attribute($this->env, $this->source, ($context["categoryActive"] ?? null), "metaTitle", [], "any", false, false, false, 10)) : ((((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 10, $this->source); })()) . " - ") . twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 10, $this->source); })()), "title", [], "any", false, false, false, 10))));
// line 11
echo " ";
$context["desc"] = (((twig_get_attribute($this->env, $this->source, ($context["categoryActive"] ?? null), "metaDescription", [], "any", true, true, false, 11) && !(null === twig_get_attribute($this->env, $this->source, ($context["categoryActive"] ?? null), "metaDescription", [], "any", false, false, false, 11)))) ? (twig_get_attribute($this->env, $this->source, ($context["categoryActive"] ?? null), "metaDescription", [], "any", false, false, false, 11)) : (twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 11, $this->source); })()), "description", [], "any", false, false, false, 11)));
// line 12
echo " ";
}
// line 13
echo "
";
// line 14
$context["desc"] = ((((isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 14, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 14, $this->source); })()), "metaDescription", [], "any", false, false, false, 14))) ? (twig_get_attribute($this->env, $this->source, (isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 14, $this->source); })()), "metaDescription", [], "any", false, false, false, 14)) : (((((isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 14, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 14, $this->source); })()), "metaDescription", [], "any", false, false, false, 14))) ? (twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 14, $this->source); })()), "metaDescription", [], "any", false, false, false, 14)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 14, $this->source); })())))));
// line 15
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, (isset($context["desc"]) || array_key_exists("desc", $context) ? $context["desc"] : (function () { throw new RuntimeError('Variable "desc" does not exist.', 15, $this->source); })()), "html", null, true);
echo "\">
<title>";
// line 16
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 16, $this->source); })()), "html", null, true);
echo "</title>
<meta property=\"og:title\" content=\"";
// line 17
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 17, $this->source); })()), "html", null, true);
echo "\">
<meta property=\"og:description\" content=\"";
// line 18
echo twig_escape_filter($this->env, (isset($context["desc"]) || array_key_exists("desc", $context) ? $context["desc"] : (function () { throw new RuntimeError('Variable "desc" does not exist.', 18, $this->source); })()), "html", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 22
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 22, $this->source); })()), "isChaine", [], "any", false, false, false, 22)) {
// line 23
echo " ";
if ((isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 23, $this->source); })())) {
// line 24
echo " ";
$this->loadTemplate("front/header.html.twig", "front/products.html.twig", 24)->display(twig_array_merge($context, ["icon" => ((twig_get_attribute($this->env, $this->source, // line 25
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 25, $this->source); })()), "subCategoryFileName", [], "any", false, false, false, 25)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 25, $this->source); })()), "subCategoryFile"))) : (null)), "img" => ((twig_get_attribute($this->env, $this->source, // line 26
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 26, $this->source); })()), "subCategoryBgFileName", [], "any", false, false, false, 26)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 26, $this->source); })()), "subCategoryBgFile"))) : (null)), "title" => twig_get_attribute($this->env, $this->source, // line 27
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 27, $this->source); })()), "title", [], "any", false, false, false, 27), "intro" => twig_get_attribute($this->env, $this->source, // line 28
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 28, $this->source); })()), "intro", [], "any", false, false, false, 28)]));
// line 30
echo " ";
}
// line 31
echo " ";
} else {
// line 32
echo " ";
$this->loadTemplate("front/header.html.twig", "front/products.html.twig", 32)->display(twig_array_merge($context, ["icon" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset( // line 33
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 33, $this->source); })()), "categoryFile")), "img" => ((twig_get_attribute($this->env, $this->source, // line 34
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 34, $this->source); })()), "categoryBgFileName", [], "any", false, false, false, 34)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 34, $this->source); })()), "categoryBgFile"))) : (null)), "title" => twig_get_attribute($this->env, $this->source, // line 35
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 35, $this->source); })()), "title", [], "any", false, false, false, 35), "intro" => twig_get_attribute($this->env, $this->source, // line 36
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 36, $this->source); })()), "intro", [], "any", false, false, false, 36)]));
// line 38
echo " ";
}
// line 39
echo " <section class=\"pat-30 position-relative\">
<div class=\"container\">
";
// line 42
$context["menu"] = (((twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 42, $this->source); })()), "isChaine", [], "any", false, false, false, 42) && (isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 42, $this->source); })()))) ? ([twig_get_attribute($this->env, $this->source, // line 44
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 44, $this->source); })()), "title", [], "any", false, false, false, 44) => "#", twig_get_attribute($this->env, $this->source, // line 45
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 45, $this->source); })()), "title", [], "any", false, false, false, 45) => "#"]) : ([twig_get_attribute($this->env, $this->source, // line 48
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 48, $this->source); })()), "title", [], "any", false, false, false, 48) => "#"]));
// line 50
echo " ";
$this->loadTemplate("front/menu.html.twig", "front/products.html.twig", 50)->display(twig_array_merge($context, ["menu" => (isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 50, $this->source); })())]));
// line 51
echo " </div>
";
// line 52
if (twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 52, $this->source); })()), "isChaine", [], "any", false, false, false, 52)) {
// line 53
echo " ";
$this->loadTemplate("front/productsFooter.html.twig", "front/products.html.twig", 53)->display(twig_array_merge($context, ["img" => ((twig_get_attribute($this->env, $this->source, // line 54
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 54, $this->source); })()), "subCategoryFileName", [], "any", false, false, false, 54)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 54, $this->source); })()), "subCategoryFile"))) : (null)), "title" => twig_get_attribute($this->env, $this->source, // line 55
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 55, $this->source); })()), "title", [], "any", false, false, false, 55), "content" => twig_get_attribute($this->env, $this->source, // line 56
(isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 56, $this->source); })()), "description", [], "any", false, false, false, 56)]));
// line 58
echo " ";
} else {
// line 59
echo " ";
$this->loadTemplate("front/productsFooter.html.twig", "front/products.html.twig", 59)->display(twig_array_merge($context, ["img" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset( // line 60
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 60, $this->source); })()), "categoryFile")), "title" => twig_get_attribute($this->env, $this->source, // line 61
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 61, $this->source); })()), "title", [], "any", false, false, false, 61), "content" => twig_get_attribute($this->env, $this->source, // line 62
(isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 62, $this->source); })()), "description", [], "any", false, false, false, 62)]));
// line 64
echo " ";
}
// line 65
echo " ";
$this->loadTemplate("front/coordinates.html.twig", "front/products.html.twig", 65)->display($context);
// line 66
echo " <div class=\"container\">
<div class=\"js-prods-list mat-0 mab-90\">
";
// line 69
$this->loadTemplate("form/productsFilterForm.html.twig", "front/products.html.twig", 69)->display($context);
// line 70
echo " <div class=\"products row justify-content-center-md\">
";
// line 71
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 71, $this->source); })()));
$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 72
echo " ";
$this->loadTemplate("front/productListDetail.html.twig", "front/products.html.twig", 72)->display($context);
// line 73
echo " ";
++$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 74
echo " </div>
";
// line 75
if ((1 === twig_compare((isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 75, $this->source); })()), (isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 75, $this->source); })())))) {
// line 76
echo " <div class=\"text-center\">
<div class=\"btn btn1 loadMoreProducts\" data-limit=\"";
// line 77
echo twig_escape_filter($this->env, (isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 77, $this->source); })()), "html", null, true);
echo "\">
<div class=\"btn-text\">
";
// line 80
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products.load_more.btn"), "html", null, true);
echo "
</div>
</div>
</div>
";
}
// line 85
echo " </div>
</div>
</section>
";
// line 88
if (twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 88, $this->source); })()), "isChaine", [], "any", false, false, false, 88)) {
// line 89
echo " ";
if ((isset($context["subCategoryActive"]) || array_key_exists("subCategoryActive", $context) ? $context["subCategoryActive"] : (function () { throw new RuntimeError('Variable "subCategoryActive" does not exist.', 89, $this->source); })())) {
// line 90
echo " <section class=\"position-relative pab-65\">
<div class=\"bgp-center otherCatProd bgs-cover w-100 position-absolute t-0 l-0 h-100 zi--1\"
style=\"background-image:url(";
// line 92
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/procatbg.png"), "large"), "html", null, true);
echo ")\">
</div>
";
// line 95
if (((0 <= twig_compare(twig_length_filter($this->env, (isset($context["otherSubCategories"]) || array_key_exists("otherSubCategories", $context) ? $context["otherSubCategories"] : (function () { throw new RuntimeError('Variable "otherSubCategories" does not exist.', 95, $this->source); })())), 1)) && (0 >= twig_compare(twig_length_filter($this->env, (isset($context["otherSubCategories"]) || array_key_exists("otherSubCategories", $context) ? $context["otherSubCategories"] : (function () { throw new RuntimeError('Variable "otherSubCategories" does not exist.', 95, $this->source); })())), 2)))) {
// line 96
echo " <div class=\"position-relative\">
<div class=\" daorgy daorgy1 position-absolute t-0 l-0 h-100\"></div>
";
// line 98
if ((0 <= twig_compare(twig_length_filter($this->env, (isset($context["otherSubCategories"]) || array_key_exists("otherSubCategories", $context) ? $context["otherSubCategories"] : (function () { throw new RuntimeError('Variable "otherSubCategories" does not exist.', 98, $this->source); })())), 2))) {
// line 99
echo " <div class=\" daorgy daorgy2 position-absolute t-0 r-0 h-100\"></div>
";
}
// line 101
echo " <div class=\"container\">
<div class=\"row\">
";
// line 103
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["otherSubCategories"]) || array_key_exists("otherSubCategories", $context) ? $context["otherSubCategories"] : (function () { throw new RuntimeError('Variable "otherSubCategories" does not exist.', 103, $this->source); })()));
$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["otherSubCategory"]) {
// line 104
echo " <div class=\"col-sm-6 mat-15 mat-0-sm c-white ";
echo ((($context["key"] % 2 == 0)) ? ("par-30-sm") : ("pal-30-sm"));
echo "\">
<div data-link
class=\"pointer pay-50 bgc-15683A otherCat otherChaineCat otherCat";
// line 106
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 106), "html", null, true);
echo " skew ";
echo ((($context["key"] % 2 == 0)) ? ("par-100-md par-25") : ("pal-100-md pal-25"));
echo "\">
<div class=\"row align-items-center position-relative skew-text ";
// line 107
echo ((($context["key"] % 2 != 0)) ? ("flex-row-reverse") : (""));
echo "\">
<div data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"600\" class=\"position-absolute ";
// line 108
echo ((($context["key"] % 2 != 0)) ? ("r-15") : ("l-15"));
echo "\">
<i class=\"fa fa-arrow-";
// line 109
echo ((($context["key"] % 2 == 0)) ? ("left") : ("right"));
echo "\"></i>
</div>
<div class=\"col-sm-12 text-center animateText\">
<div class=\"uvflnd\" data-aos=\"fade-up\" data-aos-duration=\"800\">
";
// line 113
if (twig_get_attribute($this->env, $this->source, $context["otherSubCategory"], "subCategoryFileName", [], "any", false, false, false, 113)) {
// line 114
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["otherSubCategory"], "subCategoryFile")), "html", null, true);
echo "\"
alt=\"";
// line 115
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["otherSubCategory"], "title", [], "any", false, false, false, 115), "html", null, true);
echo "\" class=\"wi-50 img-white\"/>
";
}
// line 117
echo " </div>
<h3 class=\"buhnsn mab-5 mat-0 noAmericana\">
<a data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"200\" href=\"";
// line 119
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_products", ["catSlug" => twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 119, $this->source); })()), "slug", [], "any", false, false, false, 119), "subCatSlug" => twig_get_attribute($this->env, $this->source, $context["otherSubCategory"], "slug", [], "any", false, false, false, 119)]), "html", null, true);
echo "\"
class=\"cofaes\">
";
// line 121
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["otherSubCategory"], "title", [], "any", false, false, false, 121), "html", null, true);
echo "
</a>
</h3>
<div data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"400\" class=\"ocgaes pmb0\">
";
// line 125
echo twig_get_attribute($this->env, $this->source, $context["otherSubCategory"], "intro", [], "any", false, false, false, 125);
echo "
</div>
</div>
</div>
</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['otherSubCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 132
echo " </div>
</div>
</div>
";
}
// line 136
echo " </section>
";
}
// line 138
echo " ";
} else {
// line 139
echo " <section class=\"position-relative pab-65\">
<div class=\"bgp-center bgs-cover w-100 position-absolute t-0 l-0 h-100 zi--1\"
style=\"background-image:url(";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/procatbg.png"), "large"), "html", null, true);
echo ")\">
</div>
<div class=\"container\">
";
// line 145
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["otherCategories"]) || array_key_exists("otherCategories", $context) ? $context["otherCategories"] : (function () { throw new RuntimeError('Variable "otherCategories" does not exist.', 145, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["otherCategory"]) {
// line 146
echo " <div data-link
class=\"pointer pay-50 bgc-15683A skew otherCat otherCatNoChaine cclmlw mx-auto c-white par-70-lg par-50-md par-40\">
<div class=\"row align-items-center skew-text position-relative\">
<div class=\"col-sm-12 text-center\">
<div class=\"uvflnd\" data-aos=\"fade-up\" data-aos-duration=\"800\">
<img src=\"";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["otherCategory"], "categoryFile")), "html", null, true);
echo "\"
alt=\"";
// line 152
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["otherCategory"], "title", [], "any", false, false, false, 152), "html", null, true);
echo "\" class=\"wi-50 img-white\" />
</div>
<h3 class=\"buhnsn mab-5 mat-15\">
<a data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"200\" href=\"";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_products", ["catSlug" => twig_get_attribute($this->env, $this->source, $context["otherCategory"], "slug", [], "any", false, false, false, 155)]), "html", null, true);
echo "\"
class=\"cofaes\">
";
// line 157
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["otherCategory"], "title", [], "any", false, false, false, 157), "html", null, true);
echo "
</a>
</h3>
<div class=\"ocgaes pmb0\" data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"400\">
";
// line 161
echo twig_get_attribute($this->env, $this->source, $context["otherCategory"], "listingIntro", [], "any", false, false, false, 161);
echo "
</div>
</div>
<div data-aos=\"fade-left\" data-aos-duration=\"800\" data-aos-delay=\"600\" class=\"position-absolute r-0 text-right\">
<i class=\"fa fa-arrow-right\"></i>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['otherCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 170
echo " </div>
</section>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/products.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 471 => 170, 456 => 161, 449 => 157, 444 => 155, 438 => 152, 434 => 151, 427 => 146, 423 => 145, 416 => 141, 412 => 139, 409 => 138, 405 => 136, 399 => 132, 378 => 125, 371 => 121, 366 => 119, 362 => 117, 357 => 115, 352 => 114, 350 => 113, 343 => 109, 339 => 108, 335 => 107, 329 => 106, 323 => 104, 306 => 103, 302 => 101, 298 => 99, 296 => 98, 292 => 96, 290 => 95, 284 => 92, 280 => 90, 277 => 89, 275 => 88, 270 => 85, 261 => 80, 256 => 77, 253 => 76, 251 => 75, 248 => 74, 234 => 73, 231 => 72, 214 => 71, 211 => 70, 209 => 69, 204 => 66, 201 => 65, 198 => 64, 196 => 62, 195 => 61, 194 => 60, 192 => 59, 189 => 58, 187 => 56, 186 => 55, 185 => 54, 183 => 53, 181 => 52, 178 => 51, 175 => 50, 173 => 48, 172 => 45, 171 => 44, 170 => 42, 165 => 39, 162 => 38, 160 => 36, 159 => 35, 158 => 34, 157 => 33, 155 => 32, 152 => 31, 149 => 30, 147 => 28, 146 => 27, 145 => 26, 144 => 25, 142 => 24, 139 => 23, 136 => 22, 126 => 21, 114 => 18, 110 => 17, 106 => 16, 101 => 15, 99 => 14, 96 => 13, 93 => 12, 90 => 11, 87 => 10, 84 => 9, 81 => 8, 78 => 7, 75 => 6, 72 => 5, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block metaTags %}
{% set title = siteTitle %}
{% set desc = siteTitle %}
{% if subCategoryActive %}
{% set title = subCategoryActive.metaTitle ?? (siteTitle ~ \" - \" ~ subCategoryActive.title) %}
{% set desc = subCategoryActive.metaDescription ?? (subCategoryActive.description) %}
{% elseif categoryActive %}
{% set title = categoryActive.metaTitle ?? (siteTitle ~ \" - \" ~ categoryActive.title) %}
{% set desc = categoryActive.metaDescription ?? (categoryActive.description) %}
{% endif %}
{% set desc = (subCategoryActive and subCategoryActive.metaDescription) ? subCategoryActive.metaDescription : (categoryActive and categoryActive.metaDescription) ? categoryActive.metaDescription : siteTitle %}
<meta name=\"description\" content=\"{{ desc }}\">
<title>{{ title }}</title>
<meta property=\"og:title\" content=\"{{ title }}\">
<meta property=\"og:description\" content=\"{{ desc }}\">
{% endblock %}
{% block body %}
{% if categoryActive.isChaine %}
{% if subCategoryActive %}
{% include \"front/header.html.twig\" with {
'icon':(subCategoryActive.subCategoryFileName ? asset(vich_uploader_asset(subCategoryActive, 'subCategoryFile')) : null),
\"img\":(subCategoryActive.subCategoryBgFileName ? asset(vich_uploader_asset(subCategoryActive, 'subCategoryBgFile')) : null),
\"title\":subCategoryActive.title,
\"intro\":subCategoryActive.intro,
} %}
{% endif %}
{% else %}
{% include \"front/header.html.twig\" with {
'icon':asset(vich_uploader_asset(categoryActive, 'categoryFile')),
\"img\":(categoryActive.categoryBgFileName ? asset(vich_uploader_asset(categoryActive, 'categoryBgFile')) : null),
\"title\":categoryActive.title,
\"intro\":categoryActive.intro,
} %}
{% endif %}
<section class=\"pat-30 position-relative\">
<div class=\"container\">
{% set menu = ((categoryActive.isChaine and subCategoryActive) ?
{
(categoryActive.title):\"#\",
(subCategoryActive.title):\"#\",
} :
{
(categoryActive.title):\"#\",
}) %}
{% include \"front/menu.html.twig\" with {'menu':menu} %}
</div>
{% if categoryActive.isChaine %}
{% include \"front/productsFooter.html.twig\" with {
'img':(subCategoryActive.subCategoryFileName ? asset(vich_uploader_asset(subCategoryActive, 'subCategoryFile')) : null),
\"title\":subCategoryActive.title,
\"content\":subCategoryActive.description,
} %}
{% else %}
{% include \"front/productsFooter.html.twig\" with {
'img':asset(vich_uploader_asset(categoryActive, 'categoryFile')),
\"title\":categoryActive.title,
\"content\":categoryActive.description,
} %}
{% endif %}
{% include \"front/coordinates.html.twig\" %}
<div class=\"container\">
<div class=\"js-prods-list mat-0 mab-90\">
{% include \"form/productsFilterForm.html.twig\" %}
<div class=\"products row justify-content-center-md\">
{% for key, product in products %}
{% include \"front/productListDetail.html.twig\" %}
{% endfor %}
</div>
{% if total > limit %}
<div class=\"text-center\">
<div class=\"btn btn1 loadMoreProducts\" data-limit=\"{{ limit }}\">
<div class=\"btn-text\">
{# <i class=\"fa-solid fa-arrows-rotate mar-5\"></i> #}
{{ \"products.load_more.btn\"|trans }}
</div>
</div>
</div>
{% endif %}
</div>
</div>
</section>
{% if categoryActive.isChaine %}
{% if subCategoryActive %}
<section class=\"position-relative pab-65\">
<div class=\"bgp-center otherCatProd bgs-cover w-100 position-absolute t-0 l-0 h-100 zi--1\"
style=\"background-image:url({{ asset('assets/img/procatbg.png')|imagine_filter('large') }})\">
</div>
{% if otherSubCategories|length >= 1 and otherSubCategories|length <= 2 %}
<div class=\"position-relative\">
<div class=\" daorgy daorgy1 position-absolute t-0 l-0 h-100\"></div>
{% if otherSubCategories|length >= 2 %}
<div class=\" daorgy daorgy2 position-absolute t-0 r-0 h-100\"></div>
{% endif %}
<div class=\"container\">
<div class=\"row\">
{% for key, otherSubCategory in otherSubCategories %}
<div class=\"col-sm-6 mat-15 mat-0-sm c-white {{ key is even ? \"par-30-sm\" : \"pal-30-sm\" }}\">
<div data-link
class=\"pointer pay-50 bgc-15683A otherCat otherChaineCat otherCat{{loop.index}} skew {{ key is even ? \"par-100-md par-25\" : \"pal-100-md pal-25\" }}\">
<div class=\"row align-items-center position-relative skew-text {{ key is odd ? \"flex-row-reverse\" }}\">
<div data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"600\" class=\"position-absolute {{ key is odd ? \"r-15\" : 'l-15'}}\">
<i class=\"fa fa-arrow-{{ key is even ? \"left\" : \"right\" }}\"></i>
</div>
<div class=\"col-sm-12 text-center animateText\">
<div class=\"uvflnd\" data-aos=\"fade-up\" data-aos-duration=\"800\">
{% if otherSubCategory.subCategoryFileName %}
<img src=\"{{ asset(vich_uploader_asset(otherSubCategory, 'subCategoryFile')) }}\"
alt=\"{{ otherSubCategory.title }}\" class=\"wi-50 img-white\"/>
{% endif %}
</div>
<h3 class=\"buhnsn mab-5 mat-0 noAmericana\">
<a data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"200\" href=\"{{ path('front_products', {'catSlug':categoryActive.slug, \"subCatSlug\":otherSubCategory.slug}) }}\"
class=\"cofaes\">
{{ otherSubCategory.title }}
</a>
</h3>
<div data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"400\" class=\"ocgaes pmb0\">
{{ otherSubCategory.intro|raw }}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
</section>
{% endif %}
{% else %}
<section class=\"position-relative pab-65\">
<div class=\"bgp-center bgs-cover w-100 position-absolute t-0 l-0 h-100 zi--1\"
style=\"background-image:url({{ asset('assets/img/procatbg.png')|imagine_filter('large') }})\">
</div>
<div class=\"container\">
{% for key, otherCategory in otherCategories %}
<div data-link
class=\"pointer pay-50 bgc-15683A skew otherCat otherCatNoChaine cclmlw mx-auto c-white par-70-lg par-50-md par-40\">
<div class=\"row align-items-center skew-text position-relative\">
<div class=\"col-sm-12 text-center\">
<div class=\"uvflnd\" data-aos=\"fade-up\" data-aos-duration=\"800\">
<img src=\"{{ asset(vich_uploader_asset(otherCategory, 'categoryFile')) }}\"
alt=\"{{ otherCategory.title }}\" class=\"wi-50 img-white\" />
</div>
<h3 class=\"buhnsn mab-5 mat-15\">
<a data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"200\" href=\"{{ path('front_products', {'catSlug':otherCategory.slug}) }}\"
class=\"cofaes\">
{{ otherCategory.title }}
</a>
</h3>
<div class=\"ocgaes pmb0\" data-aos=\"fade-up\" data-aos-duration=\"800\" data-aos-delay=\"400\">
{{ otherCategory.listingIntro|raw }}
</div>
</div>
<div data-aos=\"fade-left\" data-aos-duration=\"800\" data-aos-delay=\"600\" class=\"position-absolute r-0 text-right\">
<i class=\"fa fa-arrow-right\"></i>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endif %}
{% endblock %}
", "front/products.html.twig", "/home/hlcdisb/www/facomia_dev/templates/front/products.html.twig");
}
}