Files
kupshop/web/templates/x/focus/focus.switcher.tpl
2025-08-02 16:30:27 +02:00

34 lines
1.2 KiB
Smarty

{extends "focus/focus.base.tpl"}
{block "focus-content"}
{get_contexts language=1 currency=1 assign='language_contexts'}
<div class="switcher-list">
{if !$hide_language}
{block "language-title"}{/block}
<ul class="list-unstyled">
{foreach $language_contexts.language->getSupported() as $id => $lang}
{$flag = $id}
<li>
<a href="{path('kupshop_i18n_changelanguage_change', ['lang' => $id])}" class="switcher-link">
<span>{$lang.name}</span>
<img src="/common/static/images/flags/{$flag|replace:"en":"gb"}.svg" loading="lazy" width="25" height="25" class="img-responsive" alt="">
</a>
</li>
{/foreach}
</ul>
{/if}
{if !$hide_currency}
{block "currency-title"}{/block}
<ul class="list-unstyled">
{foreach $language_contexts.currency->getSupported() as $id => $currency}
<li>
<a href="{path('kupshop_catalog_catalog_changecurrency', ['currency' => $id])}">
<span>{$currency.name}</span>
</a>
</li>
{/foreach}
</ul>
{/if}
</div>
{/block}