2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@layout.xml"}
|
2022-08-09 09:37:08 +03:00
|
|
|
{block title}{_select_language}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block header}
|
2022-08-09 09:37:08 +03:00
|
|
|
{_select_language}
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
2022-01-19 16:11:29 +03:00
|
|
|
<style>
|
|
|
|
.navigation-lang {
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 10px;
|
|
|
|
grid-template-columns: repeat(5, 1fr);
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation-lang .link_new {
|
|
|
|
display: inline-block;
|
2023-10-27 00:09:33 +03:00
|
|
|
padding: 20px 10px 5px 10px;
|
2022-01-19 16:11:29 +03:00
|
|
|
text-decoration: none;
|
|
|
|
border-top: 1px solid #fff;
|
|
|
|
color: #000;
|
|
|
|
border-bottom: 0;
|
|
|
|
border-left: 0;
|
|
|
|
border-right: 0;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 11px;
|
|
|
|
cursor: pointer;
|
|
|
|
background: none;
|
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation-lang .link_new:hover {
|
|
|
|
background-color: #E4E4E4;
|
|
|
|
border-top: 1px solid #CCCCCC;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="navigation-lang">
|
|
|
|
{foreach $languages as $language}
|
|
|
|
{var $result = preg_match("/(.+)\((.+)\)/", $language['native_name'], $name)}
|
|
|
|
|
|
|
|
<a href="language?lg={$language['code']}&hash={urlencode($csrfToken)}" class="link_new" rel="nofollow">
|
2022-11-06 06:20:00 +03:00
|
|
|
<center><img src="/assets/packages/static/openvk/img/flags/{$language['flag']}.gif" alt="{$language['native_name']}"></center>
|
2022-01-19 16:11:29 +03:00
|
|
|
<br>
|
|
|
|
{if $result == 1}
|
|
|
|
{$name[1]}
|
|
|
|
<br>
|
|
|
|
<small>{$name[2]}</small>
|
|
|
|
{else}
|
|
|
|
{$language['native_name']}
|
|
|
|
{/if}
|
|
|
|
</a>
|
|
|
|
{/foreach}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
{/block}
|