templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. {% set locale = app.request.locale %}
  3. {% set action = action|default("") %}
  4. <html lang="{{ locale }}">
  5. <head>
  6.     <meta charset="utf-8"/>
  7.     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  8.     <meta name="google-site-verification" content="Ca_xdKP23lws8Umfer2VuQbgTp2VQXrTkylRaYJLUPM" />
  9.     {% block metas %}
  10.         {% block canonical %}
  11.             <link rel="canonical" href="{{ app.request.uri }}"/>
  12.         {% endblock %}
  13.         {% block alternates %}
  14.             {{ wam_locale_hreflang() }}
  15.         {% endblock alternates %}
  16.     {% endblock metas %}
  17.     {% set title -%}
  18.         {{ sonata_seo_title() }}
  19.     {%- endset %}
  20.     {% if 'Sonata Project' in title.__toString %}
  21.         <title>{% block title %}Artiem{% endblock title %}</title>
  22.     {% else %}
  23.         {{ sonata_seo_title() }}
  24.     {% endif %}
  25.     {% block fonts %}
  26.         <link rel="preload" type="text/css" href="{{ mix('/css/typography.css') }}" as="style">
  27.         <link rel="stylesheet" href="{{ mix('/css/typography.css') }}">
  28.     {% endblock fonts %}
  29.     <!--[if IE]>
  30.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  31.     <![endif]-->
  32.     {#<title>{% block title %}{% endblock %}</title>#}
  33.     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  34.     <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  35.     <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  36.     <link rel="manifest" href="/site.webmanifest">
  37.     <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  38.     <meta name="msapplication-TileColor" content="#da532c">
  39.     <meta name="theme-color" content="#fff">
  40.     {% if 'wamdev' in app.request.host or 'wamrelease' in app.request.host or '_locale' in app.request.uri %}
  41.         <meta name="robots" content="noindex, nofollow"/>
  42.     {% endif %}
  43.     {% block stylesheets %}{% endblock stylesheets %}
  44.     <!--[if lt IE 9]>
  45.     <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  46.     <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  47.     <![endif]-->
  48.     {% block head %}{% endblock head %}
  49.     {{ sonata_seo_metadatas() }}
  50. </head>
  51. <body class="{% block body_class %}{% endblock %} {{ (app.request.get('_xhotjar') == 'true') ? 'is-loaded-generic is-hotjar' : '' }}" data-current-locale="{{ app.request.locale }}">
  52. {% include 'partials/global/browsehappy.html.twig' %}
  53. {% block body %}{% endblock body %}
  54. {% block edit_inline_button %}{% endblock edit_inline_button %}
  55. {% block javascripts %}{% endblock javascripts %}
  56. </body>
  57. </html>