{% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
{% block element_product_listing_pagination_nav_actions %}
<div class="cms-element-product-listing-actions row justify-content-end">
<div class="col-lg-auto col-12">
{% block element_product_listing_sorting %}
<div class="sorting" data-listing-sorting="true" data-listing-sorting-options='{{ config|json_encode }}'>
<select class="sorting custom-select" aria-label="{{ 'general.sortingLabel'|trans|striptags }}">
{% set sortings = [
{
label: 'uandiDownloadCenter.sortingPresorted'|trans|sw_sanitize,
value: 'uandiMediaExtension.priority-desc'
},
{
label: 'uandiDownloadCenter.sortingTitleAsc'|trans|sw_sanitize,
value: 'title-asc'
},
{
label: 'uandiDownloadCenter.sortingTitleDesc'|trans|sw_sanitize,
value: 'title-desc'
},
] %}
{% for sorting in sortings %}
<option value="{{ sorting.value }}"{% if sorting.value == searchResult.sorting %} selected{% endif %}>{{ sorting.label }}</option>
{% endfor %}
</select>
</div>
{% endblock %}
</div>
<div class="col-auto d-none d-lg-flex listing-view-mode-switches">
<button class="listing-view-mode-switch list-view-mode-switch">
{% sw_icon 'list' %}
</button>
<button class="listing-view-mode-switch grid-view-mode-switch active">
{% sw_icon 'view-grid' %}
</button>
</div>
</div>
{% endblock %}
{% block element_product_listing_box %}
{% sw_include '@Storefront/storefront/component/media/card/box.html.twig' %}
{% endblock %}