2015-04-11 20:08:24 +00:00
|
|
|
<header>
|
|
|
|
<div class="social">
|
2017-06-01 09:43:07 +00:00
|
|
|
<a class="twitter" href="http://twitter.com/home?status={base_url|urlencode}" title="{t}Share on Twitter{/t}" target="_blank">
|
|
|
|
<div class="twittermask"></div></a>
|
|
|
|
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u={base_url|urlencode}" title="{t}Share on Facebook{/t}" target="_blank"><div class="facebookmask"></div></a>
|
2015-04-11 20:08:24 +00:00
|
|
|
</div>
|
2017-05-31 07:32:11 +00:00
|
|
|
{if isset($supportedLocales)}
|
2017-06-01 09:25:59 +00:00
|
|
|
<div class="locales small-font">
|
|
|
|
<button class="localesBtn small-font" title="{t}Switch language{/t}">
|
2017-06-01 09:08:50 +00:00
|
|
|
{if isset($locale)}
|
|
|
|
{$locale->getCountry()->getEmoji()}
|
|
|
|
{else}
|
|
|
|
Set language
|
|
|
|
{/if}
|
|
|
|
</button>
|
2017-05-31 23:04:39 +00:00
|
|
|
<ul class="supportedLocales">
|
2017-05-31 07:32:11 +00:00
|
|
|
{foreach $supportedLocales as $supportedLocale}
|
2017-05-31 23:04:39 +00:00
|
|
|
{if $supportedLocale != $locale}
|
|
|
|
<li><a hreflang="{$supportedLocale->getBcp47()}" lang="{$supportedLocale->getBcp47()}" href="{path_for name='locale' data=['locale'=>$supportedLocale->getIso15897()]}">{$supportedLocale->getCountry()->getEmoji()} {$supportedLocale->getFullName()}</a></li>
|
|
|
|
{/if}
|
2017-05-30 20:20:16 +00:00
|
|
|
{/foreach}
|
2017-05-30 21:55:11 +00:00
|
|
|
</ul>
|
|
|
|
{/if}
|
2017-05-31 23:04:39 +00:00
|
|
|
</div>
|
2015-04-11 20:08:24 +00:00
|
|
|
</header>
|
|
|
|
<div class="wrapper">
|