|
|
@ -1,6 +1,9 @@ |
|
|
|
{% set current_path = template_path ~ '/modules/footer' %} |
|
|
|
{% set current_path = template_path ~ '/modules/footer' %} |
|
|
|
<footer class="footer {% if site_region == 'ae' %}footer_ae{% endif %}"> |
|
|
|
<footer class="footer {% if site_region == 'ae' %}footer_ae{% endif %}"> |
|
|
|
<div class="footer__wrapper wrapper"> |
|
|
|
<div class="footer__wrapper wrapper"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# Для ОАЭ сайта #} |
|
|
|
{% if site_region == 'ae' %} |
|
|
|
{% if site_region == 'ae' %} |
|
|
|
|
|
|
|
|
|
|
|
<div class="footer-content"> |
|
|
|
<div class="footer-content"> |
|
|
@ -36,6 +39,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
{% include 'forms/footer-form.twig' %} |
|
|
|
{% include 'forms/footer-form.twig' %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# Для РУ-сайта #} |
|
|
|
{% elseif site_region == 'ru' %} |
|
|
|
{% elseif site_region == 'ru' %} |
|
|
|
|
|
|
|
|
|
|
|
<div class="footer-top"> |
|
|
|
<div class="footer-top"> |
|
|
@ -73,6 +78,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="footer-bottom"> |
|
|
|
<div class="footer-bottom"> |
|
|
|
<ul class="footer-network"> |
|
|
|
<ul class="footer-network"> |
|
|
|
|
|
|
|
{# {{ dump( social ) }} #} |
|
|
|
{% for item in social %} |
|
|
|
{% for item in social %} |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<a href="{{item.link}}" target="_blank"> |
|
|
|
<a href="{{item.link}}" target="_blank"> |
|
|
@ -90,10 +96,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</footer> |
|
|
|
</footer> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Footer end --> |
|
|
|
<!-- Footer end --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -101,6 +107,8 @@ |
|
|
|
{% include 'forms/author-form.twig' %} |
|
|
|
{% include 'forms/author-form.twig' %} |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
{# TO_DO перенсти в модуль соответвующий #} |
|
|
|
|
|
|
|
|
|
|
|
function onTelegramAuth(user) { |
|
|
|
function onTelegramAuth(user) { |
|
|
|
var data = { |
|
|
|
var data = { |
|
|
|
action: 'ontelegramauth', |
|
|
|
action: 'ontelegramauth', |
|
|
@ -138,6 +146,7 @@ function onTelegramAuth(user) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# TO_DO вынести логику в шаблоны форм на беке, а не через JS переобходить #} |
|
|
|
document.addEventListener('DOMContentLoaded', function() { |
|
|
|
document.addEventListener('DOMContentLoaded', function() { |
|
|
|
// Получаем все формы на странице |
|
|
|
// Получаем все формы на странице |
|
|
|
const forms = document.querySelectorAll('form'); |
|
|
|
const forms = document.querySelectorAll('form'); |
|
|
|