var/cache/dev/twig/8b/8b3a05c28ca8410be2ee76e5e695738f.php line 38

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* layout/base.html.twig */
  14. class __TwigTemplate_9f8d83b93105b4a03c54dbb8f4dcb7d2 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'body_class' => [$this'block_body_class'],
  27.             'body' => [$this'block_body'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/base.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/base.html.twig"));
  38.         // line 1
  39.         echo "<!DOCTYPE html>
  40. <html lang=\"";
  41.         // line 2
  42.         echo twig_escape_filter($this->envtwig_lower_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2)), "html"nulltrue);
  43.         echo "\">
  44. <head>
  45.     <meta charset=\"utf-8\">
  46.     <meta content=\"width=device-width, initial-scale=1, user-scalable=no\" name=\"viewport\">
  47.     <meta content=\"ie=edge\" http-equiv=\"x-ua-compatible\">
  48.     <title>";
  49.         // line 9
  50.         $this->displayBlock('title'$context$blocks);
  51.         echo "</title>
  52.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"";
  53.         // line 12
  54.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/apple-touch-icon.png"), "html"nulltrue);
  55.         echo " \">
  56.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
  57.         // line 13
  58.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/favicon-32x32.png"), "html"nulltrue);
  59.         echo " \">
  60.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"";
  61.         // line 14
  62.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/favicon-16x16.png"), "html"nulltrue);
  63.         echo " \">
  64.     <meta name=\"theme-color\" content=\"#641349\">
  65.     ";
  66.         // line 17
  67.         echo "    ";
  68.         // line 18
  69.         echo "    ";
  70.         // line 19
  71.         echo "
  72.     ";
  73.         // line 23
  74.         $this->displayBlock('stylesheets'$context$blocks);
  75.         // line 26
  76.         echo "    <link rel=\"icon\" href=\"";
  77.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/favicon.ico"), "html"nulltrue);
  78.         echo "\" type=\"image/x-icon\">
  79.     <link rel=\"alternate\" type=\"application/rss+xml\" title=\"";
  80.         // line 27
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.rss_name"), "html"nulltrue);
  82.         echo "\" href=\"";
  83.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_rss");
  84.         echo "\"/>
  85. </head>
  86. <body class=\"";
  87.         // line 29
  88.         $this->displayBlock('body_class'$context$blocks);
  89.         echo "\">
  90. ";
  91.         // line 30
  92.         if (($this->extensions['App\Service\Twig\Config']->site_field_text("mainpage""olymp-popup") && ( !array_key_exists("hide_olympiad_invite"$context) || ((isset($context["hide_olympiad_invite"]) || array_key_exists("hide_olympiad_invite"$context) ? $context["hide_olympiad_invite"] : (function () { throw new RuntimeError('Variable "hide_olympiad_invite" does not exist.'30$this->source); })()) == false)))) {
  93.             // line 31
  94.             echo "    ";
  95.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Frontend\\OlympOnline\\OnlineController::widgetHeader"));
  96.             // line 33
  97.             echo "
  98. ";
  99.         }
  100.         // line 35
  101.         echo "
  102. <header class=\"header\">
  103.     <div class=\"header__header-top navbar\">
  104.         <div class=\"header__header-top-inner container\">
  105.             <a class=\"logo\" href=\"";
  106.         // line 39
  107.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("main_olymp");
  108.         echo "\">
  109.                 <img src=\"";
  110.         // line 40
  111.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/images/logo." twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'40$this->source); })()), "request", [], "any"falsefalsefalse40), "locale", [], "any"falsefalsefalse40)) . ".svg")), "html"nulltrue);
  112.         echo "\" class=\"logo-big\"
  113.                      alt=\"";
  114.         // line 41
  115.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.title"), "html"nulltrue);
  116.         echo "\">
  117.                 <img src=\"";
  118.         // line 42
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo.svg"), "html"nulltrue);
  120.         echo "\" class=\"logo-small\"
  121.                      alt=\"";
  122.         // line 43
  123.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.title"), "html"nulltrue);
  124.         echo "\">
  125.             </a>
  126.             ";
  127.         // line 45
  128.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'45$this->source); })()), "request", [], "any"falsefalsefalse45), "locale", [], "any"falsefalsefalse45) == "ru")) {
  129.             // line 46
  130.             echo "            ";
  131.             // line 53
  132.             echo "            ";
  133.         }
  134.         // line 54
  135.         echo "            ";
  136.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'54$this->source); })()), "request", [], "any"falsefalsefalse54), "locale", [], "any"falsefalsefalse54) == "en")) {
  137.             // line 55
  138.             echo "            ";
  139.             // line 65
  140.             echo "            ";
  141.         }
  142.         // line 66
  143.         echo "            <div class=\"header-item\">
  144.                 ";
  145.         // line 68
  146.         echo "                ";
  147.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'68$this->source); })()), "request", [], "any"falsefalsefalse68), "locale", [], "any"falsefalsefalse68) == "ru")) {
  148.             // line 69
  149.             echo "                    <div class=\"social\">
  150.                         <a href=\"https://t.me/rosfinolymp\" target=\"_blank\"><i class=\"fab fa-telegram-plane\"></i></a>
  151.                         <a href=\"https://vk.com/rosfinolymp\" target=\"_blank\"><i class=\"fab fa-vk\"></i></a>
  152.                     </div>
  153.                 ";
  154.         }
  155.         // line 74
  156.         echo "            </div>
  157.             <div class=\"header-item\">
  158.                 ";
  159.         // line 78
  160.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'78$this->source); })()), "request", [], "any"falsefalsefalse78), "locale", [], "any"falsefalsefalse78) != "ru")) {
  161.             // line 79
  162.             echo "                    <a class=\"header__button header__choose_locale\"
  163.                        href=\"";
  164.             // line 80
  165.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse80), "attributes", [], "any"falsetruefalse80), "get", ["_route"], "method"truetruefalse80)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse80), "attributes", [], "any"falsetruefalse80), "get", ["_route"], "method"falsefalsefalse80), "main_olymp")) : ("main_olymp")), twig_array_merge(twig_array_merge(((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse80), "attributes", [], "any"falsetruefalse80), "get", ["_route_params"], "method"truetruefalse80)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse80), "attributes", [], "any"falsetruefalse80), "get", ["_route_params"], "method"falsefalsefalse80), [])) : ([])), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'80$this->source); })()), "request", [], "any"falsefalsefalse80), "query", [], "any"falsefalsefalse80), "all", [], "any"falsefalsefalse80)), ["_locale" => "ru"])), "html"nulltrue);
  166.             echo "\">Русская
  167.                         версия</a>
  168.                 ";
  169.         }
  170.         // line 83
  171.         echo "                ";
  172.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'83$this->source); })()), "request", [], "any"falsefalsefalse83), "locale", [], "any"falsefalsefalse83) != "en")) {
  173.             // line 84
  174.             echo "                    <a class=\"header__button header__choose_locale\"
  175.                        href=\"";
  176.             // line 85
  177.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse85), "attributes", [], "any"falsetruefalse85), "get", ["_route"], "method"truetruefalse85)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse85), "attributes", [], "any"falsetruefalse85), "get", ["_route"], "method"falsefalsefalse85), "main_olymp")) : ("main_olymp")), twig_array_merge(twig_array_merge(((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse85), "attributes", [], "any"falsetruefalse85), "get", ["_route_params"], "method"truetruefalse85)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse85), "attributes", [], "any"falsetruefalse85), "get", ["_route_params"], "method"falsefalsefalse85), [])) : ([])), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'85$this->source); })()), "request", [], "any"falsefalsefalse85), "query", [], "any"falsefalsefalse85), "all", [], "any"falsefalsefalse85)), ["_locale" => "en"])), "html"nulltrue);
  178.             echo "\">English
  179.                         version</a>
  180.                 ";
  181.         }
  182.         // line 88
  183.         echo "            </div>
  184.             <div class=\"header__profile\">
  185.                 ";
  186.         // line 92
  187.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  188.             // line 93
  189.             echo "                    <a class=\"header__button header__profile-button\"
  190.                        data-toggle=\"dropdown\">";
  191.             // line 94
  192.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse94), "fullname", [], "any"truetruefalse94)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse94), "fullname", [], "any"falsefalsefalse94), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.default_name"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.default_name"))), "html"nulltrue);
  193.             echo "</a>
  194.                     <div class=\"header__profile-menu-wrapper\">
  195.                         <div class=\"header__profile-menu dropdown-menu\">
  196.                             <a class=\"header__profile-menu-link\" href=\"";
  197.             // line 97
  198.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lk_main");
  199.             echo "\"><i
  200.                                         class=\"far fa-user\"></i>";
  201.             // line 98
  202.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.header.profile"), "html"nulltrue);
  203.             echo "</a>
  204.                             ";
  205.             // line 99
  206.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("olymp_profile_link")) {
  207.                 // line 100
  208.                 echo "                                <a class=\"header__profile-menu-link\" href=\"";
  209.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lk_olymp");
  210.                 echo "\"><i
  211.                                             class=\"fas fa-user-graduate\"></i>Управление
  212.                                     олимпиадами</a>
  213.                             ";
  214.             }
  215.             // line 104
  216.             echo "                            ";
  217.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REVIEW_MODERATOR")) {
  218.                 // line 105
  219.                 echo "                                <a class=\"header__profile-menu-link\"
  220.                                    href=\"";
  221.                 // line 106
  222.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("review_moderator", ["olymp_id" => 60]);
  223.                 echo "\"><i
  224.                                             class=\"fas fa-comment\"></i>Отзывы</a>
  225.                             ";
  226.             }
  227.             // line 109
  228.             echo "                            ";
  229.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("org_profile_link")) {
  230.                 // line 110
  231.                 echo "                                <a class=\"header__profile-menu-link\" href=\"";
  232.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lk_org");
  233.                 echo "\"><i
  234.                                             class=\"far fa-cog\"></i>Управление
  235.                                     организацией</a>
  236.                             ";
  237.             }
  238.             // line 114
  239.             echo "                            ";
  240.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  241.                 // line 115
  242.                 echo "                                <a class=\"header__profile-menu-link\"
  243.                                    href=\"";
  244.                 // line 116
  245.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_default_main", ["_locale" => "ru"]);
  246.                 echo "\"><i
  247.                                             class=\"fas fa-tools\"></i>Админ. панель</a>
  248.                             ";
  249.             }
  250.             // line 119
  251.             echo "                            ";
  252.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PARTICIPANT_VIEW")) {
  253.                 // line 120
  254.                 echo "                                <a class=\"header__profile-menu-link\"
  255.                                    href=\"";
  256.                 // line 121
  257.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("online_p_search", ["_locale" => "ru"]);
  258.                 echo "\"><i
  259.                                             class=\"fas fa-search\"></i>Поиск участников</a>
  260.                             ";
  261.             }
  262.             // line 124
  263.             echo "                            ";
  264.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_STAT")) {
  265.                 // line 125
  266.                 echo "                                <a class=\"header__profile-menu-link\"
  267.                                    href=\"";
  268.                 // line 126
  269.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("olympiad_stat", ["id" => 60"_locale" => "ru"]), "html"nulltrue);
  270.                 echo "\"><i
  271.                                             class=\"fas fa-chart-line\"></i>Статистика</a>
  272.                             ";
  273.             }
  274.             // line 129
  275.             echo "
  276.                             <a class=\"header__profile-menu-link\" href=\"";
  277.             // line 130
  278.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  279.             echo "\"><i
  280.                                         class=\"far fa-sign-out\"></i>";
  281.             // line 131
  282.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.header.logout"), "html"nulltrue);
  283.             echo "</a></div>
  284.                     </div>
  285.                 ";
  286.         } else {
  287.             // line 135
  288.             echo "                    <a class=\"header__button header__account\" href=\"";
  289.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  290.             echo "\"><i
  291.                                 class=\"far fa-user\"></i>";
  292.             // line 136
  293.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.login"), "html"nulltrue);
  294.             echo "</a>
  295.                 ";
  296.         }
  297.         // line 138
  298.         echo "            </div>
  299.             <a class=\"header__button header__mobile-menu\" data-toggle=\"collapse\" data-target=\".mobile-menu\"><i
  300.                         class=\"far fa-bars\"></i></a>
  301.         </div>
  302.         <div class=\"mobile-menu navbar-nav collapse\">
  303.             <div class=\"mobile-menu__account\">
  304.                 ";
  305.         // line 144
  306.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  307.             // line 145
  308.             echo "                    <div class=\"mobile-menu__profile\">
  309.                         ";
  310.             // line 147
  311.             echo "                        <div class=\"mobile-menu__profile-name\">";
  312.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse147), "fullname", [], "any"truetruefalse147)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse147), "fullname", [], "any"falsefalsefalse147), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.default_name"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.default_name"))), "html"nulltrue);
  313.             echo "</div>
  314.                         <a class=\"mobile-menu__profile-action fal fa-sign-out\" href=\"";
  315.             // line 148
  316.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  317.             echo "\"></a>
  318.                     </div>
  319.                     <div class=\"mobile-menu__organization\">
  320.                         <a class=\"\" href=\"";
  321.             // line 151
  322.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lk_main");
  323.             echo "\"><i
  324.                                     class=\"far fa-user\"></i> ";
  325.             // line 152
  326.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.header.profile"), "html"nulltrue);
  327.             echo "</a>
  328.                     </div>
  329.                     ";
  330.             // line 154
  331.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("org_profile_link")) {
  332.                 // line 155
  333.                 echo "                        <div class=\"mobile-menu__organization\"><a href=\"";
  334.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lk_org");
  335.                 echo "\">Управление
  336.                                 организацией</a>
  337.                             ";
  338.                 // line 160
  339.                 echo "                        </div>
  340.                     ";
  341.             }
  342.             // line 162
  343.             echo "                    ";
  344.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REVIEW_MODERATOR")) {
  345.                 // line 163
  346.                 echo "                        <div class=\"mobile-menu__organization\"><a
  347.                                     href=\"";
  348.                 // line 164
  349.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("review_moderator", ["olymp_id" => 60]);
  350.                 echo "\">Отзывы</a>
  351.                         </div>
  352.                     ";
  353.             }
  354.             // line 167
  355.             echo "                    ";
  356.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  357.                 // line 168
  358.                 echo "                        <div class=\"mobile-menu__organization\"><a
  359.                                     href=\"";
  360.                 // line 169
  361.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_default_main", ["_locale" => "ru"]);
  362.                 echo "\">Админ.
  363.                                 панель</a>
  364.                         </div>
  365.                     ";
  366.             }
  367.             // line 173
  368.             echo "                    ";
  369.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PARTICIPANT_VIEW")) {
  370.                 // line 174
  371.                 echo "                        <div class=\"mobile-menu__organization\"><a class=\"\"
  372.                                                                   href=\"";
  373.                 // line 175
  374.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("online_p_search", ["_locale" => "ru"]);
  375.                 echo "\">Поиск
  376.                                 участников</a></div>
  377.                     ";
  378.             }
  379.             // line 178
  380.             echo "                ";
  381.         } else {
  382.             // line 179
  383.             echo "                    <div class=\"mobile-menu__account-actions\">
  384.                         <a class=\"mobile-menu__account-login\" href=\"";
  385.             // line 180
  386.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  387.             echo "\">
  388.                             <i class=\"far fa-user\"></i>";
  389.             // line 181
  390.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.login"), "html"nulltrue);
  391.             echo "</a>
  392.                         ";
  393.             // line 184
  394.             echo "                    </div>
  395.                 ";
  396.         }
  397.         // line 187
  398.         echo "            </div>
  399.             ";
  400.         // line 194
  401.         echo "        </div>
  402.     </div>
  403.     ";
  404.         // line 232
  405.         echo "    ";
  406.         // line 243
  407.         echo "</header>
  408. ";
  409.         // line 245
  410.         $this->displayBlock('body'$context$blocks);
  411.         // line 246
  412.         echo "<footer class=\"footer\">
  413.     <div class=\"footer__footer-top\">
  414.         <div class=\"footer-2 container\">
  415.             <a class=\"logo\" href=\"";
  416.         // line 249
  417.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("main_olymp");
  418.         echo "\">
  419.                 <img src=\"";
  420.         // line 250
  421.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo.svg"), "html"nulltrue);
  422.         echo "\" alt=\"";
  423.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.title"), "html"nulltrue);
  424.         echo "\">
  425.             </a>
  426.             <div class=\"contacts\">
  427.                 ";
  428.         // line 253
  429.         echo $this->extensions['App\Service\Twig\Config']->site_field_text("footer", ("contacts-" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'253$this->source); })()), "request", [], "any"falsefalsefalse253), "locale", [], "any"falsefalsefalse253)));
  430.         echo "
  431.             </div>
  432.             <div class=\"documents\">
  433.                 ";
  434.         // line 256
  435.         echo $this->extensions['App\Service\Twig\Config']->site_field_text("footer", ("doc-" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'256$this->source); })()), "request", [], "any"falsefalsefalse256), "locale", [], "any"falsefalsefalse256)));
  436.         echo "
  437.             </div>
  438.             <div class=\"footer__copyright\">© ";
  439.         // line 258
  440.         if ((twig_date_format_filter($this->env"now""Y") != 2020)) {
  441.             echo "2020 - ";
  442.         }
  443.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""Y"), "html"nulltrue);
  444.         echo "
  445.                 ";
  446.         // line 259
  447.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.copyright"), "html"nulltrue);
  448.         echo " «";
  449.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.title"), "html"nulltrue);
  450.         echo 
  451.             </div>
  452.         </div>
  453.         ";
  454.         // line 279
  455.         echo "
  456.     </div>
  457.     ";
  458.         // line 290
  459.         echo "</footer>
  460. ";
  461.         // line 291
  462.         if (($this->extensions['App\Service\Twig\Config']->site_field_text("mainpage""olymp-popup") && ( !array_key_exists("hide_olympiad_invite"$context) || ((isset($context["hide_olympiad_invite"]) || array_key_exists("hide_olympiad_invite"$context) ? $context["hide_olympiad_invite"] : (function () { throw new RuntimeError('Variable "hide_olympiad_invite" does not exist.'291$this->source); })()) == false)))) {
  463.             // line 292
  464.             echo "    ";
  465.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Frontend\\OlympOnline\\OnlineController::widgetPopup"));
  466.             // line 294
  467.             echo "
  468. ";
  469.         }
  470.         // line 297
  471.         $this->displayBlock('javascripts'$context$blocks);
  472.         // line 300
  473.         if ((isset($context["GOOGLE_ANALYTICS"]) || array_key_exists("GOOGLE_ANALYTICS"$context) ? $context["GOOGLE_ANALYTICS"] : (function () { throw new RuntimeError('Variable "GOOGLE_ANALYTICS" does not exist.'300$this->source); })())) {
  474.             // line 301
  475.             echo "    <!-- Global site tag (gtag.js) - Google Analytics -->
  476.     <script async src=\"https://www.googletagmanager.com/gtag/js?id=";
  477.             // line 302
  478.             echo twig_escape_filter($this->env, (isset($context["GOOGLE_ANALYTICS"]) || array_key_exists("GOOGLE_ANALYTICS"$context) ? $context["GOOGLE_ANALYTICS"] : (function () { throw new RuntimeError('Variable "GOOGLE_ANALYTICS" does not exist.'302$this->source); })()), "html"nulltrue);
  479.             echo "\"></script>
  480.     <script>
  481.         window.dataLayer = window.dataLayer || [];
  482.         function gtag() {
  483.             dataLayer.push(arguments);
  484.         }
  485.         gtag('js', new Date());
  486.         gtag('config', '";
  487.             // line 312
  488.             echo twig_escape_filter($this->env, (isset($context["GOOGLE_ANALYTICS"]) || array_key_exists("GOOGLE_ANALYTICS"$context) ? $context["GOOGLE_ANALYTICS"] : (function () { throw new RuntimeError('Variable "GOOGLE_ANALYTICS" does not exist.'312$this->source); })()), "html"nulltrue);
  489.             echo "');
  490.     </script>
  491. ";
  492.         }
  493.         // line 315
  494.         echo "
  495. ";
  496.         // line 316
  497.         if ((isset($context["YANDEX_METRIKA"]) || array_key_exists("YANDEX_METRIKA"$context) ? $context["YANDEX_METRIKA"] : (function () { throw new RuntimeError('Variable "YANDEX_METRIKA" does not exist.'316$this->source); })())) {
  498.             // line 317
  499.             echo "    <!-- Yandex.Metrika counter -->
  500.     <script type=\"text/javascript\">
  501.         (function (m, e, t, r, i, k, a) {
  502.             m[i] = m[i] || function () {
  503.                 (m[i].a = m[i].a || []).push(arguments)
  504.             };
  505.             m[i].l = 1 * new Date();
  506.             k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
  507.         })
  508.         (window, document, \"script\", \"https://mc.yandex.ru/metrika/tag.js\", \"ym\");
  509.         ym(";
  510.             // line 328
  511.             echo twig_escape_filter($this->env, (isset($context["YANDEX_METRIKA"]) || array_key_exists("YANDEX_METRIKA"$context) ? $context["YANDEX_METRIKA"] : (function () { throw new RuntimeError('Variable "YANDEX_METRIKA" does not exist.'328$this->source); })()), "html"nulltrue);
  512.             echo ", \"init\", {
  513.             clickmap: true,
  514.             trackLinks: true,
  515.             accurateTrackBounce: true
  516.         });
  517.     </script>
  518.     <noscript>
  519.         <div><img src=\"https://mc.yandex.ru/watch/";
  520.             // line 335
  521.             echo twig_escape_filter($this->env, (isset($context["YANDEX_METRIKA"]) || array_key_exists("YANDEX_METRIKA"$context) ? $context["YANDEX_METRIKA"] : (function () { throw new RuntimeError('Variable "YANDEX_METRIKA" does not exist.'335$this->source); })()), "html"nulltrue);
  522.             echo "\" style=\"position:absolute; left:-9999px;\"
  523.                   alt=\"\"/></div>
  524.     </noscript>
  525.     <!-- /Yandex.Metrika counter -->
  526. ";
  527.         }
  528.         // line 340
  529.         echo "</body>
  530. </html>
  531. ";
  532.         
  533.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  534.         
  535.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  536.     }
  537.     // line 9
  538.     public function block_title($context, array $blocks = [])
  539.     {
  540.         $macros $this->macros;
  541.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  542.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  543.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  544.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  545.         echo twig_escape_filter($this->env$this->extensions['App\Service\Twig\TextHelpers']->title(), "html"nulltrue);
  546.         
  547.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  548.         
  549.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  550.     }
  551.     // line 23
  552.     public function block_stylesheets($context, array $blocks = [])
  553.     {
  554.         $macros $this->macros;
  555.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  556.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  557.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  558.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  559.         // line 24
  560.         echo "        ";
  561.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  562.         echo "
  563.     ";
  564.         
  565.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  566.         
  567.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  568.     }
  569.     // line 29
  570.     public function block_body_class($context, array $blocks = [])
  571.     {
  572.         $macros $this->macros;
  573.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  574.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_class"));
  575.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  576.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_class"));
  577.         echo "";
  578.         
  579.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  580.         
  581.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  582.     }
  583.     // line 245
  584.     public function block_body($context, array $blocks = [])
  585.     {
  586.         $macros $this->macros;
  587.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  588.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  589.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  590.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  591.         
  592.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  593.         
  594.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  595.     }
  596.     // line 297
  597.     public function block_javascripts($context, array $blocks = [])
  598.     {
  599.         $macros $this->macros;
  600.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  601.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  602.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  603.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  604.         // line 298
  605.         echo "    ";
  606.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  607.         echo "
  608. ";
  609.         
  610.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  611.         
  612.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  613.     }
  614.     public function getTemplateName()
  615.     {
  616.         return "layout/base.html.twig";
  617.     }
  618.     public function isTraitable()
  619.     {
  620.         return false;
  621.     }
  622.     public function getDebugInfo()
  623.     {
  624.         return array (  657 => 298,  647 => 297,  629 => 245,  610 => 29,  597 => 24,  587 => 23,  568 => 9,  556 => 340,  548 => 335,  538 => 328,  525 => 317,  523 => 316,  520 => 315,  514 => 312,  501 => 302,  498 => 301,  496 => 300,  494 => 297,  490 => 294,  487 => 292,  485 => 291,  482 => 290,  478 => 279,  470 => 259,  463 => 258,  458 => 256,  452 => 253,  444 => 250,  440 => 249,  435 => 246,  433 => 245,  429 => 243,  427 => 232,  423 => 194,  420 => 187,  415 => 184,  411 => 181,  407 => 180,  404 => 179,  401 => 178,  395 => 175,  392 => 174,  389 => 173,  382 => 169,  379 => 168,  376 => 167,  370 => 164,  367 => 163,  364 => 162,  360 => 160,  354 => 155,  352 => 154,  347 => 152,  343 => 151,  337 => 148,  332 => 147,  329 => 145,  327 => 144,  319 => 138,  314 => 136,  309 => 135,  302 => 131,  298 => 130,  295 => 129,  289 => 126,  286 => 125,  283 => 124,  277 => 121,  274 => 120,  271 => 119,  265 => 116,  262 => 115,  259 => 114,  251 => 110,  248 => 109,  242 => 106,  239 => 105,  236 => 104,  228 => 100,  226 => 99,  222 => 98,  218 => 97,  212 => 94,  209 => 93,  207 => 92,  201 => 88,  195 => 85,  192 => 84,  189 => 83,  183 => 80,  180 => 79,  178 => 78,  172 => 74,  165 => 69,  162 => 68,  159 => 66,  156 => 65,  154 => 55,  151 => 54,  148 => 53,  146 => 46,  144 => 45,  139 => 43,  135 => 42,  131 => 41,  127 => 40,  123 => 39,  117 => 35,  113 => 33,  110 => 31,  108 => 30,  104 => 29,  97 => 27,  92 => 26,  90 => 23,  84 => 19,  82 => 18,  80 => 17,  75 => 14,  71 => 13,  67 => 12,  61 => 9,  51 => 2,  48 => 1,);
  625.     }
  626.     public function getSourceContext()
  627.     {
  628.         return new Source("<!DOCTYPE html>
  629. <html lang=\"{{ app.request.locale|lower }}\">
  630. <head>
  631.     <meta charset=\"utf-8\">
  632.     <meta content=\"width=device-width, initial-scale=1, user-scalable=no\" name=\"viewport\">
  633.     <meta content=\"ie=edge\" http-equiv=\"x-ua-compatible\">
  634.     <title>{% block title %}{{ title() }}{% endblock %}</title>
  635.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"{{ asset('build/images/favicon/apple-touch-icon.png') }} \">
  636.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('build/images/favicon/favicon-32x32.png') }} \">
  637.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{ asset('build/images/favicon/favicon-16x16.png') }} \">
  638.     <meta name=\"theme-color\" content=\"#641349\">
  639.     {#    <link rel=\"manifest\" href=\"/site.webmanifest\"> #}
  640.     {#    <link rel=\"mask-icon\" href=\"/safari-pinned-tab.svg\" color=\"#5bbad5\"> #}
  641.     {#    <meta name=\"msapplication-TileColor\" content=\"#da532c\"> #}
  642.     {% block stylesheets %}
  643.         {{ encore_entry_link_tags('app') }}
  644.     {% endblock %}
  645.     <link rel=\"icon\" href=\"{{ asset('build/images/favicon/favicon.ico') }}\" type=\"image/x-icon\">
  646.     <link rel=\"alternate\" type=\"application/rss+xml\" title=\"{{ \"site.rss_name\"|trans }}\" href=\"{{ url('news_rss') }}\"/>
  647. </head>
  648. <body class=\"{% block body_class \"\" %}\">
  649. {% if config_value('mainpage','olymp-popup') and (hide_olympiad_invite is not defined or hide_olympiad_invite == false) %}
  650.     {{ render(controller(
  651.         'App\\\\Controller\\\\Frontend\\\\OlympOnline\\\\OnlineController::widgetHeader'
  652.     )) }}
  653. {% endif %}
  654. <header class=\"header\">
  655.     <div class=\"header__header-top navbar\">
  656.         <div class=\"header__header-top-inner container\">
  657.             <a class=\"logo\" href=\"{{ path('main_olymp') }}\">
  658.                 <img src=\"{{ asset('build/images/logo.'~app.request.locale~'.svg') }}\" class=\"logo-big\"
  659.                      alt=\"{{ \"site.title\"|trans }}\">
  660.                 <img src=\"{{ asset('build/images/logo.svg') }}\" class=\"logo-small\"
  661.                      alt=\"{{ \"site.title\"|trans }}\">
  662.             </a>
  663.             {% if app.request.locale=='ru' %}
  664.             {# <div class=\"header-item banner\">
  665.                   <a class=\"button-d reg-banner mr-3\" href=\"https://sodrujestvo.org/ru\">Пригласительный этап</a>
  666.                     <a class=\"button-d reg-banner\" href=\"https://sodrujestvo.org/ru/olympiad-qualifying\"><strong>Отборочный
  667.                             этап</strong></a>
  668.                 </div> #}
  669.             {% endif %}
  670.             {% if app.request.locale=='en' %}
  671.             {# <div class=\"header-item banner\">
  672.                   <a class=\"button-d reg-banner  mr-3\" href=\"https://sodrujestvo.org/en\">
  673.                         Invitation stage
  674.                     </a>
  675.                     <a class=\"button-d reg-banner  \" href=\"https://sodrujestvo.org/en/olympiad-qualifying\">
  676.                         <strong>Eliminatory stage</strong>
  677.                     </a>
  678.                 </div>  #}
  679.             {% endif %}
  680.             <div class=\"header-item\">
  681.                 {#                    <div class=\"banner\"> <a href=\"https://sodrujestvo.org\" class=\"sodrujestvo\"><img src=\"{{ asset('build/images/header/sodrujestvo.png') }}\"></a></div> #}
  682.                 {% if app.request.locale=='ru' %}
  683.                     <div class=\"social\">
  684.                         <a href=\"https://t.me/rosfinolymp\" target=\"_blank\"><i class=\"fab fa-telegram-plane\"></i></a>
  685.                         <a href=\"https://vk.com/rosfinolymp\" target=\"_blank\"><i class=\"fab fa-vk\"></i></a>
  686.                     </div>
  687.                 {% endif %}
  688.             </div>
  689.             <div class=\"header-item\">
  690.                 {% if app.request.locale!='ru' %}
  691.                     <a class=\"header__button header__choose_locale\"
  692.                        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'})) }}\">Русская
  693.                         версия</a>
  694.                 {% endif %}
  695.                 {% if app.request.locale!='en' %}
  696.                     <a class=\"header__button header__choose_locale\"
  697.                        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
  698.                         version</a>
  699.                 {% endif %}
  700.             </div>
  701.             <div class=\"header__profile\">
  702.                 {% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
  703.                     <a class=\"header__button header__profile-button\"
  704.                        data-toggle=\"dropdown\">{{ app.user.fullname|default((\"user.default_name\"|trans)) }}</a>
  705.                     <div class=\"header__profile-menu-wrapper\">
  706.                         <div class=\"header__profile-menu dropdown-menu\">
  707.                             <a class=\"header__profile-menu-link\" href=\"{{ path('lk_main') }}\"><i
  708.                                         class=\"far fa-user\"></i>{{ \"site.header.profile\"|trans }}</a>
  709.                             {% if is_granted('olymp_profile_link') %}
  710.                                 <a class=\"header__profile-menu-link\" href=\"{{ path('lk_olymp') }}\"><i
  711.                                             class=\"fas fa-user-graduate\"></i>Управление
  712.                                     олимпиадами</a>
  713.                             {% endif %}
  714.                             {% if is_granted('ROLE_REVIEW_MODERATOR') %}
  715.                                 <a class=\"header__profile-menu-link\"
  716.                                    href=\"{{ path('review_moderator', {olymp_id:60}) }}\"><i
  717.                                             class=\"fas fa-comment\"></i>Отзывы</a>
  718.                             {% endif %}
  719.                             {% if is_granted('org_profile_link') %}
  720.                                 <a class=\"header__profile-menu-link\" href=\"{{ path('lk_org') }}\"><i
  721.                                             class=\"far fa-cog\"></i>Управление
  722.                                     организацией</a>
  723.                             {% endif %}
  724.                             {% if is_granted('ROLE_ADMIN') %}
  725.                                 <a class=\"header__profile-menu-link\"
  726.                                    href=\"{{ path('admin_default_main',{'_locale':'ru'}) }}\"><i
  727.                                             class=\"fas fa-tools\"></i>Админ. панель</a>
  728.                             {% endif %}
  729.                             {% if is_granted('ROLE_PARTICIPANT_VIEW') %}
  730.                                 <a class=\"header__profile-menu-link\"
  731.                                    href=\"{{ path('online_p_search',{'_locale':'ru'}) }}\"><i
  732.                                             class=\"fas fa-search\"></i>Поиск участников</a>
  733.                             {% endif %}
  734.                             {% if is_granted('ROLE_STAT') %}
  735.                                 <a class=\"header__profile-menu-link\"
  736.                                    href=\"{{ path('olympiad_stat',{id:60,'_locale':'ru'}) }}\"><i
  737.                                             class=\"fas fa-chart-line\"></i>Статистика</a>
  738.                             {% endif %}
  739.                             <a class=\"header__profile-menu-link\" href=\"{{ path('app_logout') }}\"><i
  740.                                         class=\"far fa-sign-out\"></i>{{ \"site.header.logout\"|trans }}</a></div>
  741.                     </div>
  742.                 {% else %}
  743.                     <a class=\"header__button header__account\" href=\"{{ path('login') }}\"><i
  744.                                 class=\"far fa-user\"></i>{{ 'site.login'|trans }}</a>
  745.                 {% endif %}
  746.             </div>
  747.             <a class=\"header__button header__mobile-menu\" data-toggle=\"collapse\" data-target=\".mobile-menu\"><i
  748.                         class=\"far fa-bars\"></i></a>
  749.         </div>
  750.         <div class=\"mobile-menu navbar-nav collapse\">
  751.             <div class=\"mobile-menu__account\">
  752.                 {% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
  753.                     <div class=\"mobile-menu__profile\">
  754.                         {#                        <a class=\"mobile-menu__profile-action fal fa-cog\" href=\"{{ path('lk_main') }}\"></a> #}
  755.                         <div class=\"mobile-menu__profile-name\">{{ app.user.fullname|default((\"user.default_name\"|trans)) }}</div>
  756.                         <a class=\"mobile-menu__profile-action fal fa-sign-out\" href=\"{{ path('app_logout') }}\"></a>
  757.                     </div>
  758.                     <div class=\"mobile-menu__organization\">
  759.                         <a class=\"\" href=\"{{ path('lk_main') }}\"><i
  760.                                     class=\"far fa-user\"></i> {{ \"site.header.profile\"|trans }}</a>
  761.                     </div>
  762.                     {% if is_granted('org_profile_link') %}
  763.                         <div class=\"mobile-menu__organization\"><a href=\"{{ path('lk_org') }}\">Управление
  764.                                 организацией</a>
  765.                             {# <div class=\"mobile-menu__organization-selection dropdown-menu\"><a class=\"mobile-menu__organization-link\" href=\"#\">Московский
  766.                             авиационный институт</a><a class=\"mobile-menu__organization-link\" href=\"#\">Российский
  767.                             университет дружбы народов</a></div> #}
  768.                         </div>
  769.                     {% endif %}
  770.                     {% if is_granted('ROLE_REVIEW_MODERATOR') %}
  771.                         <div class=\"mobile-menu__organization\"><a
  772.                                     href=\"{{ path('review_moderator', {olymp_id:60}) }}\">Отзывы</a>
  773.                         </div>
  774.                     {% endif %}
  775.                     {% if is_granted('ROLE_ADMIN') %}
  776.                         <div class=\"mobile-menu__organization\"><a
  777.                                     href=\"{{ path('admin_default_main',{'_locale':'ru'}) }}\">Админ.
  778.                                 панель</a>
  779.                         </div>
  780.                     {% endif %}
  781.                     {% if is_granted('ROLE_PARTICIPANT_VIEW') %}
  782.                         <div class=\"mobile-menu__organization\"><a class=\"\"
  783.                                                                   href=\"{{ path('online_p_search',{'_locale':'ru'}) }}\">Поиск
  784.                                 участников</a></div>
  785.                     {% endif %}
  786.                 {% else %}
  787.                     <div class=\"mobile-menu__account-actions\">
  788.                         <a class=\"mobile-menu__account-login\" href=\"{{ path('login') }}\">
  789.                             <i class=\"far fa-user\"></i>{{ 'site.login'|trans }}</a>
  790.                         {# <a class=\"mobile-menu__account-registration\"
  791.                            href=\"{{ path('registration') }}\">{{ 'site.registration'|trans }}</a> #}
  792.                     </div>
  793.                 {% endif %}
  794.             </div>
  795.             {# <ul class=\"mobile-menu__nav\">
  796.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('olympiads') }}\">Олимпиады</a></li>
  797.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('vuz') }}\">Вузы</a></li>
  798.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('events') }}\">События</a></li>
  799.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('news') }}\">Новости</a></li>
  800.             </ul> #}
  801.         </div>
  802.     </div>
  803.     {# <div class=\"header__header-top navbar\">
  804.         <div class=\"header__header-top-inner container\"><a class=\"logo\" href=\"{{ path('main') }}\"><img
  805.                         src=\"{{ asset('build/images/logo.png') }}\"
  806.                         alt=\"Олимпиада\"></a>
  807.             {% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
  808.             <a class=\"header__button header__account\" href=\"{{ path('lk_main') }}\">
  809.                 <i class=\"far fa-user\"></i>
  810.                 <span>Профиль</span>
  811.             </a>
  812.             <a class=\"header__button header__account\" href=\"{{ path('app_logout') }}\">
  813.                 <i class=\"fas sign-out-alt\"></i>
  814.                 <span>Выйти</span>
  815.             </a>
  816.         {% else %}
  817.             <a
  818.                     class=\"header__button header__account\" href=\"{{ path('login') }}\"><i
  819.                         class=\"far fa-user\"></i><span>Войти</span></a>
  820.             {% endif %}<a
  821.                     class=\"header__button header__mobile-menu\" data-toggle=\"collapse\" data-target=\".mobile-menu\"><i
  822.                         class=\"far fa-bars\"></i></a></div>
  823.         <div class=\"mobile-menu collapse\">
  824.             <ul class=\"mobile-menu__nav navbar-nav\">
  825.                 <li class=\"mobile-menu__link\"><a data-toggle=\"dropdown\"><span>Профиль</span><i
  826.                                 class=\"far fa-chevron-down\"></i></a>
  827.                     <div class=\"mobile-menu__profile dropdown-menu\"><a class=\"mobile-menu__profile-link\" href=\"#\">Настройки</a><a
  828.                                 class=\"mobile-menu__profile-link\" href=\"#\">Выйти</a></div>
  829.                 </li>
  830.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('olympiads') }}\">Олимпиады</a></li>
  831.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('vuz') }}\">Вузы</a></li>
  832.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('events') }}\">События</a></li>
  833.                 <li class=\"mobile-menu__link\"><a href=\"{{ path('news') }}\">Новости</a></li>
  834.     #}{# <li class=\"mobile-menu__link\"><a href=\"/\">Форум</a></li> #}{#
  835.     </ul>
  836. </div>
  837. </div> #}
  838.     {# <nav class=\"header__nav\">
  839.         <div class=\"header__nav-inner container\">
  840.             <ul class=\"header__menu\">
  841.                 <li class=\"header__menu-link\"><a href=\"{{ path('olympiads') }}\">Олимпиады</a></li>
  842.                 <li class=\"header__menu-link\"><a href=\"{{ path('vuz') }}\">Вузы</a></li>
  843.                 <li class=\"header__menu-link\"><a href=\"{{ path('events') }}\">События</a></li>
  844.                 <li class=\"header__menu-link\"><a href=\"{{ path('news') }}\">Новости</a></li>
  845.             </ul>
  846.             <a class=\"header__link\" href=\"{{ path('support_page') }}\">Поддержка</a></div>
  847.     </nav> #}
  848. </header>
  849. {% block body %}{% endblock %}
  850. <footer class=\"footer\">
  851.     <div class=\"footer__footer-top\">
  852.         <div class=\"footer-2 container\">
  853.             <a class=\"logo\" href=\"{{ path('main_olymp') }}\">
  854.                 <img src=\"{{ asset('build/images/logo.svg') }}\" alt=\"{{ \"site.title\"|trans }}\">
  855.             </a>
  856.             <div class=\"contacts\">
  857.                 {{ config_value('footer','contacts-'~app.request.locale)|raw }}
  858.             </div>
  859.             <div class=\"documents\">
  860.                 {{ config_value('footer','doc-'~app.request.locale)|raw }}
  861.             </div>
  862.             <div class=\"footer__copyright\">© {% if  \"now\"|date('Y') != 2020 %}2020 - {% endif %}{{ \"now\"|date('Y') }}
  863.                 {{ 'site.copyright'|trans }} «{{ \"site.title\"|trans }}»
  864.             </div>
  865.         </div>
  866.         {#   <div class=\"footer__footer-top-inner container\"><a class=\"logo\" href=\"{{ path('main_olymp') }}\">
  867.                 <img src=\"{{ asset('build/images/logo.svg') }}\" alt=\"{{ \"site.title\"|trans }}\">
  868.             </a>
  869.             <nav class=\"footer__nav\">
  870.                 <ul class=\"footer__menu\">
  871.         #}{#    <li class=\"footer__menu-link\"><a href=\"\">Олимпиады</a></li>
  872.                     <li class=\"footer__menu-link\"><a href=\"\">Вузы</a></li>
  873.                     <li class=\"footer__menu-link\"><a href=\"\">События</a></li>
  874.                     <li class=\"footer__menu-link\"><a href=\"\">Новости</a></li>
  875.         #}{#
  876.         #}{#  <li class=\"footer__menu-link\"><a href=\"{{ path('static-page',{
  877.                             url:'association'
  878.                         }) }}\">Ассоциация</a></li> #}{#
  879.         </ul>
  880.     </nav>
  881. </div> #}
  882.     </div>
  883.     {# <div class=\"footer__footer-bottom\">
  884.         <div class=\"footer__footer-bottom-inner container\">
  885.     #}{# <a class=\"footer__visually-impaired\" href=\"/\"><i
  886.                         class=\"far fa-eye\"></i><span>Версия для слабовидящих</span></a> #}{#
  887.     <div class=\"footer__copyright\">© {% if  \"now\"|date('Y') != 2020 %}2020 - {% endif %}{{ \"now\"|date('Y') }}
  888.         {{ 'site.copyright'|trans }} «{{ \"site.title\"|trans }}»
  889.     </div>
  890. </div>
  891. </div> #}
  892. </footer>
  893. {% if config_value('mainpage','olymp-popup') and (hide_olympiad_invite is not defined or hide_olympiad_invite == false) %}
  894.     {{ render(controller(
  895.         'App\\\\Controller\\\\Frontend\\\\OlympOnline\\\\OnlineController::widgetPopup'
  896.     )) }}
  897. {% endif %}
  898. {# {{ encore_entry_script_tags('page/index') }} #}
  899. {% block javascripts %}
  900.     {{ encore_entry_script_tags('app') }}
  901. {% endblock %}
  902. {% if GOOGLE_ANALYTICS %}
  903.     <!-- Global site tag (gtag.js) - Google Analytics -->
  904.     <script async src=\"https://www.googletagmanager.com/gtag/js?id={{ GOOGLE_ANALYTICS }}\"></script>
  905.     <script>
  906.         window.dataLayer = window.dataLayer || [];
  907.         function gtag() {
  908.             dataLayer.push(arguments);
  909.         }
  910.         gtag('js', new Date());
  911.         gtag('config', '{{ GOOGLE_ANALYTICS }}');
  912.     </script>
  913. {% endif %}
  914. {% if YANDEX_METRIKA %}
  915.     <!-- Yandex.Metrika counter -->
  916.     <script type=\"text/javascript\">
  917.         (function (m, e, t, r, i, k, a) {
  918.             m[i] = m[i] || function () {
  919.                 (m[i].a = m[i].a || []).push(arguments)
  920.             };
  921.             m[i].l = 1 * new Date();
  922.             k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
  923.         })
  924.         (window, document, \"script\", \"https://mc.yandex.ru/metrika/tag.js\", \"ym\");
  925.         ym({{ YANDEX_METRIKA }}, \"init\", {
  926.             clickmap: true,
  927.             trackLinks: true,
  928.             accurateTrackBounce: true
  929.         });
  930.     </script>
  931.     <noscript>
  932.         <div><img src=\"https://mc.yandex.ru/watch/{{ YANDEX_METRIKA }}\" style=\"position:absolute; left:-9999px;\"
  933.                   alt=\"\"/></div>
  934.     </noscript>
  935.     <!-- /Yandex.Metrika counter -->
  936. {% endif %}
  937. </body>
  938. </html>
  939. ""layout/base.html.twig""/var/www/templates/layout/base.html.twig");
  940.     }
  941. }