{% if languages|length > 1 %}
<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">
  <div class="btn-group">
    <button class="btn-link dropdown-toggle" data-toggle="dropdown"> <span> {% if bigshop_language_currency_title == 1 %}
    {{ text_language }}
    {% endif %}
    {% for language in languages %}
    {% if language.code == code %} <img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}">{{ language.name }}
    {% endif %}
    {% endfor %} <i class="fa fa-caret-down"></i></span></button>
    <ul class="dropdown-menu">
      {% for language in languages %}
      <li>
        <button class="btn btn-link btn-block language-select" type="button" name="{{ language.code }}"><img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}" /> {{ language.name }}</button>
      </li>
      {% endfor %}
    </ul>
  </div>
  <input type="hidden" name="code" value="" />
  <input type="hidden" name="redirect" value="{{ redirect }}" />
</form>
{% endif %} 