<?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;
/* frontend/category.html.twig */
class __TwigTemplate_41d6f6223b512b7df1ea5ba187ba5f204d1e5c043ba4a039af477cdb52ff0aeb extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'JS' => [$this, 'block_JS'],
'CSS' => [$this, 'block_CSS'],
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'content' => [$this, 'block_content'],
'section_category_stats' => [$this, 'block_section_category_stats'],
'category_filter' => [$this, 'block_category_filter'],
'section_masonry_products' => [$this, 'block_section_masonry_products'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "frontend/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", "frontend/category.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/category.html.twig"));
$this->parent = $this->loadTemplate("frontend/base.html.twig", "frontend/category.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 2
public function block_JS($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", "JS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "JS"));
// line 3
echo " <script src=\"/assets/frontend/js/jquery-3.1.1.min.js\"></script>
<script src=\"/assets/frontend/js/popper.min.js\"
integrity=\"sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ\"
crossorigin=\"anonymous\"></script>
<script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js\"
integrity=\"sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm\"
crossorigin=\"anonymous\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/owl.carousel.min.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/slick.min.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/jquery.mmenu.js\"></script>
<script src=\"https://unpkg.com/infinite-scroll@3/dist/infinite-scroll.pkgd.min.js\"></script>
<script type=\"text/javascript\">
\$(function() {
\$('#menu').mmenu();
let infScroll = \$('.endless_container').infiniteScroll({
path: '.page-next',
append: '.endless_page',
history: false,
});
let t;
\$('.endless_container').on( 'request.infiniteScroll', function( event, path, fetchPromise ) {
console.log(`Loading page: \${path}`);
\$('#product-loader').show();
t = setTimeout(function () {
\$('#product-loader').hide();
console.log('load');
\$('#paginatorDefaultPage').removeClass('d-none');
}, 4000);
t;
});
\$('.endless_container').on( 'append.infiniteScroll', function( event, body, path, items, response ) {
console.log(`Appended \${items.length} items on \${path}`);
\$('#product-loader').hide();
clearTimeout(t);
});
});
</script>
<script>
\$('input[class=filterItemsProduct]').on('change', function() {
var getValueinput = \$(this).val();
var newUrlParam = '?filter='+getValueinput;
return window.location = newUrlParam;
});
</script>
";
// line 95
echo " <script src=\"/assets/frontend/js/874ad7ad81.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/main.js?ver=1.1\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/registration.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/category-filter.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/scroll-down.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/show-more.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/region-currency-lang-select.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/custom-select.js\"></script>
<script src=\"";
// line 104
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/frontend/category.js"), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 106
public function block_CSS($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", "CSS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "CSS"));
// line 107
echo " <link rel=\"stylesheet\" href=\"/assets/frontend/css/owl.carousel.min.css\">
<link href=\"/assets/frontend/css/responsive.css?ver=";
// line 108
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 108, $this->source); })()), "cssVersion", [], "any", false, false, false, 108), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link href=\"/assets/frontend/css/jquery.mmenu.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link href=\"/assets/frontend/css/styles.css?ver=";
// line 110
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 110, $this->source); })()), "cssVersion", [], "any", false, false, false, 110), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css\"
integrity=\"sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4\" crossorigin=\"anonymous\">
<!-- Add the slick-theme.css if you want default styling -->
<link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/frontend/css/slick.css\"/>
<!-- Add the slick-theme.css if you want default styling -->
<link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/frontend/css/slick-theme.css\"/>
<script src=\"";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/frontend/category.css"), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 120
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"));
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 120, $this->source); })()), "name", [], "any", false, false, false, 120))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 120, $this->source); })()), "name", [], "any", false, false, false, 120), "html", null, true);
echo ",";
}
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 120, $this->source); })()), "title", [], "any", false, false, false, 120), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 121
public function block_metaDescription($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", "metaDescription"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
if (twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 121, $this->source); })()), "metaDescription", [], "any", false, false, false, 121)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 121, $this->source); })()), "metaDescription", [], "any", false, false, false, 121), "html", null, true);
} else {
echo twig_slice($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 121, $this->source); })()), "description", [], "any", false, false, false, 121), 0, 160);
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 122
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 123
echo " <!--Category section-->
<div class=\"category row mb-rem\">
<!--Category section header-->
<section class=\"category-header\">
";
// line 127
if ((twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 127, $this->source); })()), "banner", [], "any", false, false, false, 127) || (isset($context["forcedBanner"]) || array_key_exists("forcedBanner", $context)))) {
// line 128
echo " <div class=\"category-header-top\">
";
// line 129
if ((isset($context["forcedBanner"]) || array_key_exists("forcedBanner", $context))) {
// line 130
echo " <img class=\"category-header-top-img full-width\" src=\"";
echo twig_escape_filter($this->env, (isset($context["forcedBanner"]) || array_key_exists("forcedBanner", $context) ? $context["forcedBanner"] : (function () { throw new RuntimeError('Variable "forcedBanner" does not exist.', 130, $this->source); })()), "html", null, true);
echo "\">
";
} else {
// line 132
echo " <img class=\"category-header-top-img full-width\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("getImageAsCroppedThumb", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 132, $this->source); })()), "banner", [], "any", false, false, false, 132), "id", [], "any", false, false, false, 132), "height" => "250", "width" => "1900"]), "html", null, true);
echo " \">
";
}
// line 134
echo " <h5 class=\"category-header-top-caption \"><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 134, $this->source); })()), "title", [], "any", false, false, false, 134), "html", null, true);
echo "</span></h5>
</div>
";
}
// line 137
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 137, $this->source); })()), "description", [], "any", false, false, false, 137)) {
// line 138
echo " <div class=\"category-header-description text-left d-none d-xl-block d-lg-block d-md-block\">
<p class=\"category-header-description-text text-overflow\">
";
// line 140
echo twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 140, $this->source); })()), "description", [], "any", false, false, false, 140);
echo "
</p>
";
// line 147
echo " </div>
";
}
// line 149
echo "
</section>
<!--Category section header-->
<section class=\"category-products m-t-10\">
<div class=\"row justify-content-end category-search\">
<div class=\"col-xl-6 col-lg-12 col-md-12 col-12 align-self-end\">
<div class=\"row justify-content-between\">
";
// line 195
echo " <div class=\"column-select select-category col-4 d-block d-md-none\">
<button type=\"button\" class=\"button category-products-filters-btn\"
id=\"mobileFilterModal\">
<span>
<img src=\"/assets/frontend/images/icons/filter-icon.svg\" alt=\"\">
</span>
<span class=\"text-button-filters\" style=\"margin-right: 0px;\">
Filtres
</span>
</button>
</div>
";
// line 224
echo " </div>
</div>
<!--<div class=\"d-none d-xl-block d-lg-block d-md-block col-xl-3 col-lg-3 col-md-3 col-3\"></div>-->
<!--<div class=\"d-none d-xl-block d-lg-block d-md-block col-xl-3 col-lg-3 col-md-3 col-3\"></div>-->
</div>
";
// line 230
$this->displayBlock('section_category_stats', $context, $blocks);
// line 274
echo "
<!--Category section products-->
<div class=\"row\">
<div class=\"d-none category-products-filters-wrap d-xl-block d-lg-block d-md-block col-xl-2 col-lg-2 col-md-3 pull-left\">
<div class=\"category-products-filters not-mobile\">
";
// line 279
$this->displayBlock('category_filter', $context, $blocks);
// line 503
echo " </div>
</div>
<div class=\"col-xl-10 col-lg-10 col-md-9 col-sm-12 col-12 products-wrap\" id=\"listingProducts\">
";
// line 506
$this->displayBlock('section_masonry_products', $context, $blocks);
// line 532
echo "
";
// line 533
if ((isset($context["suggestionProducts"]) || array_key_exists("suggestionProducts", $context))) {
// line 534
echo " ";
if ((isset($context["suggestionProducts"]) || array_key_exists("suggestionProducts", $context) ? $context["suggestionProducts"] : (function () { throw new RuntimeError('Variable "suggestionProducts" does not exist.', 534, $this->source); })())) {
// line 535
echo " <div class=\"section-title section-title-line m-t-10\">Des produits à découvrir!</div>
";
// line 536
echo twig_include($this->env, $context, "frontend/productMasonry.html.twig", ["masonryProducts" => (isset($context["suggestionProducts"]) || array_key_exists("suggestionProducts", $context) ? $context["suggestionProducts"] : (function () { throw new RuntimeError('Variable "suggestionProducts" does not exist.', 536, $this->source); })())]);
echo "
";
}
// line 538
echo " ";
}
// line 539
echo " </div>
</div>
<!--Category section products-->
</section>
</div>
<script>
function panelUnClick() {
var x = document.getElementById(\"panelUn\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheUn\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheUn\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelDeuxClick() {
var x = document.getElementById(\"panelDeux\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheDeux\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheDeux\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelTroisClick() {
var x = document.getElementById(\"panelTrois\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheTrois\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheTrois\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelQuatreClick() {
var x = document.getElementById(\"panelQuatre\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheQuatre\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheQuatre\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelCinqClick() {
var x = document.getElementById(\"panelCinq\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheCinq\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheCinq\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 230
public function block_section_category_stats($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", "section_category_stats"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "section_category_stats"));
// line 231
echo " <!--Category section filters-->
<!--<div class=\"row d-none d-xl-block d-lg-block d-md-block\">-->
<div class=\"row\">
<div class=\"col-12 text-right\" id=\"checked-filters\">
<div class=\"category-products-result d-none d-xl-block d-lg-block d-md-block\">
";
// line 236
if ((isset($context["sorting"]) || array_key_exists("sorting", $context))) {
// line 237
echo "
";
// line 238
$context["sort_popularity_order"] = "desc";
// line 239
echo " ";
$context["sort_date_order"] = "desc";
// line 240
echo " ";
$context["sort_price_order"] = "desc";
// line 241
echo "
";
// line 242
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 242, $this->source); })()) == "popularity")) {
// line 243
echo " ";
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 243, $this->source); })()) == "asc")) {
// line 244
echo " ";
$context["sort_popularity_order"] = "desc";
// line 245
echo " ";
} else {
// line 246
echo " ";
$context["sort_popularity_order"] = "asc";
// line 247
echo " ";
}
// line 248
echo " ";
} elseif (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 248, $this->source); })()) == "date")) {
// line 249
echo " ";
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 249, $this->source); })()) == "asc")) {
// line 250
echo " ";
$context["sort_date_order"] = "desc";
// line 251
echo " ";
} else {
// line 252
echo " ";
$context["sort_date_order"] = "asc";
// line 253
echo " ";
}
// line 254
echo " ";
} elseif (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 254, $this->source); })()) == "price")) {
// line 255
echo " ";
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 255, $this->source); })()) == "asc")) {
// line 256
echo " ";
$context["sort_price_order"] = "desc";
// line 257
echo " ";
} else {
// line 258
echo " ";
$context["sort_price_order"] = "asc";
// line 259
echo " ";
}
// line 260
echo " ";
}
// line 261
echo " ";
if (((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.', 261, $this->source); })()), "request", [], "any", false, false, false, 261), "attributes", [], "any", false, false, false, 261), "get", [0 => "_route"], "method", false, false, false, 261) == "viewCategory") || (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.', 261, $this->source); })()), "request", [], "any", false, false, false, 261), "attributes", [], "any", false, false, false, 261), "get", [0 => "_route"], "method", false, false, false, 261) == "viewOnSalesProduct"))) {
// line 262
echo " <a href=\"";
echo twig_escape_filter($this->env, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 262, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 262, $this->source); })()) == null)) {
echo "text-decoration: underline !important;";
}
echo "\">Défaut</a> |
";
}
// line 264
echo " <a href=\"?sorting=popularity&order=";
echo twig_escape_filter($this->env, (isset($context["sort_popularity_order"]) || array_key_exists("sort_popularity_order", $context) ? $context["sort_popularity_order"] : (function () { throw new RuntimeError('Variable "sort_popularity_order" does not exist.', 264, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 264, $this->source); })()) == "popularity")) {
echo "text-decoration: underline !important;";
}
echo "\">Popularité ";
if (((isset($context["sort_popularity_order"]) || array_key_exists("sort_popularity_order", $context) ? $context["sort_popularity_order"] : (function () { throw new RuntimeError('Variable "sort_popularity_order" does not exist.', 264, $this->source); })()) == "asc")) {
echo "⇡";
} else {
echo "⇣";
}
echo "</a> |
<a href=\"?sorting=price&order=";
// line 265
echo twig_escape_filter($this->env, (isset($context["sort_price_order"]) || array_key_exists("sort_price_order", $context) ? $context["sort_price_order"] : (function () { throw new RuntimeError('Variable "sort_price_order" does not exist.', 265, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 265, $this->source); })()) == "price")) {
echo "text-decoration: underline !important;";
}
echo "\">Prix ";
if (((isset($context["sort_price_order"]) || array_key_exists("sort_price_order", $context) ? $context["sort_price_order"] : (function () { throw new RuntimeError('Variable "sort_price_order" does not exist.', 265, $this->source); })()) == "asc")) {
echo "⇡";
} else {
echo "⇣";
}
echo "</a> |
<a href=\"?sorting=date&order=";
// line 266
echo twig_escape_filter($this->env, (isset($context["sort_date_order"]) || array_key_exists("sort_date_order", $context) ? $context["sort_date_order"] : (function () { throw new RuntimeError('Variable "sort_date_order" does not exist.', 266, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 266, $this->source); })()) == "date")) {
echo "text-decoration: underline !important;";
}
echo "\">Récent ";
if (((isset($context["sort_date_order"]) || array_key_exists("sort_date_order", $context) ? $context["sort_date_order"] : (function () { throw new RuntimeError('Variable "sort_date_order" does not exist.', 266, $this->source); })()) == "asc")) {
echo "⇡";
} else {
echo "⇣";
}
echo "</a>
";
}
// line 268
echo " <br> RÉSULTATS: <span id=\"amountProducts\">";
echo twig_escape_filter($this->env, (isset($context["productsAmount"]) || array_key_exists("productsAmount", $context) ? $context["productsAmount"] : (function () { throw new RuntimeError('Variable "productsAmount" does not exist.', 268, $this->source); })()), "html", null, true);
echo "</span> PRODUITS
</div>
</div>
</div>
<!--Category section filters-->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 279
public function block_category_filter($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", "category_filter"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "category_filter"));
// line 280
echo "
";
// line 281
if ((twig_get_attribute($this->env, $this->source, ($context["selected"] ?? null), "main", [], "any", true, true, false, 281) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 281, $this->source); })()), "main", [], "any", false, false, false, 281)))) {
// line 282
echo " <a class=\"hide-mobile category-products-filters-title\" id=\"filter-show-all\" href=\"/categorie\">
<span style=\"color:black;font-weight:bold;\"><i
class=\"fa fa-angle-left\" aria-hidden=\"true\"></i></span>
TOUT</a>
";
}
// line 287
echo "
<div class=\"category-product-filter first hide-mobile\">
";
// line 290
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 290, $this->source); })()), "menu", [], "any", false, false, false, 290));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
if (twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 290, $this->source); })()), "hasProducts", [0 => $context["category"]], "method", false, false, false, 290)) {
// line 291
echo " ";
if ((((twig_get_attribute($this->env, $this->source, ($context["selected"] ?? null), "main", [], "any", true, true, false, 291) && (twig_get_attribute($this->env, $this->source, (isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 291, $this->source); })()), "main", [], "any", false, false, false, 291) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 291))) || ((isset($context["selected"]) || array_key_exists("selected", $context)) && twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 291, $this->source); })()), "main", [], "any", false, false, false, 291)))) || !(isset($context["selected"]) || array_key_exists("selected", $context)))) {
// line 292
echo " <div class=\"category-product-filter-hierarchy\">
";
// line 295
echo "
<a data-id=\"";
// line 296
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 296), "html", null, true);
echo "\" data-type=\"category\" class=\"category-product-filter-hierarchy-title filterItemsProduct ";
if ((twig_get_attribute($this->env, $this->source, ($context["selected"] ?? null), "main", [], "any", true, true, false, 296) && (twig_get_attribute($this->env, $this->source, (isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 296, $this->source); })()), "main", [], "any", false, false, false, 296) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 296)))) {
echo " active selected ";
}
echo "\" id=\"cat_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 296), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "getFullUrlPath", [], "any", false, false, false, 296), "html", null, true);
echo "\" href=\"/categorie";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "getFullUrlPath", [], "any", false, false, false, 296), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 296)), "html", null, true);
echo "</a>
";
// line 298
if ((twig_get_attribute($this->env, $this->source, ($context["selected"] ?? null), "main", [], "any", true, true, false, 298) && (twig_get_attribute($this->env, $this->source, (isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 298, $this->source); })()), "main", [], "any", false, false, false, 298) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 298)))) {
// line 299
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["category"], "categories", [], "any", false, false, false, 299));
foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
// line 300
echo " <div class=\"category-product-filter-hierarchy-l2\">
";
// line 302
if ((twig_get_attribute($this->env, $this->source, ($context["selected"] ?? null), "sub1", [], "any", true, true, false, 302) && (twig_get_attribute($this->env, $this->source, (isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 302, $this->source); })()), "sub1", [], "any", false, false, false, 302) == twig_get_attribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 302)))) {
// line 303
echo " <span class=\"category-product-filter-hierarchy-back-btn\"><i
class=\"fa fa-angle-left\" aria-hidden=\"true\"></i></span>
";
}
// line 306
echo "
<div class=\"underline-effect-wrapper categorie-left-menu\">
";
// line 308
if ((twig_get_attribute($this->env, $this->source, $context["subCategory"], "placement", [], "any", false, false, false, 308) > 0)) {
// line 309
echo " <a id=\"cat_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 309), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 309), "html", null, true);
echo "\" data-type=\"category\" class=\"category-product-filter-hierarchy-title underline-effect underline-effect-black underline-effect-h1 filterItemsProduct ";
if ((twig_get_attribute($this->env, $this->source, ($context["selected"] ?? null), "sub1", [], "any", true, true, false, 309) && (twig_get_attribute($this->env, $this->source, (isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 309, $this->source); })()), "sub1", [], "any", false, false, false, 309) == twig_get_attribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 309)))) {
echo " active selected ";
}
echo "\" data-url=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "getFullUrlPath", [], "any", false, false, false, 309), "html", null, true);
echo "\" href=\"/categorie";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "getFullUrlPath", [], "any", false, false, false, 309), "html", null, true);
echo "\">
";
// line 310
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "name", [], "any", false, false, false, 310), "html", null, true);
echo " <i>(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 310, $this->source); })()), "getCountProduct", [0 => $context["subCategory"]], "method", false, false, false, 310), "html", null, true);
echo ")</i>
";
}
// line 313
echo " </a>
<ul class=\"\">
";
// line 315
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["subCategory"], "categories", [], "any", false, false, false, 315));
foreach ($context['_seq'] as $context["_key"] => $context["subCat"]) {
if (twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 315, $this->source); })()), "hasProducts", [0 => $context["subCat"]], "method", false, false, false, 315)) {
// line 316
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["subCat"], "placement", [], "any", false, false, false, 316) > 0)) {
// line 317
echo " <li>
<a id=\"cat_";
// line 318
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCat"], "id", [], "any", false, false, false, 318), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCat"], "id", [], "any", false, false, false, 318), "html", null, true);
echo "\" data-type=\"category\" class=\"underlineSubcategory\" data-url=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCat"], "getFullUrlPath", [], "any", false, false, false, 318), "html", null, true);
echo "\" href=\"/categorie";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCat"], "getFullUrlPath", [], "any", false, false, false, 318), "html", null, true);
echo "\">
";
// line 319
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCat"], "name", [], "any", false, false, false, 319), "html", null, true);
echo " <i>(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 319, $this->source); })()), "getCountProduct", [0 => $context["subCat"]], "method", false, false, false, 319), "html", null, true);
echo ")</i>
</a>
</li>
";
}
// line 323
echo " ";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 324
echo " </ul>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 328
echo " ";
}
// line 329
echo " </div>
";
}
// line 331
echo " ";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 332
echo " </div>
<div class=\"category-divider hide-mobile\"></div>
<div class=\"category-product-filter\">
<div class=\"d-md-none d-sm-block text-center\">
";
// line 336
if ((isset($context["sorting"]) || array_key_exists("sorting", $context))) {
// line 337
echo "
";
// line 338
$context["sort_popularity_order"] = "desc";
// line 339
echo " ";
$context["sort_date_order"] = "desc";
// line 340
echo " ";
$context["sort_price_order"] = "desc";
// line 341
echo "
";
// line 342
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 342, $this->source); })()) == "popularity")) {
// line 343
echo " ";
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 343, $this->source); })()) == "asc")) {
// line 344
echo " ";
$context["sort_popularity_order"] = "desc";
// line 345
echo " ";
} else {
// line 346
echo " ";
$context["sort_popularity_order"] = "asc";
// line 347
echo " ";
}
// line 348
echo " ";
} elseif (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 348, $this->source); })()) == "date")) {
// line 349
echo " ";
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 349, $this->source); })()) == "asc")) {
// line 350
echo " ";
$context["sort_date_order"] = "desc";
// line 351
echo " ";
} else {
// line 352
echo " ";
$context["sort_date_order"] = "asc";
// line 353
echo " ";
}
// line 354
echo " ";
} elseif (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 354, $this->source); })()) == "price")) {
// line 355
echo " ";
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 355, $this->source); })()) == "asc")) {
// line 356
echo " ";
$context["sort_price_order"] = "desc";
// line 357
echo " ";
} else {
// line 358
echo " ";
$context["sort_price_order"] = "asc";
// line 359
echo " ";
}
// line 360
echo " ";
}
// line 361
echo " ";
if ((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.', 361, $this->source); })()), "request", [], "any", false, false, false, 361), "attributes", [], "any", false, false, false, 361), "get", [0 => "_route"], "method", false, false, false, 361) == "viewCategory")) {
// line 362
echo " <a href=\"";
echo twig_escape_filter($this->env, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 362, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 362, $this->source); })()) == null)) {
echo "text-decoration: underline !important;";
}
echo "\">Défaut</a> |
";
}
// line 364
echo " <a href=\"?sorting=popularity&order=";
echo twig_escape_filter($this->env, (isset($context["sort_popularity_order"]) || array_key_exists("sort_popularity_order", $context) ? $context["sort_popularity_order"] : (function () { throw new RuntimeError('Variable "sort_popularity_order" does not exist.', 364, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 364, $this->source); })()) == "popularity")) {
echo "text-decoration: underline !important;";
}
echo "\">Popularité ";
if (((isset($context["sort_popularity_order"]) || array_key_exists("sort_popularity_order", $context) ? $context["sort_popularity_order"] : (function () { throw new RuntimeError('Variable "sort_popularity_order" does not exist.', 364, $this->source); })()) == "asc")) {
echo "⇡";
} else {
echo "⇣";
}
echo "</a> |
<a href=\"?sorting=price&order=";
// line 365
echo twig_escape_filter($this->env, (isset($context["sort_price_order"]) || array_key_exists("sort_price_order", $context) ? $context["sort_price_order"] : (function () { throw new RuntimeError('Variable "sort_price_order" does not exist.', 365, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 365, $this->source); })()) == "price")) {
echo "text-decoration: underline !important;";
}
echo "\">Prix ";
if (((isset($context["sort_price_order"]) || array_key_exists("sort_price_order", $context) ? $context["sort_price_order"] : (function () { throw new RuntimeError('Variable "sort_price_order" does not exist.', 365, $this->source); })()) == "asc")) {
echo "⇡";
} else {
echo "⇣";
}
echo "</a> |
<a href=\"?sorting=date&order=";
// line 366
echo twig_escape_filter($this->env, (isset($context["sort_date_order"]) || array_key_exists("sort_date_order", $context) ? $context["sort_date_order"] : (function () { throw new RuntimeError('Variable "sort_date_order" does not exist.', 366, $this->source); })()), "html", null, true);
echo "\" style=\"";
if (((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 366, $this->source); })()) == "date")) {
echo "text-decoration: underline !important;";
}
echo "\">Récent ";
if (((isset($context["sort_date_order"]) || array_key_exists("sort_date_order", $context) ? $context["sort_date_order"] : (function () { throw new RuntimeError('Variable "sort_date_order" does not exist.', 366, $this->source); })()) == "asc")) {
echo "⇡";
} else {
echo "⇣";
}
echo "</a>
";
}
// line 368
echo " </div>
<div class=\"category-product-filter-title\" onclick=\"panelUnClick()\" ><i class=\"flecheUn ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">LIVRAISON</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelUn\" style=\"display:none;\">
<div>
<label class=\"checkbox\">
<input id=\"shipping_maturin\" type=\"checkbox\" value=\"LivraisonMaturin\" class=\"filterItemsProduct\" data-id=\"0\" data-type=\"shipping\" ";
// line 373
if ((twig_get_attribute($this->env, $this->source, ($context["filters"] ?? null), "shipping", [], "any", true, true, false, 373) && twig_in_filter("0", twig_get_attribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 373, $this->source); })()), "shipping", [], "any", false, false, false, 373)))) {
echo "checked";
}
echo ">
<i></i>Maturin <img style=\"display: inline-block; margin-right: 15px;\" src=\"/images/maturinshipping.png\" alt=\"Livraison par Maturin\" title=\"Livraison par Maturin\">
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"shipping_producer\" type=\"checkbox\" value=\"LivraisonIndependante\" class=\"filterItemsProduct\" data-id=\"1\" data-type=\"shipping\" ";
// line 379
if ((twig_get_attribute($this->env, $this->source, ($context["filters"] ?? null), "shipping", [], "any", true, true, false, 379) && twig_in_filter("1", twig_get_attribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 379, $this->source); })()), "shipping", [], "any", false, false, false, 379)))) {
echo "checked";
}
echo ">
<i></i>Indépendante
</label>
</div>
</div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelDeuxClick()\"><i class=\"flecheDeux ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">PRIX</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelDeux\" style=\"display:none;\">
<div>
<label class=\"checkbox\" style=\"color:#f0632f;\">
<input id=\"price_sale\" type=\"checkbox\" name=\"checkbox\" value=\"EnSolde\" class=\"filterItemsProduct\" data-id=\"0\" data-type=\"price\" ";
// line 390
if ((twig_get_attribute($this->env, $this->source, ($context["filters"] ?? null), "price", [], "any", true, true, false, 390) && twig_in_filter("0", twig_get_attribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 390, $this->source); })()), "price", [], "any", false, false, false, 390)))) {
echo "checked";
}
echo ">
<i></i><strong>En Solde</strong>
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_10\" type=\"checkbox\" name=\"checkbox\" value=\"Moins10\" class=\"filterItemsProduct\" data-id=\"10\" data-type=\"price\" ";
// line 396
if ((twig_get_attribute($this->env, $this->source, ($context["filters"] ?? null), "price", [], "any", true, true, false, 396) && twig_in_filter("10", twig_get_attribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 396, $this->source); })()), "price", [], "any", false, false, false, 396)))) {
echo "checked";
}
echo ">
<i></i>Moins de 10\$
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_1025\" type=\"checkbox\" name=\"checkbox\" value=\"price10-25\" class=\"filterItemsProduct\" data-id=\"10-25\" data-type=\"price\" ";
// line 402
if ((twig_get_attribute($this->env, $this->source, ($context["filters"] ?? null), "price", [], "any", true, true, false, 402) && twig_in_filter("10-25", twig_get_attribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 402, $this->source); })()), "price", [], "any", false, false, false, 402)))) {
echo "checked";
}
echo ">
<i></i>10\$-25\$
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_2050\" type=\"checkbox\" name=\"checkbox\" value=\"price25-50\" class=\"filterItemsProduct\" data-id=\"25-50\" data-type=\"price\" ";
// line 408
if ((twig_get_attribute($this->env, $this->source, ($context["filters"] ?? null), "price", [], "any", true, true, false, 408) && twig_in_filter("25-50", twig_get_attribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 408, $this->source); })()), "price", [], "any", false, false, false, 408)))) {
echo "checked";
}
echo ">
<i></i>25\$-50\$
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_50\" type=\"checkbox\" name=\"checkbox\" value=\"Plus50\" class=\"filterItemsProduct\" data-id=\"50\" data-type=\"price\" ";
// line 414
if ((twig_get_attribute($this->env, $this->source, ($context["filters"] ?? null), "price", [], "any", true, true, false, 414) && twig_in_filter("50", twig_get_attribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 414, $this->source); })()), "price", [], "any", false, false, false, 414)))) {
echo "checked";
}
echo ">
<i></i>Plus de 50\$
</label>
</div>
</div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelTroisClick()\"><i class=\"flecheTrois ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">CONSERVATION</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelTrois\" style=\"display:none;\">
";
// line 423
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["conservations"]) || array_key_exists("conservations", $context) ? $context["conservations"] : (function () { throw new RuntimeError('Variable "conservations" does not exist.', 423, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["conservation"]) {
// line 424
echo " <div>
<label class=\"checkbox\">
<input id=\"conservation_";
// line 426
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["conservation"], "id", [], "any", false, false, false, 426), "html", null, true);
echo "\" type=\"checkbox\" name=\"checkbox\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["conservation"], "name", [], "any", false, false, false, 426), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["conservation"], "id", [], "any", false, false, false, 426), "html", null, true);
echo "\" data-type=\"conservation\" class=\"filterItemsProduct\">
<i></i>";
// line 427
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["conservation"], "name", [], "any", false, false, false, 427), "html", null, true);
echo "
</label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['conservation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 431
echo " </div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelQuatreClick()\"><i class=\"flecheQuatre ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">CERTIFICATION</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelQuatre\" style=\"display:none;\">
<div>
<label class=\"checkbox\">
<input id=\"aliment_du_quebec\" type=\"checkbox\" name=\"checkbox\" value=\"AlimentsQuebec\" data-id=\"true\" data-type=\"aliment_quebec\" class=\"filterItemsProduct\">
<i></i>Aliments du Québec
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"is_prix_laureat\" type=\"checkbox\" name=\"checkbox\" value=\"PrixLaureat\" data-id=\"true\" data-type=\"prix_laureat\" class=\"filterItemsProduct\">
<i></i>Prix Laureat
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"is_produit_biologique\" type=\"checkbox\" name=\"checkbox\" value=\"Biologique\" data-id=\"true\" data-type=\"produit_biologique\" class=\"filterItemsProduct\">
<i></i>Porduit Bio
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"SansGluten\" type=\"checkbox\" name=\"checkbox\" value=\"Sans_Gluten\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Sans Gluten
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"Vegane\" type=\"checkbox\" name=\"checkbox\" value=\"Vegane\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Végane
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"Paleo\" type=\"checkbox\" name=\"checkbox\" value=\"Paleo\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Paléo
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"SansLactose\" type=\"checkbox\" name=\"checkbox\" value=\"Sans_Lactose\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Sans Lactose
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"SansNoix\" type=\"checkbox\" name=\"checkbox\" value=\"Sans_Noix\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Sans noix
</label>
</div>
</div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelCinqClick()\"><i class=\"flecheCinq ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">RÉGION</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelCinq\" style=\"display:none;\">
";
// line 490
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["regions"]) || array_key_exists("regions", $context) ? $context["regions"] : (function () { throw new RuntimeError('Variable "regions" does not exist.', 490, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["region"]) {
// line 491
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["region"], "name", [], "any", false, false, false, 491) != "defaut")) {
// line 492
echo " <div>
<label class=\"checkbox\">
<input id=\"region_";
// line 494
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["region"], "id", [], "any", false, false, false, 494), "html", null, true);
echo "\" type=\"checkbox\" name=\"checkbox\" value=\"region_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["region"], "name", [], "any", false, false, false, 494), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["region"], "id", [], "any", false, false, false, 494), "html", null, true);
echo "\" class=\"filterItemsProduct\" data-type=\"region\">
<i></i>";
// line 495
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["region"], "name", [], "any", false, false, false, 495), "html", null, true);
echo "
</label>
</div>
";
}
// line 499
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['region'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 500
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 506
public function block_section_masonry_products($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", "section_masonry_products"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "section_masonry_products"));
// line 507
echo "
<div class=\"endless_container\" id=\"endless_container\">
<article class=\"endless_page\" style=\"\">
";
// line 510
echo twig_include($this->env, $context, "frontend/productMasonry.html.twig", ["masonryProducts" => (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 510, $this->source); })())]);
echo "
</article>
</div>
<div class=\"\" id=\"product-loader\" style=\"display: none; width: 100%; height: 100px; position: relative !important; background: url(/images/loading.gif) center no-repeat #fff;\"></div>
<script>
var supportsTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;
if(supportsTouch){
var elems = document.querySelectorAll(\".button-touch\");
[].forEach.call(elems, function(el) {
el.classList.remove(\"d-none\");
});
}
</script>
";
// line 526
echo " ";
if ((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.', 526, $this->source); })()), "request", [], "any", false, false, false, 526), "attributes", [], "any", false, false, false, 526), "get", [0 => "_route"], "method", false, false, false, 526) == "viewCategory")) {
// line 527
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 527, $this->source); })()), "getPaginationData", [], "any", false, false, false, 527), "current", [], "any", false, false, false, 527) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 527, $this->source); })()), "getPaginationData", [], "any", false, false, false, 527), "last", [], "any", false, false, false, 527))) {
// line 528
echo " <div id=\"paginatorDefaultLast\" class=\"infinite-scroll-last\">";
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 528, $this->source); })()));
echo "</div>
";
}
// line 530
echo " ";
}
// line 531
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "frontend/category.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1186 => 531, 1183 => 530, 1177 => 528, 1174 => 527, 1171 => 526, 1153 => 510, 1148 => 507, 1138 => 506, 1126 => 500, 1120 => 499, 1113 => 495, 1105 => 494, 1101 => 492, 1098 => 491, 1094 => 490, 1033 => 431, 1023 => 427, 1015 => 426, 1011 => 424, 1007 => 423, 993 => 414, 982 => 408, 971 => 402, 960 => 396, 949 => 390, 933 => 379, 922 => 373, 915 => 368, 900 => 366, 886 => 365, 871 => 364, 861 => 362, 858 => 361, 855 => 360, 852 => 359, 849 => 358, 846 => 357, 843 => 356, 840 => 355, 837 => 354, 834 => 353, 831 => 352, 828 => 351, 825 => 350, 822 => 349, 819 => 348, 816 => 347, 813 => 346, 810 => 345, 807 => 344, 804 => 343, 802 => 342, 799 => 341, 796 => 340, 793 => 339, 791 => 338, 788 => 337, 786 => 336, 780 => 332, 773 => 331, 769 => 329, 766 => 328, 757 => 324, 750 => 323, 741 => 319, 731 => 318, 728 => 317, 725 => 316, 720 => 315, 716 => 313, 708 => 310, 693 => 309, 691 => 308, 687 => 306, 682 => 303, 680 => 302, 676 => 300, 671 => 299, 669 => 298, 652 => 296, 649 => 295, 646 => 292, 643 => 291, 638 => 290, 633 => 287, 626 => 282, 624 => 281, 621 => 280, 611 => 279, 594 => 268, 579 => 266, 565 => 265, 550 => 264, 540 => 262, 537 => 261, 534 => 260, 531 => 259, 528 => 258, 525 => 257, 522 => 256, 519 => 255, 516 => 254, 513 => 253, 510 => 252, 507 => 251, 504 => 250, 501 => 249, 498 => 248, 495 => 247, 492 => 246, 489 => 245, 486 => 244, 483 => 243, 481 => 242, 478 => 241, 475 => 240, 472 => 239, 470 => 238, 467 => 237, 465 => 236, 458 => 231, 448 => 230, 368 => 539, 365 => 538, 360 => 536, 357 => 535, 354 => 534, 352 => 533, 349 => 532, 347 => 506, 342 => 503, 340 => 279, 333 => 274, 331 => 230, 323 => 224, 310 => 195, 299 => 149, 295 => 147, 290 => 140, 286 => 138, 283 => 137, 276 => 134, 270 => 132, 264 => 130, 262 => 129, 259 => 128, 257 => 127, 251 => 123, 241 => 122, 218 => 121, 194 => 120, 182 => 118, 171 => 110, 166 => 108, 163 => 107, 153 => 106, 141 => 104, 130 => 95, 75 => 3, 65 => 2, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'frontend/base.html.twig' %}
{% block JS %}
<script src=\"/assets/frontend/js/jquery-3.1.1.min.js\"></script>
<script src=\"/assets/frontend/js/popper.min.js\"
integrity=\"sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ\"
crossorigin=\"anonymous\"></script>
<script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js\"
integrity=\"sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm\"
crossorigin=\"anonymous\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/owl.carousel.min.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/slick.min.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/jquery.mmenu.js\"></script>
<script src=\"https://unpkg.com/infinite-scroll@3/dist/infinite-scroll.pkgd.min.js\"></script>
<script type=\"text/javascript\">
\$(function() {
\$('#menu').mmenu();
let infScroll = \$('.endless_container').infiniteScroll({
path: '.page-next',
append: '.endless_page',
history: false,
});
let t;
\$('.endless_container').on( 'request.infiniteScroll', function( event, path, fetchPromise ) {
console.log(`Loading page: \${path}`);
\$('#product-loader').show();
t = setTimeout(function () {
\$('#product-loader').hide();
console.log('load');
\$('#paginatorDefaultPage').removeClass('d-none');
}, 4000);
t;
});
\$('.endless_container').on( 'append.infiniteScroll', function( event, body, path, items, response ) {
console.log(`Appended \${items.length} items on \${path}`);
\$('#product-loader').hide();
clearTimeout(t);
});
});
</script>
<script>
\$('input[class=filterItemsProduct]').on('change', function() {
var getValueinput = \$(this).val();
var newUrlParam = '?filter='+getValueinput;
return window.location = newUrlParam;
});
</script>
{#
{% if global.displayStarterKits %}
<script src=\"/assets/shared/plugins/slick-modal-css3-powered-popups/src/demos/js/carousel_slider.js\"></script>
<script src=\"/assets/shared/plugins/slick-modal-css3-powered-popups/src/plugin/js/jquery.slickmodal.min.js\"></script>
<script type=\"text/javascript\">
\$(function() {
\$('.carouselSlider').SlickModals({
restrict_cookieDays: '1',
restrict_showAfterVisits: 1,
restrict_showAfterVisitsResetWhenShown: false,
popup_type: 'exit',
popup_animation: 'zoomIn',
popup_css: {
'width': '480px',
'height': {% if global.starterKits | length > 2 %}'480px'{% else %}'400px'{% endif %},
'background': '#fff',
'padding': '40px',
'margin': '0'
},
overlay_css: {
'background': 'rgba(0,0,0,0.3)'
},
mobile_breakpoint: '480px',
mobile_position: 'center',
mobile_css: {
'width': '100%',
'height': {% if global.starterKits | length > 2 %}'480px'{% else %}'400px'{% endif %},
'background': '#fff',
'padding': '30px',
'margin': '0'
},
callback_afterVisible: function () {
sm_carouselSlider('.carouselSlider');
}
});
});
</script>
{% endif %}
#}
<script src=\"/assets/frontend/js/874ad7ad81.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/main.js?ver=1.1\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/registration.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/category-filter.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/scroll-down.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/show-more.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/region-currency-lang-select.js\"></script>
<script type=\"text/javascript\" src=\"/assets/frontend/js/custom-select.js\"></script>
<script src=\"{{ asset('build/frontend/category.js') }}\"></script>
{% endblock %}
{% block CSS %}
<link rel=\"stylesheet\" href=\"/assets/frontend/css/owl.carousel.min.css\">
<link href=\"/assets/frontend/css/responsive.css?ver={{global.cssVersion}}\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link href=\"/assets/frontend/css/jquery.mmenu.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link href=\"/assets/frontend/css/styles.css?ver={{global.cssVersion}}\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css\"
integrity=\"sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4\" crossorigin=\"anonymous\">
<!-- Add the slick-theme.css if you want default styling -->
<link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/frontend/css/slick.css\"/>
<!-- Add the slick-theme.css if you want default styling -->
<link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/frontend/css/slick-theme.css\"/>
<script src=\"{{ asset('build/frontend/category.css') }}\"></script>
{% endblock %}
{% block title %}{% if category.name is not empty %}{{category.name}},{% endif %} {{category.title}}{% endblock %}
{% block metaDescription %}{% if category.metaDescription %}{{category.metaDescription}}{%else%}{{category.description | slice(0, 160) | raw}}{%endif%}{% endblock %}
{% block content %}
<!--Category section-->
<div class=\"category row mb-rem\">
<!--Category section header-->
<section class=\"category-header\">
{% if category.banner or forcedBanner is defined %}
<div class=\"category-header-top\">
{% if forcedBanner is defined %}
<img class=\"category-header-top-img full-width\" src=\"{{forcedBanner}}\">
{% else %}
<img class=\"category-header-top-img full-width\" src=\"{{path('getImageAsCroppedThumb',{'id': category.banner.id, 'height': '250', 'width' : '1900'})}} \">
{% endif %}
<h5 class=\"category-header-top-caption \"><span>{{category.title}}</span></h5>
</div>
{% endif %}
{% if category.description %}
<div class=\"category-header-description text-left d-none d-xl-block d-lg-block d-md-block\">
<p class=\"category-header-description-text text-overflow\">
{{category.description | raw}}
</p>
{#
{% if category.description |length > 200 %}
<a class=\"category-header-description-more btn-overflow\"> + Plus</a>
{% endif %}
#}
</div>
{% endif %}
</section>
<!--Category section header-->
<section class=\"category-products m-t-10\">
<div class=\"row justify-content-end category-search\">
<div class=\"col-xl-6 col-lg-12 col-md-12 col-12 align-self-end\">
<div class=\"row justify-content-between\">
{#
<div class=\"col-xl-6 col-lg-6 col-md-6 m-b-10\">
<div class=\"row no-gutters\">
<div class=\"col text-right\">
<input class=\"border-right-0 rounded-0 search-input category-search-product\"
type=\"search\" placeholder=\"Chercher des produits...\">
</div>
<div class=\"col-auto\">
<button class=\"category-search-product-btn border-left-0 rounded-0 rounded-right search-btn\"
type=\"button\">
<i class=\"fa fa-search\" aria-hidden=\"true\"></i>
</button>
</div>
</div>
</div>
<div class=\"select-label category-search__text col-xl-2 col-lg-1 col-md-1 d-none d-xl-block d-lg-block\">
<span>Trier par:</span>
</div>
<div class=\"column-select col-xl-4 col-lg-5 col-md-6 col-5 d-none d-md-block\">
<div class=\"select-wrapper\">
<select name=\"order\" class=\"form-control form-control-lg\"
id=\"orderSelect\">
<option value=\"plus\">plus pertinents
</option>
<option value=\"nouveaux\">nouveaux produits
</option>
<option value=\"bas\">prix le plus bas
</option>
<option value=\"haut\" selected>prix le plus haut</option>
<option value=\"mieux\">mieux cotes
</option>
<option value=\"promotions\">promotions
</option>
</select>
</div>
</div>
#}
<div class=\"column-select select-category col-4 d-block d-md-none\">
<button type=\"button\" class=\"button category-products-filters-btn\"
id=\"mobileFilterModal\">
<span>
<img src=\"/assets/frontend/images/icons/filter-icon.svg\" alt=\"\">
</span>
<span class=\"text-button-filters\" style=\"margin-right: 0px;\">
Filtres
</span>
</button>
</div>
{#
<div class=\"column-select select-trier col-4 d-block d-md-none\">
<!--<div class=\"select-wrapper\">-->
<div class=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
<a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Trier<span class=\"caret\"></span></a>
<ul class=\"dropdown-menu select-options pull-bottom\">
<li><a data-value=\"Tout\">Tout </a></li>
<li><a data-value=\"Category A\">plus pertinents</a></li>
<li><a data-value=\"Category B\">nouveaux produits</a></li>
<li><a data-value=\"Category B\">prix le plus bas</a></li>
<li><a data-value=\"Category C\">prix le plus haut</a></li>
<li><a data-value=\"Category D\">mieux cotes</a></li>
<li><a data-value=\"Category E\">promotions</a></li>
</ul>
</div>
<!--</div>-->
</div>
#}
</div>
</div>
<!--<div class=\"d-none d-xl-block d-lg-block d-md-block col-xl-3 col-lg-3 col-md-3 col-3\"></div>-->
<!--<div class=\"d-none d-xl-block d-lg-block d-md-block col-xl-3 col-lg-3 col-md-3 col-3\"></div>-->
</div>
{% block section_category_stats %}
<!--Category section filters-->
<!--<div class=\"row d-none d-xl-block d-lg-block d-md-block\">-->
<div class=\"row\">
<div class=\"col-12 text-right\" id=\"checked-filters\">
<div class=\"category-products-result d-none d-xl-block d-lg-block d-md-block\">
{% if sorting is defined %}
{% set sort_popularity_order = \"desc\" %}
{% set sort_date_order = \"desc\" %}
{% set sort_price_order = \"desc\" %}
{% if sorting == \"popularity\" %}
{% if order == \"asc\" %}
{% set sort_popularity_order = \"desc\" %}
{% else %}
{% set sort_popularity_order = \"asc\" %}
{% endif %}
{% elseif sorting == \"date\" %}
{% if order == \"asc\" %}
{% set sort_date_order = \"desc\" %}
{% else %}
{% set sort_date_order = \"asc\" %}
{% endif %}
{% elseif sorting == \"price\" %}
{% if order == \"asc\" %}
{% set sort_price_order = \"desc\" %}
{% else %}
{% set sort_price_order = \"asc\" %}
{% endif %}
{% endif %}
{% if app.request.attributes.get('_route') == 'viewCategory' or app.request.attributes.get('_route') == 'viewOnSalesProduct' %}
<a href=\"{{link}}\" style=\"{% if sorting == null %}text-decoration: underline !important;{% endif %}\">Défaut</a> |
{% endif %}
<a href=\"?sorting=popularity&order={{sort_popularity_order}}\" style=\"{% if sorting == \"popularity\" %}text-decoration: underline !important;{% endif %}\">Popularité {% if sort_popularity_order == \"asc\" %}⇡{% else %}⇣{% endif %}</a> |
<a href=\"?sorting=price&order={{sort_price_order}}\" style=\"{% if sorting == \"price\" %}text-decoration: underline !important;{% endif %}\">Prix {% if sort_price_order == \"asc\" %}⇡{% else %}⇣{% endif %}</a> |
<a href=\"?sorting=date&order={{sort_date_order}}\" style=\"{% if sorting == \"date\" %}text-decoration: underline !important;{% endif %}\">Récent {% if sort_date_order == \"asc\" %}⇡{% else %}⇣{% endif %}</a>
{% endif %}
<br> RÉSULTATS: <span id=\"amountProducts\">{{productsAmount}}</span> PRODUITS
</div>
</div>
</div>
<!--Category section filters-->
{% endblock %}
<!--Category section products-->
<div class=\"row\">
<div class=\"d-none category-products-filters-wrap d-xl-block d-lg-block d-md-block col-xl-2 col-lg-2 col-md-3 pull-left\">
<div class=\"category-products-filters not-mobile\">
{% block category_filter %}
{% if selected.main is defined and selected.main is not empty %}
<a class=\"hide-mobile category-products-filters-title\" id=\"filter-show-all\" href=\"/categorie\">
<span style=\"color:black;font-weight:bold;\"><i
class=\"fa fa-angle-left\" aria-hidden=\"true\"></i></span>
TOUT</a>
{% endif %}
<div class=\"category-product-filter first hide-mobile\">
{% for category in global.menu if global.hasProducts(category) %}
{% if ( selected.main is defined and selected.main == category.id ) or ( selected is defined and selected.main is empty ) or ( selected is not defined ) %}
<div class=\"category-product-filter-hierarchy\">
{# <span class=\"category-product-filter-hierarchy-back-btn\"><i
class=\"fa fa-angle-left\" aria-hidden=\"true\"></i></span> #}
<a data-id=\"{{category.id}}\" data-type=\"category\" class=\"category-product-filter-hierarchy-title filterItemsProduct {% if selected.main is defined and selected.main == category.id %} active selected {% endif %}\" id=\"cat_{{category.id}}\" data-url=\"{{category.getFullUrlPath}}\" href=\"/categorie{{category.getFullUrlPath}}\">{{category.name | upper }}</a>
{% if selected.main is defined and selected.main == category.id %}
{% for subCategory in category.categories %}
<div class=\"category-product-filter-hierarchy-l2\">
{% if selected.sub1 is defined and selected.sub1== subCategory.id %}
<span class=\"category-product-filter-hierarchy-back-btn\"><i
class=\"fa fa-angle-left\" aria-hidden=\"true\"></i></span>
{% endif %}
<div class=\"underline-effect-wrapper categorie-left-menu\">
{% if subCategory.placement > 0 %}
<a id=\"cat_{{subCategory.id}}\" data-id=\"{{subCategory.id}}\" data-type=\"category\" class=\"category-product-filter-hierarchy-title underline-effect underline-effect-black underline-effect-h1 filterItemsProduct {% if selected.sub1 is defined and selected.sub1== subCategory.id %} active selected {% endif %}\" data-url=\"{{subCategory.getFullUrlPath}}\" href=\"/categorie{{subCategory.getFullUrlPath}}\">
{{subCategory.name}} <i>({{ global.getCountProduct(subCategory) }})</i>
{% endif %}
</a>
<ul class=\"\">
{% for subCat in subCategory.categories if global.hasProducts(subCat) %}
{% if subCat.placement > 0 %}
<li>
<a id=\"cat_{{subCat.id}}\" data-id=\"{{subCat.id}}\" data-type=\"category\" class=\"underlineSubcategory\" data-url=\"{{subCat.getFullUrlPath}}\" href=\"/categorie{{subCat.getFullUrlPath}}\">
{{subCat.name}} <i>({{ global.getCountProduct(subCat) }})</i>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"category-divider hide-mobile\"></div>
<div class=\"category-product-filter\">
<div class=\"d-md-none d-sm-block text-center\">
{% if sorting is defined %}
{% set sort_popularity_order = \"desc\" %}
{% set sort_date_order = \"desc\" %}
{% set sort_price_order = \"desc\" %}
{% if sorting == \"popularity\" %}
{% if order == \"asc\" %}
{% set sort_popularity_order = \"desc\" %}
{% else %}
{% set sort_popularity_order = \"asc\" %}
{% endif %}
{% elseif sorting == \"date\" %}
{% if order == \"asc\" %}
{% set sort_date_order = \"desc\" %}
{% else %}
{% set sort_date_order = \"asc\" %}
{% endif %}
{% elseif sorting == \"price\" %}
{% if order == \"asc\" %}
{% set sort_price_order = \"desc\" %}
{% else %}
{% set sort_price_order = \"asc\" %}
{% endif %}
{% endif %}
{% if app.request.attributes.get('_route') == 'viewCategory' %}
<a href=\"{{link}}\" style=\"{% if sorting == null %}text-decoration: underline !important;{% endif %}\">Défaut</a> |
{% endif %}
<a href=\"?sorting=popularity&order={{sort_popularity_order}}\" style=\"{% if sorting == \"popularity\" %}text-decoration: underline !important;{% endif %}\">Popularité {% if sort_popularity_order == \"asc\" %}⇡{% else %}⇣{% endif %}</a> |
<a href=\"?sorting=price&order={{sort_price_order}}\" style=\"{% if sorting == \"price\" %}text-decoration: underline !important;{% endif %}\">Prix {% if sort_price_order == \"asc\" %}⇡{% else %}⇣{% endif %}</a> |
<a href=\"?sorting=date&order={{sort_date_order}}\" style=\"{% if sorting == \"date\" %}text-decoration: underline !important;{% endif %}\">Récent {% if sort_date_order == \"asc\" %}⇡{% else %}⇣{% endif %}</a>
{% endif %}
</div>
<div class=\"category-product-filter-title\" onclick=\"panelUnClick()\" ><i class=\"flecheUn ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">LIVRAISON</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelUn\" style=\"display:none;\">
<div>
<label class=\"checkbox\">
<input id=\"shipping_maturin\" type=\"checkbox\" value=\"LivraisonMaturin\" class=\"filterItemsProduct\" data-id=\"0\" data-type=\"shipping\" {% if filters.shipping is defined and '0' in filters.shipping %}checked{% endif %}>
<i></i>Maturin <img style=\"display: inline-block; margin-right: 15px;\" src=\"/images/maturinshipping.png\" alt=\"Livraison par Maturin\" title=\"Livraison par Maturin\">
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"shipping_producer\" type=\"checkbox\" value=\"LivraisonIndependante\" class=\"filterItemsProduct\" data-id=\"1\" data-type=\"shipping\" {% if filters.shipping is defined and '1' in filters.shipping %}checked{% endif %}>
<i></i>Indépendante
</label>
</div>
</div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelDeuxClick()\"><i class=\"flecheDeux ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">PRIX</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelDeux\" style=\"display:none;\">
<div>
<label class=\"checkbox\" style=\"color:#f0632f;\">
<input id=\"price_sale\" type=\"checkbox\" name=\"checkbox\" value=\"EnSolde\" class=\"filterItemsProduct\" data-id=\"0\" data-type=\"price\" {% if filters.price is defined and '0' in filters.price %}checked{% endif %}>
<i></i><strong>En Solde</strong>
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_10\" type=\"checkbox\" name=\"checkbox\" value=\"Moins10\" class=\"filterItemsProduct\" data-id=\"10\" data-type=\"price\" {% if filters.price is defined and '10' in filters.price %}checked{% endif %}>
<i></i>Moins de 10\$
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_1025\" type=\"checkbox\" name=\"checkbox\" value=\"price10-25\" class=\"filterItemsProduct\" data-id=\"10-25\" data-type=\"price\" {% if filters.price is defined and '10-25' in filters.price %}checked{% endif %}>
<i></i>10\$-25\$
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_2050\" type=\"checkbox\" name=\"checkbox\" value=\"price25-50\" class=\"filterItemsProduct\" data-id=\"25-50\" data-type=\"price\" {% if filters.price is defined and '25-50' in filters.price %}checked{% endif %}>
<i></i>25\$-50\$
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"price_50\" type=\"checkbox\" name=\"checkbox\" value=\"Plus50\" class=\"filterItemsProduct\" data-id=\"50\" data-type=\"price\" {% if filters.price is defined and '50' in filters.price %}checked{% endif %}>
<i></i>Plus de 50\$
</label>
</div>
</div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelTroisClick()\"><i class=\"flecheTrois ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">CONSERVATION</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelTrois\" style=\"display:none;\">
{% for conservation in conservations %}
<div>
<label class=\"checkbox\">
<input id=\"conservation_{{conservation.id}}\" type=\"checkbox\" name=\"checkbox\" value=\"{{conservation.name}}\" data-id=\"{{conservation.id}}\" data-type=\"conservation\" class=\"filterItemsProduct\">
<i></i>{{conservation.name}}
</label>
</div>
{% endfor %}
</div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelQuatreClick()\"><i class=\"flecheQuatre ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">CERTIFICATION</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelQuatre\" style=\"display:none;\">
<div>
<label class=\"checkbox\">
<input id=\"aliment_du_quebec\" type=\"checkbox\" name=\"checkbox\" value=\"AlimentsQuebec\" data-id=\"true\" data-type=\"aliment_quebec\" class=\"filterItemsProduct\">
<i></i>Aliments du Québec
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"is_prix_laureat\" type=\"checkbox\" name=\"checkbox\" value=\"PrixLaureat\" data-id=\"true\" data-type=\"prix_laureat\" class=\"filterItemsProduct\">
<i></i>Prix Laureat
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"is_produit_biologique\" type=\"checkbox\" name=\"checkbox\" value=\"Biologique\" data-id=\"true\" data-type=\"produit_biologique\" class=\"filterItemsProduct\">
<i></i>Porduit Bio
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"SansGluten\" type=\"checkbox\" name=\"checkbox\" value=\"Sans_Gluten\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Sans Gluten
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"Vegane\" type=\"checkbox\" name=\"checkbox\" value=\"Vegane\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Végane
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"Paleo\" type=\"checkbox\" name=\"checkbox\" value=\"Paleo\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Paléo
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"SansLactose\" type=\"checkbox\" name=\"checkbox\" value=\"Sans_Lactose\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Sans Lactose
</label>
</div>
<div>
<label class=\"checkbox\">
<input id=\"SansNoix\" type=\"checkbox\" name=\"checkbox\" value=\"Sans_Noix\" data-type=\"certification\" class=\"filterItemsProduct\">
<i></i>Sans noix
</label>
</div>
</div>
</div>
<div class=\"category-product-filter\">
<div class=\"category-product-filter-title\" onclick=\"panelCinqClick()\"><i class=\"flecheCinq ti-angle-right\" style=\"margin-right: 10px;\"></i><span style=\"display: inline;\">RÉGION</span></div>
<div class=\"category-product-filter-checkbox\" id=\"panelCinq\" style=\"display:none;\">
{% for region in regions %}
{% if region.name != \"defaut\" %}
<div>
<label class=\"checkbox\">
<input id=\"region_{{region.id}}\" type=\"checkbox\" name=\"checkbox\" value=\"region_{{region.name}}\" data-id=\"{{region.id}}\" class=\"filterItemsProduct\" data-type=\"region\">
<i></i>{{region.name}}
</label>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% endblock %}
</div>
</div>
<div class=\"col-xl-10 col-lg-10 col-md-9 col-sm-12 col-12 products-wrap\" id=\"listingProducts\">
{% block section_masonry_products %}
<div class=\"endless_container\" id=\"endless_container\">
<article class=\"endless_page\" style=\"\">
{{ include ('frontend/productMasonry.html.twig', {'masonryProducts': products} ) }}
</article>
</div>
<div class=\"\" id=\"product-loader\" style=\"display: none; width: 100%; height: 100px; position: relative !important; background: url(/images/loading.gif) center no-repeat #fff;\"></div>
<script>
var supportsTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;
if(supportsTouch){
var elems = document.querySelectorAll(\".button-touch\");
[].forEach.call(elems, function(el) {
el.classList.remove(\"d-none\");
});
}
</script>
{# {{ dump(app.request.attributes.get('_route'))}} #}
{% if app.request.attributes.get('_route') == 'viewCategory' %}
{% if products.getPaginationData.current == products.getPaginationData.last %}
<div id=\"paginatorDefaultLast\" class=\"infinite-scroll-last\">{{ knp_pagination_render(products) }}</div>
{% endif %}
{% endif %}
{% endblock %}
{% if suggestionProducts is defined %}
{% if suggestionProducts %}
<div class=\"section-title section-title-line m-t-10\">Des produits à découvrir!</div>
{{ include ('frontend/productMasonry.html.twig', {'masonryProducts': suggestionProducts} ) }}
{% endif %}
{% endif %}
</div>
</div>
<!--Category section products-->
</section>
</div>
<script>
function panelUnClick() {
var x = document.getElementById(\"panelUn\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheUn\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheUn\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelDeuxClick() {
var x = document.getElementById(\"panelDeux\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheDeux\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheDeux\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelTroisClick() {
var x = document.getElementById(\"panelTrois\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheTrois\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheTrois\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelQuatreClick() {
var x = document.getElementById(\"panelQuatre\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheQuatre\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheQuatre\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
function panelCinqClick() {
var x = document.getElementById(\"panelCinq\");
if (x.style.display === \"none\") {
x.style.display = \"block\";
\$( \".flecheCinq\" ).removeClass( \"ti-angle-right\" ).addClass( \"ti-angle-down\" );
} else {
x.style.display = \"none\";
\$( \".flecheCinq\" ).removeClass( \"ti-angle-down\" ).addClass( \"ti-angle-right\" );
}
}
</script>
<script>
</script>
{% endblock %}
", "frontend/category.html.twig", "/var/www/html/Markego/templates/frontend/category.html.twig");
}
}