custom/plugins/EmovaWbTheme/src/Resources/views/storefront/component/sorting.html.twig line 1

Open in your IDE?
  1. {% set config = { sorting: current } %}
  2. {% set showSorting = (slot.config.showSorting.value is defined) ? slot.config.showSorting.value : true %}
  3. {% if showSorting and sortings|length > 1 %}
  4.     <div class="sorting form-group custom-dropdown" data-listing-sorting="true" data-listing-sorting-options='{{ config|json_encode }}'>
  5.         <select style="background-color: white !important; color:black !important; margin-top:0px !important" class="sorting {{ formSelectClass }}" aria-label="{{ 'general.sortingLabel'|trans|striptags }}">
  6.             {% for sorting in sortings %}
  7.                 {% set key = sorting.key %}
  8.                 <option value="{{ key }}"{% if key == current %} selected{% endif %}>{{ sorting.translated.label|sw_sanitize }}</option>
  9.             {% endfor %}
  10.         </select>
  11.     </div>
  12. {% endif %}
  13. <style>
  14.     .form-group {
  15.         margin-bottom: 0px !important;
  16.     }
  17.     .custom-select{
  18.         margin-bottom: 15px !important;
  19.     }
  20. </style>