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}">
|
|
|
|
{if isset($locale)}
|
|
|
|
{$locale->getCountry()->getEmoji()}
|
|
|
|
{else}
|
|
|
|
Set language
|
|
|
|
{/if}
|
|
|
|
</button>
|
|
|
|
<ul class="supportedLocales">
|
|
|
|
{foreach $supportedLocales as $supportedLocale}
|
|
|
|
{if $supportedLocale != $locale}
|
2017-08-07 14:50:25 +00:00
|
|
|
<li><a hreflang="{$supportedLocale->getBcp47()}" lang="{$supportedLocale->getBcp47()}" href="{path_for name='locale' data=['locale'=>$supportedLocale->getIso15897()]}">{$supportedLocale->getCountry()->getEmoji()} {$supportedLocale->getFullName()|ucfirst}</a></li>
|
2017-06-01 20:48:14 +00:00
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2015-04-11 20:08:24 +00:00
|
|
|
<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>
|
|
|
|
</header>
|
|
|
|
<div class="wrapper">
|