templates/layout/base.html.twig line 245
<!DOCTYPE html>
<html lang="{{ app.request.locale|lower }}">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport">
<meta content="ie=edge" http-equiv="x-ua-compatible">
<title>{% block title %}{{ title() }}{% endblock %}</title>
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('build/images/favicon/apple-touch-icon.png') }} ">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('build/images/favicon/favicon-32x32.png') }} ">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('build/images/favicon/favicon-16x16.png') }} ">
<meta name="theme-color" content="#641349">
{# <link rel="manifest" href="/site.webmanifest"> #}
{# <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> #}
{# <meta name="msapplication-TileColor" content="#da532c"> #}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
<link rel="icon" href="{{ asset('build/images/favicon/favicon.ico') }}" type="image/x-icon">
<link rel="alternate" type="application/rss+xml" title="{{ "site.rss_name"|trans }}" href="{{ url('news_rss') }}"/>
</head>
<body class="{% block body_class "" %}">
{% if config_value('mainpage','olymp-popup') and (hide_olympiad_invite is not defined or hide_olympiad_invite == false) %}
{{ render(controller(
'App\\Controller\\Frontend\\OlympOnline\\OnlineController::widgetHeader'
)) }}
{% endif %}
<header class="header">
<div class="header__header-top navbar">
<div class="header__header-top-inner container">
<a class="logo" href="{{ path('main_olymp') }}">
<img src="{{ asset('build/images/logo.'~app.request.locale~'.svg') }}" class="logo-big"
alt="{{ "site.title"|trans }}">
<img src="{{ asset('build/images/logo.svg') }}" class="logo-small"
alt="{{ "site.title"|trans }}">
</a>
{% if app.request.locale=='ru' %}
{# <div class="header-item banner">
<a class="button-d reg-banner mr-3" href="https://sodrujestvo.org/ru">Пригласительный этап</a>
<a class="button-d reg-banner" href="https://sodrujestvo.org/ru/olympiad-qualifying"><strong>Отборочный
этап</strong></a>
</div> #}
{% endif %}
{% if app.request.locale=='en' %}
{# <div class="header-item banner">
<a class="button-d reg-banner mr-3" href="https://sodrujestvo.org/en">
Invitation stage
</a>
<a class="button-d reg-banner " href="https://sodrujestvo.org/en/olympiad-qualifying">
<strong>Eliminatory stage</strong>
</a>
</div> #}
{% endif %}
<div class="header-item">
{# <div class="banner"> <a href="https://sodrujestvo.org" class="sodrujestvo"><img src="{{ asset('build/images/header/sodrujestvo.png') }}"></a></div> #}
{% if app.request.locale=='ru' %}
<div class="social">
<a href="https://t.me/rosfinolymp" target="_blank"><i class="fab fa-telegram-plane"></i></a>
<a href="https://vk.com/rosfinolymp" target="_blank"><i class="fab fa-vk"></i></a>
</div>
{% endif %}
</div>
<div class="header-item">
{% if app.request.locale!='ru' %}
<a class="header__button header__choose_locale"
href="{{ path(app.request.attributes.get('_route')|default('main_olymp'),app.request.attributes.get('_route_params')|default({})|merge(app.request.query.all)|merge({'_locale':'ru'})) }}">Русская
версия</a>
{% endif %}
{% if app.request.locale!='en' %}
<a class="header__button header__choose_locale"
href="{{ path(app.request.attributes.get('_route')|default('main_olymp'),app.request.attributes.get('_route_params')|default({})|merge(app.request.query.all)|merge({'_locale':'en'})) }}">English
version</a>
{% endif %}
</div>
<div class="header__profile">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<a class="header__button header__profile-button"
data-toggle="dropdown">{{ app.user.fullname|default(("user.default_name"|trans)) }}</a>
<div class="header__profile-menu-wrapper">
<div class="header__profile-menu dropdown-menu">
<a class="header__profile-menu-link" href="{{ path('lk_main') }}"><i
class="far fa-user"></i>{{ "site.header.profile"|trans }}</a>
{% if is_granted('olymp_profile_link') %}
<a class="header__profile-menu-link" href="{{ path('lk_olymp') }}"><i
class="fas fa-user-graduate"></i>Управление
олимпиадами</a>
{% endif %}
{% if is_granted('ROLE_REVIEW_MODERATOR') %}
<a class="header__profile-menu-link"
href="{{ path('review_moderator', {olymp_id:60}) }}"><i
class="fas fa-comment"></i>Отзывы</a>
{% endif %}
{% if is_granted('org_profile_link') %}
<a class="header__profile-menu-link" href="{{ path('lk_org') }}"><i
class="far fa-cog"></i>Управление
организацией</a>
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<a class="header__profile-menu-link"
href="{{ path('admin_default_main',{'_locale':'ru'}) }}"><i
class="fas fa-tools"></i>Админ. панель</a>
{% endif %}
{% if is_granted('ROLE_PARTICIPANT_VIEW') %}
<a class="header__profile-menu-link"
href="{{ path('online_p_search',{'_locale':'ru'}) }}"><i
class="fas fa-search"></i>Поиск участников</a>
{% endif %}
{% if is_granted('ROLE_STAT') %}
<a class="header__profile-menu-link"
href="{{ path('olympiad_stat',{id:60,'_locale':'ru'}) }}"><i
class="fas fa-chart-line"></i>Статистика</a>
{% endif %}
<a class="header__profile-menu-link" href="{{ path('app_logout') }}"><i
class="far fa-sign-out"></i>{{ "site.header.logout"|trans }}</a></div>
</div>
{% else %}
<a class="header__button header__account" href="{{ path('login') }}"><i
class="far fa-user"></i>{{ 'site.login'|trans }}</a>
{% endif %}
</div>
<a class="header__button header__mobile-menu" data-toggle="collapse" data-target=".mobile-menu"><i
class="far fa-bars"></i></a>
</div>
<div class="mobile-menu navbar-nav collapse">
<div class="mobile-menu__account">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<div class="mobile-menu__profile">
{# <a class="mobile-menu__profile-action fal fa-cog" href="{{ path('lk_main') }}"></a> #}
<div class="mobile-menu__profile-name">{{ app.user.fullname|default(("user.default_name"|trans)) }}</div>
<a class="mobile-menu__profile-action fal fa-sign-out" href="{{ path('app_logout') }}"></a>
</div>
<div class="mobile-menu__organization">
<a class="" href="{{ path('lk_main') }}"><i
class="far fa-user"></i> {{ "site.header.profile"|trans }}</a>
</div>
{% if is_granted('org_profile_link') %}
<div class="mobile-menu__organization"><a href="{{ path('lk_org') }}">Управление
организацией</a>
{# <div class="mobile-menu__organization-selection dropdown-menu"><a class="mobile-menu__organization-link" href="#">Московский
авиационный институт</a><a class="mobile-menu__organization-link" href="#">Российский
университет дружбы народов</a></div> #}
</div>
{% endif %}
{% if is_granted('ROLE_REVIEW_MODERATOR') %}
<div class="mobile-menu__organization"><a
href="{{ path('review_moderator', {olymp_id:60}) }}">Отзывы</a>
</div>
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<div class="mobile-menu__organization"><a
href="{{ path('admin_default_main',{'_locale':'ru'}) }}">Админ.
панель</a>
</div>
{% endif %}
{% if is_granted('ROLE_PARTICIPANT_VIEW') %}
<div class="mobile-menu__organization"><a class=""
href="{{ path('online_p_search',{'_locale':'ru'}) }}">Поиск
участников</a></div>
{% endif %}
{% else %}
<div class="mobile-menu__account-actions">
<a class="mobile-menu__account-login" href="{{ path('login') }}">
<i class="far fa-user"></i>{{ 'site.login'|trans }}</a>
{# <a class="mobile-menu__account-registration"
href="{{ path('registration') }}">{{ 'site.registration'|trans }}</a> #}
</div>
{% endif %}
</div>
{# <ul class="mobile-menu__nav">
<li class="mobile-menu__link"><a href="{{ path('olympiads') }}">Олимпиады</a></li>
<li class="mobile-menu__link"><a href="{{ path('vuz') }}">Вузы</a></li>
<li class="mobile-menu__link"><a href="{{ path('events') }}">События</a></li>
<li class="mobile-menu__link"><a href="{{ path('news') }}">Новости</a></li>
</ul> #}
</div>
</div>
{# <div class="header__header-top navbar">
<div class="header__header-top-inner container"><a class="logo" href="{{ path('main') }}"><img
src="{{ asset('build/images/logo.png') }}"
alt="Олимпиада"></a>
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<a class="header__button header__account" href="{{ path('lk_main') }}">
<i class="far fa-user"></i>
<span>Профиль</span>
</a>
<a class="header__button header__account" href="{{ path('app_logout') }}">
<i class="fas sign-out-alt"></i>
<span>Выйти</span>
</a>
{% else %}
<a
class="header__button header__account" href="{{ path('login') }}"><i
class="far fa-user"></i><span>Войти</span></a>
{% endif %}<a
class="header__button header__mobile-menu" data-toggle="collapse" data-target=".mobile-menu"><i
class="far fa-bars"></i></a></div>
<div class="mobile-menu collapse">
<ul class="mobile-menu__nav navbar-nav">
<li class="mobile-menu__link"><a data-toggle="dropdown"><span>Профиль</span><i
class="far fa-chevron-down"></i></a>
<div class="mobile-menu__profile dropdown-menu"><a class="mobile-menu__profile-link" href="#">Настройки</a><a
class="mobile-menu__profile-link" href="#">Выйти</a></div>
</li>
<li class="mobile-menu__link"><a href="{{ path('olympiads') }}">Олимпиады</a></li>
<li class="mobile-menu__link"><a href="{{ path('vuz') }}">Вузы</a></li>
<li class="mobile-menu__link"><a href="{{ path('events') }}">События</a></li>
<li class="mobile-menu__link"><a href="{{ path('news') }}">Новости</a></li>
#}{# <li class="mobile-menu__link"><a href="/">Форум</a></li> #}{#
</ul>
</div>
</div> #}
{# <nav class="header__nav">
<div class="header__nav-inner container">
<ul class="header__menu">
<li class="header__menu-link"><a href="{{ path('olympiads') }}">Олимпиады</a></li>
<li class="header__menu-link"><a href="{{ path('vuz') }}">Вузы</a></li>
<li class="header__menu-link"><a href="{{ path('events') }}">События</a></li>
<li class="header__menu-link"><a href="{{ path('news') }}">Новости</a></li>
</ul>
<a class="header__link" href="{{ path('support_page') }}">Поддержка</a></div>
</nav> #}
</header>
{% block body %}{% endblock %}
<footer class="footer">
<div class="footer__footer-top">
<div class="footer-2 container">
<a class="logo" href="{{ path('main_olymp') }}">
<img src="{{ asset('build/images/logo.svg') }}" alt="{{ "site.title"|trans }}">
</a>
<div class="contacts">
{{ config_value('footer','contacts-'~app.request.locale)|raw }}
</div>
<div class="documents">
{{ config_value('footer','doc-'~app.request.locale)|raw }}
</div>
<div class="footer__copyright">© {% if "now"|date('Y') != 2020 %}2020 - {% endif %}{{ "now"|date('Y') }}
{{ 'site.copyright'|trans }} «{{ "site.title"|trans }}»
</div>
</div>
{# <div class="footer__footer-top-inner container"><a class="logo" href="{{ path('main_olymp') }}">
<img src="{{ asset('build/images/logo.svg') }}" alt="{{ "site.title"|trans }}">
</a>
<nav class="footer__nav">
<ul class="footer__menu">
#}{# <li class="footer__menu-link"><a href="">Олимпиады</a></li>
<li class="footer__menu-link"><a href="">Вузы</a></li>
<li class="footer__menu-link"><a href="">События</a></li>
<li class="footer__menu-link"><a href="">Новости</a></li>
#}{#
#}{# <li class="footer__menu-link"><a href="{{ path('static-page',{
url:'association'
}) }}">Ассоциация</a></li> #}{#
</ul>
</nav>
</div> #}
</div>
{# <div class="footer__footer-bottom">
<div class="footer__footer-bottom-inner container">
#}{# <a class="footer__visually-impaired" href="/"><i
class="far fa-eye"></i><span>Версия для слабовидящих</span></a> #}{#
<div class="footer__copyright">© {% if "now"|date('Y') != 2020 %}2020 - {% endif %}{{ "now"|date('Y') }}
{{ 'site.copyright'|trans }} «{{ "site.title"|trans }}»
</div>
</div>
</div> #}
</footer>
{% if config_value('mainpage','olymp-popup') and (hide_olympiad_invite is not defined or hide_olympiad_invite == false) %}
{{ render(controller(
'App\\Controller\\Frontend\\OlympOnline\\OnlineController::widgetPopup'
)) }}
{% endif %}
{# {{ encore_entry_script_tags('page/index') }} #}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
{% if GOOGLE_ANALYTICS %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ GOOGLE_ANALYTICS }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '{{ GOOGLE_ANALYTICS }}');
</script>
{% endif %}
{% if YANDEX_METRIKA %}
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (m, e, t, r, i, k, a) {
m[i] = m[i] || function () {
(m[i].a = m[i].a || []).push(arguments)
};
m[i].l = 1 * new Date();
k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym({{ YANDEX_METRIKA }}, "init", {
clickmap: true,
trackLinks: true,
accurateTrackBounce: true
});
</script>
<noscript>
<div><img src="https://mc.yandex.ru/watch/{{ YANDEX_METRIKA }}" style="position:absolute; left:-9999px;"
alt=""/></div>
</noscript>
<!-- /Yandex.Metrika counter -->
{% endif %}
</body>
</html>