{extends "focus/focus.base.tpl"}

{block "focus-content"}
    {get_contexts language=1 assign='language_contexts'}

    <div class="switcher-list">
        <ul class="list-unstyled">
            {foreach $language_contexts.language->getSupported() as $id => $lang}
                {$flag = $id}
                {if $id == 'en'}
                    {$flag = 'gb'}
                {/if}
                <li>
                    <a href="{path('kupshop_i18n_changelanguage_change', ['lang' => $id])}" class="switcher-link">
                        <span>{$lang.name}</span>
                        <img src="/common/static/images/flags/{$flag}.svg" loading="lazy" width="25" height="25" class="img-responsive" alt="">
                    </a>
                </li>
            {/foreach}
        </ul>
    </div>
{/block}
