<div class="js-wrap-filters"> {# пришлось добавить этот контейнер, чтобы при фиксировании фильтров в топе страницы не прыгал контент страницы #} <section class="exhibition-filters js-exhibition-filters"> <div id="filters_list" class="filters-list"> <div class="sbm-filt"> <a href="javascript:void(0);" class="header show-res active" role="show-result-mobile" > {{ 'left_menu_show' | trans }} </a> <div class="box"> <span class="filt-count js-filt-count-exhib"> {{ 'left_menu_criteria' | trans }}: <span data-filt-count="0">0</span> </span> </div> </div> <div id="brand_drop_list" class="dropdown fabric short-list-filter js-short-list-filter"> <div class="gi-select" data-loading="true"> <select name="factory" data-factory="factory" class="hidden js-select-brand " data-label="{{ 'left_menu_factories' | trans }}" autocomplete="off" > <option value="0">{{ 'left_menu_factories' | trans }}</option> {% for brand in exh.exhBrands %} <option value="{{ brand.id }}" data-brand-filter="1" data-flag-id={{ brand.country.id }} data-country-name="{{ brand.country.name | raw }}" > {{ brand.name | raw }} </option> {% endfor %} </select> <span class="count factory-count" data-total="">(20)</span> {# это значение меняется скриптом #} <div class="arrow"></div> <input type="hidden" name="factory" data-label="{{ 'left_menu_factories' | trans }}" data-filter="factory" value="{{ 'left_menu_factories' | trans }}" data-tmp-name="" > <input type="text" placeholder="{{ 'left_menu_factories' | trans }}" value="{{ 'left_menu_factories' | trans }}" /> <span class="gi-checkbox"></span> <ul class="unstyled-list"></ul> </div> </div> {% for gr in exh.listFiltersByGroup %} {% set forId = loop.index + 1 %} {% if gr.name == 'other' %} <div class="dropdown short-list-filter slim-porceline "> <button class="dropdown-toggle" type="button" style="pointer-events: none;"> <span class="check-txt">{{ 'left_menu_porcelain' | trans }}:</span> </button> </div> {% for filter in gr.filters %} <div class="dropdown short-list-filter js-short-list-filter other"> <div class="dropdown-list-item"> <label data-filter-id="{{ filter.id }}" data-filt-name="{{ filter.nameMany | raw }}" class="js-left-checkbox left-checkbox inline" > <span class="name"> {{ filter.namePorcelain | raw }} </span> <span class="option-count"></span> <i class="is-check"></i> <i class="no-check"></i> </label> </div> </div> {% endfor %} {% else %} <div class="dropdown short-list-filter js-short-list-filter"> <button class="dropdown-toggle" type="button" id="dropdownBtn-{{ forId }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span data-gr-name="{{ gr.name }}" class="help-tooltip check-txt{# checked#}"{# data-filter-alias="{{ filter_alias}}"#}>{{ gr.name }}</span> <i class="caret"></i> </button> <div class="dropdown-menu{# js-list-option#}" aria-labelledby="dropdownBtn-1"{# data-get-filters="{{ filter_key }}"#}> <div class="inner-dropdown"> {# заготовка для первой строки меню or gr.altName == 'surface'#} {% if gr.altName == 'style' or gr.altName == 'effect' or gr.altName == 'motiv' or gr.altName == 'surface' %} {% set name = ('left_all_' ~ gr.altName ) | trans %} <div class="dropdown-list-item"> <label data-filter-id="0" data-filt-name="{{ name }}" class="js-left-checkbox left-checkbox active" > <span class="name">{{ name }}</span> <i class="is-check"></i> <i class="no-check"></i> </label> </div> {% endif %} {% for filter in gr.filters %} <div class="dropdown-list-item"> <label data-filter-id="{{ filter.id }}" data-filt-name="{{ filter.nameMany | raw }}" class="js-left-checkbox left-checkbox" > <span class="name">{{ filter.name | raw }} </span> <span class="option-count"></span> <i class="is-check"></i> <i class="no-check"></i> </label> </div> {% endfor %} </div> </div> </div> {% endif %} {% endfor %} </div> <aside class="filter-status js-filter-status"> <div class="sbm-filt {{ userLocale() }}"> <div class="box"> <span class="active-filt-status-mob js-active-filt-status-mob hidden"></span> <span class="result-count hidden" data-pattern="{{ settingsCount | json_encode(constant('JSON_FORCE_OBJECT')) }}"></span> <span class="filter-count js-filt-count-start "> {{ 'left_menu_criteria' | trans }}: <span> <span data-filt-count="0">0</span> {{ 'of_exh' | trans }} {{ exh.listFiltersByGroup | length + 1 }} </span> </span> </div> <a href="javascript:void(0);" class="header show-res active" role="show-all-filters-mobile"> {{ 'blog.filters' | trans }} </a> </div> </aside> <aside id="brand_title" class="brand-title"> {# cюда будет вставляться контент header.js-exh-header при скролле страницы #} </aside> </section></div>