templates/layout.html.twig line 93

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 accountUrl = is_user_advertiser(app.user) ? path('account') : path('account.favourites.profiles') %}
  6. {% set months = {
  7.     "January": "Январь",
  8.     "February": "Февраль",
  9.     "March": "Март",
  10.     "April": "Апрель",
  11.     "May": "Май",
  12.     "June": "Июнь",
  13.     "July": "Июль",
  14.     "August": "Август",
  15.     "September": "Сентябрь",
  16.     "October": "Октябрь",
  17.     "November": "Ноябрь",
  18.     "December": "Декабрь"
  19. } %}
  20. <head>
  21.     <meta charset="utf-8">
  22.     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  23.     <meta content="" name="author"/>
  24.     <meta name="HandheldFriendly" content="true"/>
  25.     <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
  26.     <title>{% apply spaceless %}{%- block title -%}{% endblock %}{% endapply %}</title>
  27.     {% block metaDescription %}
  28.         <meta name="description" content="{{ seo_description() }}">
  29.     {% endblock %}
  30.     {% block metaKeywords %}{% endblock %}
  31.     {% block metaRobots %}{% endblock %}
  32.     {% block stylesheet %}
  33.         {{ encore_entry_link_tags("styles/main-public", null, 'basicConfig') }}
  34.     {% endblock %}
  35.     <link rel="shortcut icon" href="{{ asset('assets/images/favicon/favicon.ico','basicConfig') }}">
  36.     <link rel="apple-touch-icon" sizes="180x180"
  37.           href="{{ asset('assets/images/favicon/apple-touch-icon.png','basicConfig') }}">
  38.     <link rel="icon" type="image/png" sizes="32x32"
  39.           href="{{ asset('assets/images/favicon/favicon-32x32.png','basicConfig') }}">
  40.     <link rel="icon" type="image/png" sizes="16x16"
  41.           href="{{ asset('assets/images/favicon/favicon-16x16.png','basicConfig') }}">
  42.     <meta name="msapplication-TileColor" content="#897956">
  43.     <meta name="theme-color" content="#897956">
  44.     <meta name="apple-mobile-web-app-title" content="Dosug 7/24"/>
  45.     <meta name="application-name" content="Dosug 7/24"/>
  46.     {% block preconnect %}
  47.         {%- if responsive_media_base_url is defined -%}
  48.             <link rel="preconnect" href="{{ responsive_media_base_url|replace({'responsive': 'assets'}) }}" />
  49.             <link rel="preconnect" href="{{ responsive_media_base_url }}" />
  50.         {%- endif -%}
  51.         <link rel="preconnect" href="https://mc.yandex.ru">
  52.         <link rel="preconnect" href="https://www.googletagmanager.com">
  53.     {% endblock %}
  54.     {% block canonical %}<link rel="canonical" href="{{ canonical_url() }}">{% endblock %}
  55.     {% if ym_tracker_id %}
  56.         <!-- Yandex.Metrika counter -->
  57.         <script type="text/javascript" >
  58.             (function (d, w, c) {
  59.                 (w[c] = w[c] || []).push(function() {
  60.                     try {
  61.                         w.yaCounter{{ ym_tracker_id }} = new Ya.Metrika({
  62.                             id:{{ ym_tracker_id }},
  63.                             clickmap:true,
  64.                             trackLinks:true,
  65.                             accurateTrackBounce:true
  66.                         });
  67.                     } catch(e) { }
  68.                 });
  69.                 var n = d.getElementsByTagName("script")[0],
  70.                     s = d.createElement("script"),
  71.                     f = function () { n.parentNode.insertBefore(s, n); };
  72.                 s.type = "text/javascript";
  73.                 s.async = true;
  74.                 s.src = "https://mc.yandex.ru/metrika/watch.js";
  75.                 if (w.opera == "[object Opera]") {
  76.                     d.addEventListener("DOMContentLoaded", f, false);
  77.                 } else { f(); }
  78.             })(document, window, "yandex_metrika_callbacks");
  79.         </script>
  80.         <noscript><div><img src="https://mc.yandex.ru/watch/{{ ym_tracker_id }}" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  81.         <!-- /Yandex.Metrika counter -->
  82.     {% endif %}
  83. </head>
  84. {% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
  85. <body data-lang="{{ app.request.locale }}" data-page="{% block name_page %}index{% endblock %}"
  86.       data-site="spb"{% if is_granted('ROLE_USER') %} data-login="true"{% endif %}
  87.         {% block account_page %}data-account="false"{% endblock %}
  88.       class="{% block bodyClasses %}{% endblock %}">
  89. <div class="wrapper{% block wrapper_class %}{% endblock %}">
  90.     {% block modals %}
  91.         {% include 'components/modals.html.twig' %}
  92.     {% endblock %}
  93.     {% block header %}
  94.         {% include 'components/header.html.twig' %}
  95.     {% endblock %}
  96.     {% block grid %}{% endblock %}
  97.     {% block footer %}
  98.         {% include 'components/footer.html.twig' %}
  99.     {% endblock %}
  100. </div>
  101.  {% block javascripts %}
  102.     {{ encore_entry_script_tags('scripts/bootstrap_theme', null, 'basicConfig') }}
  103.     {{ encore_entry_script_tags('scripts/new_ui', null, 'basicConfig') }}
  104.     {{ encore_entry_script_tags('scripts/index', null, 'basicConfig') }}
  105.     {% include 'components/profile_ctr.js.twig' %}
  106. {% endblock %}
  107. </body>
  108. </html>