templates/base.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="ru">
  3. <head>
  4.     <meta charset="utf-8">
  5.     {% block seo %}
  6.         {{ sonata_seo_title() }}
  7.         {{ sonata_seo_metadatas() }}
  8.         {{ sonata_seo_link_canonical() }}
  9.         {{ sonata_seo_lang_alternates() }}
  10.     {% endblock %}
  11.     {% if settings().faviconTags %}
  12.         {{ settings().faviconTags|raw }}
  13.     {% else %}
  14.         <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  15.         <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  16.         <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  17.         <link rel="manifest" href="/site.webmanifest">
  18.         <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000">
  19.         <meta name="msapplication-TileColor" content="#ffffff">
  20.         <meta name="theme-color" content="#ffffff">
  21.     {% endif %}
  22.     <link rel="preconnect" href="https://fonts.googleapis.com">
  23.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  24.     <link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap"
  25.           rel="stylesheet">
  26.     <link rel="stylesheet" href="{{ asset('main.css') }}">
  27.     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  28.     {# Another head information #}
  29.     {% block head %}{% endblock %}
  30.     {{ settings().countersHead|raw }}
  31. </head>
  32. {% set colors = get_colors_as_vars() %}
  33. {% set moreColors = get_more_colors_as_vars() %}
  34. <body class="webp ui {{ ui_type(view_settings().uitype) }}" style="{% for key, color in colors %}{{ key }}:{{ color }};{% endfor %}{% for key, color in moreColors %}{{ key }}:{{ color }};{% endfor %}" data-all-lead="{{ settings().successAllLead }}">
  35. <div class="layout need-animation" data-need-animation>
  36.     <div class="layout__wrapper">
  37.         {% include "_parts/header/header.html.twig" with {'class': 'layout__header no-print'} %}
  38.         <div class="container container_spacer">
  39.             {% include '_parts/flash.html.twig' %}
  40.         </div>
  41.         {% block content_header %}
  42.             <div class="content-header">
  43.                 <div class="container container_spacer">
  44.                     {% block breadcrumbs %}
  45.                         {% include '_parts/breadcrumbs.html.twig' %}
  46.                     {% endblock %}
  47.                     {% block heading %}
  48.                     {% endblock %}
  49.                 </div>
  50.             </div>
  51.         {% endblock %}
  52.         <div id="main" class="layout__main">
  53.             {% block main %}
  54.                 <div class="layout__content">
  55.                     {% block before_content %}{% endblock %}
  56.                     <div class="container container_spacer">
  57.                         {% block content_heading %}{% endblock %}
  58.                         {% block content %}{% endblock %}
  59.                         {% block main_after_content %}{% endblock %}
  60.                     </div>
  61.                     {% block after_content %}{% endblock %}
  62.                 </div>
  63.             {% endblock %}
  64.         </div>
  65.     </div>
  66.     {% block footer %}
  67.         {% include "_parts/footer/footer.html.twig" with {'class': 'layout__footer no-print'} %}
  68.     {% endblock %}
  69.     {% set popup = popup|default(null) %}
  70.     {% include '_parts/_popup-link.html.twig' with {
  71.         popup: popup
  72.     } %}
  73.     {{ render_global_fav_user_refresh_link()|raw }}
  74. </div>
  75. {% block javascripts %}
  76.     <script src="{{ asset("vendors.js") }}" async></script>
  77.     <script src="{{ asset("main.js") }}" async></script>
  78.     <script src="https://yastatic.net/share2/share.js" async></script>
  79. {% endblock %}
  80. {{ settings().countersBody|raw }}
  81. </body>
  82. </html>