{##
# Products list display mode selector
#}
{% set currentDisplayMode = this.getParam('displayMode') %}
{% if this.isDisplayModeSelectorVisible() %}
<div class="display-mode-box">
<div>
<span class="display-mode-value">
<i class="fa {{ this.getDisplayModeCSS(currentDisplayMode) }}" aria-hidden="true"></i>
<span class="visually-hidden">
{% for key, name in this.displayModes %}
{% if key == currentDisplayMode %}
{{ t('Current display mode: {{mode}}', {'mode': t(name)}) }}
{% endif %}
{% endfor %}
</span>
</span>
</div>
<ul class="display-modes grid-list">
{% for key, name in this.displayModes %}
<li class="{{ this.getDisplayModeLinkClassName(key) }}">
<a href="{{ this.getActionURL({'displayMode': key}) }}" class="{{ key }}">
<i class="{{ this.getDisplayModeCSS(key) }}" aria-hidden="true"></i>
<span class="text">{{ t(name) }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}