modules/XC/CrispWhiteSkin/templates/web/customer/items_list/product/parts/common.display-modes.twig line 1

Open in your IDE?
  1. {##
  2.  # Products list display mode selector
  3.  #}
  4. {% set currentDisplayMode = this.getParam('displayMode') %}
  5. {% if this.isDisplayModeSelectorVisible() %}
  6.   <div class="display-mode-box">
  7.     <div>
  8.       <span class="display-mode-value">
  9.         <i class="fa {{ this.getDisplayModeCSS(currentDisplayMode) }}" aria-hidden="true"></i>
  10.         <span class="visually-hidden">
  11.           {% for key, name in this.displayModes %}
  12.             {% if key == currentDisplayMode %}
  13.               {{ t('Current display mode: {{mode}}', {'mode': t(name)}) }}
  14.             {% endif %}
  15.           {% endfor %}
  16.         </span>
  17.       </span>
  18.     </div>
  19.     <ul class="display-modes grid-list">
  20.       {% for key, name in this.displayModes %}
  21.         <li class="{{ this.getDisplayModeLinkClassName(key) }}">
  22.           <a href="{{ this.getActionURL({'displayMode': key}) }}" class="{{ key }}">
  23.             <i class="{{ this.getDisplayModeCSS(key) }}" aria-hidden="true"></i>
  24.             <span class="text">{{ t(name) }}</span>
  25.           </a>
  26.         </li>
  27.       {% endfor %}
  28.     </ul>
  29.   </div>
  30. {% endif %}