{% set layout = _layout2 %}
<div class="modularGrid-module u-xs-75 u-pdb u-mgb">
{% if not layout.is_wholesaler %}
<input type="radio" class="u-hide" id="row_view" name="productlist_view" aria-label="row_view" checked="checked">
{% else %}
<input type="radio" class="u-hide" id="row_view" name="productlist_view" aria-label="row_view" {% if layout.category_view_mode and layout.category_view_mode == 'row_view' or not layout.category_view_mode == 'list_view' %}checked="checked"{% endif %}>
<input type="radio" class="u-hide" id="list_view" name="productlist_view" aria-label="list_view" {% if layout.category_view_mode and layout.category_view_mode == 'list_view' %}checked="checked"{% endif %}>
{% endif %}
<section class="categoryList u-mgb--half">
<input type="checkbox" id="categoryList_checkbox" class="cardList-inputToggle" {% if layout.hasChilds %} checked="checked"{% endif %}>
<div class="cardList cardList--topCategory cardList--topTaxonomy " data-js-cardlist="top" {% if is_search is defined %}data-type="searchresult"{% endif %}>
{% if layout.section_image is defined %}
<img src="/{{ layout.section_image }}.{% if layout.id_tag is defined and layout.id_tag == tag_data.blackfriday_id%}png{% else %}jpg{% endif %}" alt="" class="cardList-bg"/>
{% endif %}
<h1 class="cardList-title cardList-title--huge">{{ layout.name_category }}</h1>
<span class="cardList-number">({{ layout.num_products }}) {% if layout.num_references %}({{ 'category_list_content.references' | trans({}, domain, languageIsoCode) }} {{ layout.num_references }}){% endif %}</span>
{% if layout.cat in [2662, 2672, 2678, 2202] or not layout.is_main_category or layout.id_tag is not defined or layout.id_manufacturer is not defined %}
<div class="cardList-description">
{{ layout.desc_category | raw }}
</div>
{% endif %}
{% if not layout.is_main_category or not layout.childs %}
{% set nameParentCat = layout.parent_category_name %}
{% endif %}
{% if layout.childs %}
<label class="cardList-btn" for="categoryList_checkbox" data-js-cardlist="tab">
<span class="cardList-btnOpen">{{ 'category_list_content.show_other_products' | trans({}, domain, languageIsoCode) }} <b>{% if not nameParentCat %}{{ layout.name_category }}{% else %}{{ nameParentCat }}{% endif %}</b></span>
<span class="cardList-btnClose">{{ 'category_list_content.hide_products' | trans({}, domain, languageIsoCode) }}</span>
</label>
<br><br>
{% endif %}
</div>
{% if layout.childs %}
<section class="cardList cardList--inside">
{% for key,child in layout.childs %}
{% if child.id != layout.cat %}
<div class="cardList-item ">
<a href="{{ child.link }}" class="cardElem cardElem--list ">
<figure class="cardElem-figure">
<figcaption class="cardElem-figcaption">
<div class="cardElem-text">
<h3 class="cardElem-title">{{ child.name }}</h3>
<span class="number cardElem-number"><!--(5)--></span>
</div>
</figcaption>
<div class="cardElem-imgCont">
<img src="" data-original="/{{ child.image.id }}-home/{{ child.image.name }}.jpg" alt="{{ child.image.name }}" class="cardElem-img lazy">
</div>
</figure>
</a>
</div>
{% endif %}
{% endfor %}
</section>
{% endif %}
</section>
{% set existsBlackFriday = false %}
{% set existsHotDeals = false %}
{% if layout.filterTags %}
{% for tag in layout.filterTags %}
{% if tag.id_tag == tag_data.blackfriday_id %}
{% set existsBlackFriday = false %}
{% endif %}
{% if tag.id_tag == tag_data.hotdeals_id %}
{% set existsHotDeals = true %}
{% endif %}
{% endfor %}
{% endif %}
<div class="modularGrid u-pdb--half">
<div class="u-flex--between u-flwrap u-flex--center">
<h2 class="subtitle6 u-pdv--half" data-js-numproducts="">
<span data-js-num-products="num-products">{{ layout.num_products }}</span>
{{ 'category_list_content.products_in' | trans({}, domain, languageIsoCode) }}
<span class="u-upp">{{ layout.name_category }}</span></h2>
<div class="modularGrid-module u-flex--end u-flex--center u-flwrap width-auto">
{% if existsBlackFriday == true %}
<label class="form-label form-label--inline"><strong>{{ 'category_list_content.filter_by' | trans({}, domain, languageIsoCode) }}</strong></label>
<button class="button button--blackf u-mgr" data-js-blackfriday="blackfriday">
{{ tag_data.blackfriday_text }}
</button>
<script>
$(document).ready(function () {
$('[data-js-blackfriday="blackfriday"]').off('click').on('click', function () {
$('[for="tag_72"]').click();
$('[data-js-filter="apply"]').first().click();
})
});
</script>
{% endif %}
{% if existsHotDeals == 'true' and not existsBlackFriday %}
<label class="form-label form-label--inline"><strong>{{ 'category_list_content.filter_by' | trans({}, domain, languageIsoCode) }}</strong></label>
<button class="button button--hot u-mgr" data-js-hotdeals="hotdeals">
{{ tag_data.hotdeals_text }}
</button>
<script>
$(document).ready(function () {
$('[data-js-hotdeals="hotdeals"]').off('click').on('click', function () {
$('[for="tag_85"]').click();
$('[data-js-filter="apply"]').first().click();
})
});
</script>
{% endif %}
{% if layout.is_wholesaler %}
{% if layout.services_customer %}
<label class="form-label form-label--inline"><strong>Download</strong></label>
<button class="button button--csv u-mgr" data-js-download-csv="download-csv">
<strong>CSV</strong>
</button>
{% endif %}
{% endif %}
<label class="form-label form-label--inline" for="orderfilter"><strong>{{ 'category_list_content.order_by' | trans({}, domain, languageIsoCode) }}</strong></label>
<select class="form-select form-select--inline" id="orderfilter" data-js-filter-var="order">
{% if is_search is defined %}
<option value="-1">{{ 'category_list_content.relevance' | trans({}, domain, languageIsoCode) }}</option>
{% endif %}
<option value="3">{{ 'category_list_content.top_selling' | trans({}, domain, languageIsoCode) }}</option>
<option value="0">{{ 'category_list_content.new_products' | trans({}, domain, languageIsoCode) }}</option>
<option value="1">{{ 'category_list_content.min_to_max' | trans({}, domain, languageIsoCode) }}</option>
<option value="4">{{ 'category_list_content.max_to_min' | trans({}, domain, languageIsoCode) }}</option>
<option value="2">{{ 'category_list_content.a_z' | trans({}, domain, languageIsoCode) }}</option>
<option value="5">{{ 'category_list_content.z_a' | trans({}, domain, languageIsoCode) }}</option>
</select>
{% if layout.is_wholesaler %}
<div class="u-pdl--half" id="id_driverviews">
<label class="button button--toggle" for="row_view" aria-label="row_button"
title="Vista mosaico" alt="Vista mosaico">
<svg role="img" class="icon icon--inline icon--sm ">
<use xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="/public/img/icons/svg-defs.svg#icon-row"></use>
</svg>
</label>
<label class="button button--toggle" for="list_view" aria-label="list_button"
title="Vista listado" alt="Vista listado">
<svg role="img" class="icon icon--inline icon--sm ">
<use xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="/public/img/icons/svg-defs.svg#icon-list"></use>
</svg>
</label>
</div>
{% endif %}
</div>
</div>
</div>
<div class="modularGrid">
<div class="modularGrid-module u-pdt--half">
<section class="filter-list">
<label class="filter-bodyLabel" for="" data-js-filter="label" data-active="false"></label>
{% if layout.showBigStocks == 'true' %}
{% include 'front/shop_b2b/filter_big_stocks.html.twig' %}
{% endif %}
<aside class="filter" data-js-filter="filter">
<input type="checkbox" class="inputToggle" data-js-filter="checkbox" id="pricesRangeId">
<label for="pricesRangeId" class="filter-headerTitle" data-js-filter="btn" title="{{ 'category_list_content.price' | trans({}, domain, languageIsoCode) }}">{{ 'category_list_content.price' | trans({}, domain, languageIsoCode) }}</label>
<section class="filter-body filter-body--range">
<div class="modularGrid u-pdh u-pdt--half">
<div class="modularGrid-module u-xs-50">
<label for="rangeFilterLow" class="form-label">{{ 'category_list_content.of' | trans({}, domain, languageIsoCode) }}</label>
</div>
<div class="modularGrid-module u-xs-50 u-tar">
<label for="rangeFilterHigh" class="form-label">{{ 'category_list_content.to' | trans({}, domain, languageIsoCode) }}</label>
</div>
<div class="modularGrid-module u-pdb">
<aside id="html5range" class="noUi-target noUi-ltr noUi-horizontal noUi-background">
</aside>
</div>
<div class="modularGrid-module u-xs-45">
<input class="form-input form-input--postfix" type="number" default="0" min="0" max="1000" id="rangeFilterLow" data-js-filter-var="price" name="price" value="">
<span class="form-postfix ">€</span>
</div>
<div class="modularGrid-module u-xs-10 u-tac">
<span class="u-op-20">_ _</span>
</div>
<div class="modularGrid-module u-xs-45 u-tar">
<input class="form-input form-input form-input--postfix" type="number" default="{{ layout.max_price }}" min="0" max="1000" id="rangeFilterHigh" data-js-filter-var="price" name="price" value="">
<span class="form-postfix ">€</span>
</div>
</div>
<div class="modularGrid u-pd--half u-mgt--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
<aside class="filter" data-js-filter="filter">
<input type="checkbox" class="inputToggle" data-js-filter="checkbox" id="stockRangeId">
<label for="stockRangeId" class="filter-headerTitle" data-js-filter="btn" title="{{ 'category_list_content.stock' | trans({}, domain, languageIsoCode) }}">{{ 'category_list_content.stock' | trans({}, domain, languageIsoCode) }}</label>
<section class="filter-body filter-body--range">
<div class="modularGrid u-pdh u-pdt--half">
<div class="modularGrid-module u-xs-50">
<label for="rangeStockFilterLow" class="form-label">{{ 'category_list_content.of' | trans({}, domain, languageIsoCode) }}</label>
</div>
<div class="modularGrid-module u-xs-50 u-tar">
<label for="rangeStockFilterHigh" class="form-label">{{ 'category_list_content.to' | trans({}, domain, languageIsoCode) }}</label>
</div>
<div class="modularGrid-module u-pdb">
<aside id="html5StockRange" class="noUi-target noUi-ltr noUi-horizontal noUi-background">
</aside>
</div>
<div class="modularGrid-module u-xs-45">
<input class="form-input form-input--postfix" type="number" default="0" min="0" max="1000" id="rangeStockFilterLow" data-js-filter-var="rangeStock" name="rangeStock" value="">
</div>
<div class="modularGrid-module u-xs-10 u-tac">
<span class="u-op-20">_ _</span>
</div>
<div class="modularGrid-module u-xs-45 u-tar">
<input class="form-input form-input form-input--postfix" type="number" default="{{ layout.max_stock }}" min="0" max="10000" id="rangeStockFilterHigh" data-js-filter-var="rangeStock" name="rangeStock" value="">
</div>
</div>
<div class="modularGrid u-pd--half u-mgt--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
<aside class="filter" data-js-filter="filter">
<input type="checkbox" class="inputToggle" data-js-filter="checkbox" id="availableRangeId">
<label for="availableRangeId" class="filter-headerTitle" data-js-filter="btn" title="{{ 'category_list_content.available' | trans({}, domain, languageIsoCode) }}">{{ 'category_list_content.available' | trans({}, domain, languageIsoCode) }}</label>
<section class="filter-body">
<div class="filter-option">
<input type="checkbox" class="filter-checkbox" id="stock0" data-js-filter-var="stock" name="stock" value="0" {% if layout.filters.stock is defined and layout.filters.stock[0] == 0 %}checked="checked"{% endif %}>
<label class="filter-label" for="stock0" data-js-label="{{ 'category_list_content.available' | trans({}, domain, languageIsoCode) }}">
{{ 'category_list_content.yes' | trans({}, domain, languageIsoCode) }}<span>{% if layout.filterCounter.stock is defined and layout.filterCounter.stock[1] %}{{ layout.filterCounter.stock[1] }}{% endif %}</span>
</label>
</div>
<div class="filter-option">
<input type="checkbox" class="filter-checkbox" id="stock1" data-js-filter-var="stock" name="stock" value="1" {% if layout.filters.stock is defined and layout.filters.stock[0] == 1 %}checked="checked"{% endif %}>
<label class="filter-label" for="stock1" data-js-label="{{ 'category_list_content.not_available' | trans({}, domain, languageIsoCode) }}">
{{ 'category_list_content.no' | trans({}, domain, languageIsoCode) }}<span>{% if layout.filterCounter.stock is defined and layout.filterCounter.stock[0] %}{{ layout.filterCounter.stock[0] }}{% endif %}</span>
</label>
</div>
<div class="modularGrid u-pd--half u-mgt--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
{% if layout.hasChilds %}
<aside class="filter filter-horizontal" data-js-filter="filter">
<input type="checkbox" class="inputToggle" data-js-filter="checkbox" id="categories">
<label for="categories" class="filter-headerTitle" data-js-filter="btn" title="{{ 'category_list_content.categories' | trans({}, domain, languageIsoCode) }}">{{ 'category_list_content.categories' | trans({}, domain, languageIsoCode) }}</label>
<section class="filter-body filter-body--xtraRange">
{% for key, value in layout.childs %}
<div class="filter-option">
<input type="checkbox" class="filter-checkbox" id="category{{ key }}" data-js-filter-var="category" name="category" value="{{ value.id }}" {% if value.id in layout.filteredCategories %}checked="checked"{% endif %}>
<label class="filter-label" for="category{{ key }}">
{{ value.name }}
</label>
</div>
{% endfor %}
<div class="modularGrid u-pd--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
{% endif %}
{% include 'front/shop_b2b/condition_filter.html.twig' %}
<aside class="filter" data-js-filter="filter">
<input type="checkbox" class="inputToggle" data-js-filter="checkbox" id="video">
<label for="video" class="filter-headerTitle" data-js-filter="btn" title="{{ 'category_list_content.video' | trans({}, domain, languageIsoCode) }}">{{ 'category_list_content.video' | trans({}, domain, languageIsoCode) }}</label>
<section class="filter-body">
<div class="filter-option">
<input type="checkbox" class="filter-checkbox" id="video0" data-js-filter-var="video" name="video" value="0" {% if layout.filters.video is defined and layout.filters.video[0] == 0 %}checked="checked"{% endif %}>
<label class="filter-label" for="video0" data-js-label="{{ 'category_list_content.with_video' | trans({}, domain, languageIsoCode) }}">
{{ 'category_list_content.yes' | trans({}, domain, languageIsoCode) }}<span>{% if layout.filterCounter.video is defined and layout.filterCounter.video[1] %}layout.filterCounter.video[1]{% endif %}</span>
</label>
</div>
<div class="filter-option">
<input type="checkbox" class="filter-checkbox" id="video1" data-js-filter-var="video" name="video" value="1" {% if layout.filters.video is defined and layout.filters.video[0] == 1 %}checked="checked"{% endif %}>
<label class="filter-label" for="video1" data-js-label="{{ 'category_list_content.without_video' | trans({}, domain, languageIsoCode) }}">
{{ 'category_list_content.no' | trans({}, domain, languageIsoCode) }}<span>{% if layout.filterCounter.video is defined and layout.filterCounter.video[0] %}layout.filterCounter.video[0]{% endif %}</span>
</label>
</div>
<div class="modularGrid u-pd--half u-mgt--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
{% if layout.filterBrands %}
<aside class="filter filter-horizontal" data-js-filter="filter">
<input class="inputToggle" data-js-filter="checkbox" id="brandsRangeId" type="checkbox">
<label for="brandsRangeId" class="filter-headerTitle" data-js-filter="btn" title="{{ 'category_list_content.brands' | trans({}, domain, languageIsoCode) }}">{{ 'category_list_content.brands' | trans({}, domain, languageIsoCode) }}</label>
<section class="filter-body filter-body--xtraRange">
<div class="filter-scrollpanel">
<nav class="brandList brandList--filters">
{% for brand in layout.filterBrands %}
<input class="inputToggle brandList-input" id="brand_{{ brand.id_manufacturer }}" value="{{ brand.id_manufacturer }}" data-js-brand-name="{{ brand.name }}" type="checkbox" data-js-filter-var="brands" {% if brand.id_manufacturer in layout.filteredBrands %}checked="checked"{% endif %}>
<label class="brandList-label" for="brand_{{ brand.id_manufacturer }}">
{{ brand.name }}
</label>
{% endfor %}
</nav>
</div>
<div class="modularGrid u-pd--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
{% endif %}
{% if layout.filterTags %}
<aside class="filter filter-horizontal" data-js-filter="filter">
<input class="inputToggle" data-js-filter="checkbox" id="tagsRangeId" type="checkbox">
<label for="tagsRangeId" class="filter-headerTitle" data-js-filter="btn" title="{{ 'category_list_content.tags' | trans({}, domain, languageIsoCode) }}">{{ 'category_list_content.tags' | trans({}, domain, languageIsoCode) }}</label>
<section class="filter-body filter-body--xtraRange">
<nav class="tags-list--filters">
{% for tag in layout.filterTags %}
<input class="tags-checkbox inputToggle" id="tag_{{ tag.id_tag }}" value="{{ tag.id_tag }}" type="checkbox" data-js-filter-var="tags" {% if tag.id_tag in layout.filteredTags %}checked="checked"{% endif %}>
<label class="tags-label" for="tag_{{ tag.id_tag }}">
{{ tag.name }}<span>{% if layout.filterCounter.tags is defined and layout.filterCounter.tags[tag.id_tag] %}{{ layout.filterCounter.tags[tag.id_tag] }}{% endif %}</span>
</label>
{% endfor %}
</nav>
<div class="modularGrid u-pd--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
{% endif %}
{% if layout.filterFeatures and layout.showFeatures %}
{% for filterFeature in layout.filterFeatures %}
<aside class="filter" data-js-filter="filter">
<input class="inputToggle" data-js-filter="checkbox" id="features{{ filterFeature.id_feature }}father" type="checkbox" value="{{ filterFeature.id_feature }}">
<label for="features{{ filterFeature.id_feature }}father" class="filter-headerTitle" data-js-filter="btn" title="{{ filterFeature.name_feature }}">{{ filterFeature.name_feature }}</label>
<section class="filter-body">
<div class="filter-body__container">
{% for values in filterFeature.values %}
<div class="filter-option">
<input type="checkbox" class="filter-checkbox" id="features{{ values.id }}" data-js-filter-var="features" {% if values.id in layout.filteredFeatures %}checked="checked"{% endif %}
name="features" value="{{ values.id }}">
<label class="filter-label" for="features{{ values.id }}" data-js-label="{{ values.name }}">
{{ values.name }}<span>{% if layout.filterCounter is defined and layout.filterCounter.1 %}{{ layout.filterCounter.1 }}{% endif %}</span>
</label>
</div>
{% endfor %}
</div>
<div class="modularGrid u-pd--half u-brdt">
<div class="modularGrid-module u-tac">
<button class="button button--condensed" data-js-filter="apply">{{ 'category_list_content.filter' | trans({}, domain, languageIsoCode) }}</button>
</div>
</div>
</section>
</aside>
{% endfor %}
{% endif %}
</section>
</div>
<div class="modularGrid-module u-pdt--third" data-js-filter="added" style="display: none;">
<h4 class="subtitle3 subtitle3--inline u-pdr--half">{{ 'category_list_content.filters' | trans({}, domain, languageIsoCode) }} <span class="subtitle3-number"><!--(106)--></span></h4>
<button class="button button--tags" data-js-filter="removeAll">{{ 'category_list_content.remove_filters' | trans({}, domain, languageIsoCode) }}</button>
</div>
{% include 'front/shop_b2b/product_list.html.twig' %}
{% include 'front/paginator/paginator.html.twig' %}
</div>
</div>