2015-04-11 20:08:24 +00:00
|
|
|
<header>
|
2017-06-01 21:45:35 +00:00
|
|
|
{if isset($supportedLocales) AND count($supportedLocales) > 1}
|
2017-06-01 20:48:14 +00:00
|
|
|
<div class="locales small-font">
|
|
|
|
<button class="localesBtn small-font" title="{t}Switch language{/t}">
|
2020-11-21 13:20:01 +00:00
|
|
|
{if $locale->getLocale()->getCountry()}
|
|
|
|
{$locale->getLocale()->getCountry()->getEmoji()}
|
2017-06-01 20:48:14 +00:00
|
|
|
{else}
|
2019-11-29 20:33:49 +00:00
|
|
|
{t}Set language{/t}
|
2017-06-01 20:48:14 +00:00
|
|
|
{/if}
|
|
|
|
</button>
|
|
|
|
<ul class="supportedLocales">
|
|
|
|
{foreach $supportedLocales as $supportedLocale}
|
|
|
|
{if $supportedLocale != $locale}
|
2019-11-27 22:15:49 +00:00
|
|
|
<li>
|
|
|
|
<a hreflang="{$supportedLocale->getBcp47()}"
|
2020-05-13 22:18:39 +00:00
|
|
|
lang="{$supportedLocale->getBcp47()}"
|
|
|
|
href="{path_for name='locale' data=['locale'=>$supportedLocale->getIso15897()]}">
|
2019-11-27 22:15:49 +00:00
|
|
|
{if $supportedLocale->getCountry()}
|
|
|
|
{$supportedLocale->getCountry()->getEmoji()}
|
|
|
|
{/if}
|
2023-03-21 19:25:47 +00:00
|
|
|
{$supportedLocale->getFullName()}
|
2019-11-27 22:15:49 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-06-01 20:48:14 +00:00
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2015-04-11 20:08:24 +00:00
|
|
|
</header>
|