src/Front/Templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}" {% block htmlAttr %}{% endblock %}>
  3.     <head>
  4.         {% if meta_title is defined and meta_title %}
  5.             <title>{{ meta_title }}</title>
  6.         {% elseif page_title is defined and page_title %}
  7.             <title>{{ page_title }}</title>
  8.         {% else %}
  9.             <title>ejournals</title>
  10.         {% endif %}
  11.         <meta charset="UTF-8">
  12.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  14.         <meta name="format-detection" content="telephone=no">
  15.         <meta name="description" content="{{
  16.             meta_description is defined and meta_description ?
  17.             meta_description :
  18.             front_service.Config.readTranslation(app.request.locale, 'metaDescription')
  19.         }}">
  20.         <meta name="keywords" content="{{
  21.             meta_keywords is defined and meta_keywords ?
  22.             meta_keywords :
  23.             front_service.Config.readTranslation(app.request.locale, 'metaKeywords')
  24.         }}">
  25.         {% include '@front_templates/_includes/_fb_open_graph_tags.html.twig' %}
  26.         {{ vite_entry_link_tags('styles') }}
  27.         {% if app.request.cookies.get('contrast') == 'set' %}
  28.             <link class="contrast-stylesheet" rel="stylesheet" href="{{'/build/css/contrast.css'}}">
  29.         {% endif %}
  30.         {% block beforeBody %}{% endblock %}
  31.         {% block additionalCSS %}{% endblock %}
  32.         {% if front_service.Config.additionalHeadCode %}
  33.             {{ front_service.Config.additionalHeadCode|raw }}
  34.         {% endif %}
  35.     </head>
  36.     <body class="{% block bodyClass %}{% endblock %}" id="{% block bodyId %}{% endblock %}">
  37.         {% set journal = current_journal.Journal %}
  38.         {% if journal %}
  39.             {{ lang_changer.setMain(journal) }}
  40.         {% endif %}
  41.         {% include '@front_templates/_includes/_header.html.twig' with { journal: journal } %}
  42.         {% block content %}{% endblock %}
  43.         {% include '@front_templates/_includes/_footer.html.twig' with { journal: journal } %}
  44.         {% block additionalJS %}{% endblock %}
  45.         {{ vite_entry_script_tags('scripts') }}
  46.         {% if front_service.Config.additionalBodyCode %}
  47.             {{ front_service.Config.additionalBodyCode|raw }}
  48.         {% endif %}
  49.     </body>
  50. </html>