templates/layout.html.twig line 99

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3. {% set city = app.request.attributes.get('city', default_city()) %}
  4. {% set metro = app.request.attributes.get('station') ? app.request.attributes.get('station').name|trans : '' %}
  5. {% set months = {
  6.     "January": "Январь",
  7.     "February": "Февраль",
  8.     "March": "Март",
  9.     "April": "Апрель",
  10.     "May": "Май",
  11.     "June": "Июнь",
  12.     "July": "Июль",
  13.     "August": "Август",
  14.     "September": "Сентябрь",
  15.     "October": "Октябрь",
  16.     "November": "Ноябрь",
  17.     "December": "Декабрь"
  18. } %}
  19. {% set view = 'public' %}
  20. {% set alternateLang = city.countryCode == "RU" ? 'ru' :
  21.                        city.countryCode == "UA" ? 'ua' : '' %}
  22. <head>
  23.     <meta charset="utf-8">
  24.     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  25.     <meta content="RusIntim24" name="author"/>
  26.     <meta name="HandheldFriendly" content="true"/>
  27.     <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
  28.     <title>{% apply spaceless %}{% block title %}{% endblock %}{% endapply %}</title>
  29.     {% block metaDescription %}
  30.         <meta name="description" content="">
  31.     {% endblock %}
  32.     {% block metaKeywords %}{% endblock %}
  33.     {% block metaRobots %}{% endblock %}
  34.     {% block stylesheet %}
  35.         {{ encore_entry_link_tags("styles/public", null, 'basicConfig') }}
  36.         {{ encore_entry_link_tags('scripts/index', null, 'basicConfig') }}
  37.     {% endblock %}
  38.     <meta name="yandex" content="noarchive">
  39.     <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('assets/images/favicon/apple-touch-icon.png') }}">
  40.     <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('assets/images/favicon/favicon-32x32.png') }}">
  41.     <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('assets/images/favicon/favicon-16x16.png') }}">
  42.     <link rel="manifest" href="{{ asset('assets/images/favicon/site.webmanifest') }}">
  43.     <!-- Цвета -->
  44.     <meta name="msapplication-TileColor" content="#254CB1">
  45.     {% block canonical %}<link rel="canonical" href="{{ canonical_url(actual_main_domain) }}">{% endblock %}
  46.     {% set crawlerGoogleDetect = app.request.headers.get('X-Detected-Crawler') == 'google' or app.request.host matches '/^g[a-z0-9]+\./' %}
  47.     {% if ym_tracker_id %}
  48.         <!-- Yandex.Metrika counter -->
  49.         <script type="text/javascript" >
  50.             (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
  51.                 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)})
  52.             (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
  53.             ym({{ ym_tracker_id }}, "init", {
  54.                 clickmap:true,
  55.                 trackLinks:true,
  56.                 accurateTrackBounce:true
  57.             });
  58.         </script>
  59.         <noscript><div><img src="https://mc.yandex.ru/watch/{{ ym_tracker_id }}" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  60.         <!-- /Yandex.Metrika counter -->
  61.     {% endif %}
  62.     {% if ga_tracker_id and crawlerGoogleDetect %}
  63.         <!-- Global site tag (gtag.js) - Google Analytics -->
  64.         <script async src="https://www.googletagmanager.com/gtag/js?id={{ ga_tracker_id }}"></script>
  65.         <script>
  66.             window.dataLayer = window.dataLayer || [];
  67.             function gtag(){dataLayer.push(arguments);}
  68.             gtag('js', new Date());
  69.             gtag('config', '{{ ga_tracker_id }}');
  70.         </script>
  71.     {% endif %}
  72.     {% block alternate %}{% endblock %}
  73. </head>
  74. {% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
  75. <body data-current-page="{% block name_page %}index{% endblock %}"
  76.       data-id="strelki"{% if is_granted('ROLE_USER') %} data-login="true"{% endif %}
  77.         {% block account_page %}data-kab="false"{% endblock %}
  78.         data-svg-path="{{ asset('assets/images/icons/svg-library.svg') }}"
  79.       class="{% block bodyClasses %}{% endblock %}">
  80.     <div class="wrapper">
  81.         {% block header %}
  82.             {% include 'components/header.html.twig' %}
  83.         {% endblock %}
  84.         {% block grid %}{% endblock %}
  85.         {% block footer %}
  86.             {% include 'components/footer.html.twig' %}
  87.         {% endblock %}
  88.     </div>
  89.     {% block modals %}
  90.         {% include 'components/modals.html.twig' %}
  91.     {% endblock %}
  92.     {% block javascripts %}
  93.         {{ encore_entry_script_tags('scripts/scripts_bootstrap', null, 'basicConfig') }}
  94.         {{ encore_entry_script_tags('scripts/scripts_main', null, 'basicConfig') }}
  95.         {{ encore_entry_script_tags('scripts/index', null, 'basicConfig') }}
  96.         {% include 'components/profile_ctr.js.twig' %}
  97.     {% endblock %}
  98.     {% include '_components/svg-icons.html.twig' %}
  99. </body>
  100. </html>