custom/plugins/UandiEfbDownloadCenter/src/Resources/views/storefront/component/media/listing.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
  2. {% block element_product_listing_pagination_nav_actions %}
  3.     <div class="cms-element-product-listing-actions row justify-content-end">
  4.         <div class="col-lg-auto col-12">
  5.             {% block element_product_listing_sorting %}
  6.                 <div class="sorting" data-listing-sorting="true" data-listing-sorting-options='{{ config|json_encode }}'>
  7.                     <select class="sorting custom-select" aria-label="{{ 'general.sortingLabel'|trans|striptags }}">
  8.                         {% set sortings = [
  9.                             {
  10.                                 label: 'uandiDownloadCenter.sortingPresorted'|trans|sw_sanitize,
  11.                                 value: 'uandiMediaExtension.priority-desc'
  12.                             },
  13.                             {
  14.                                 label: 'uandiDownloadCenter.sortingTitleAsc'|trans|sw_sanitize,
  15.                                 value: 'title-asc'
  16.                             },
  17.                             {
  18.                                 label: 'uandiDownloadCenter.sortingTitleDesc'|trans|sw_sanitize,
  19.                                 value: 'title-desc'
  20.                             },
  21.                         ] %}
  22.                         {% for sorting in sortings %}
  23.                             <option value="{{ sorting.value }}"{% if sorting.value == searchResult.sorting %} selected{% endif %}>{{ sorting.label }}</option>
  24.                         {% endfor %}
  25.                     </select>
  26.                 </div>
  27.             {% endblock %}
  28.         </div>
  29.         <div class="col-auto d-none d-lg-flex listing-view-mode-switches">
  30.             <button class="listing-view-mode-switch list-view-mode-switch">
  31.                 {% sw_icon 'list' %}
  32.             </button>
  33.             <button class="listing-view-mode-switch grid-view-mode-switch active">
  34.                 {% sw_icon 'view-grid' %}
  35.             </button>
  36.         </div>
  37.     </div>
  38. {% endblock %}
  39. {% block element_product_listing_box %}
  40.     {% sw_include '@Storefront/storefront/component/media/card/box.html.twig'  %}
  41. {% endblock %}