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

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3.     <head>
  4.         <title>{{ pageSubTitle is defined ? (pageSubTitle ~ openform_front_util.getMetaTitleGlue()) }}{{ openform_front_util.Config.Translation[app.request.locale].title }}</title>
  5.         <meta charset="UTF-8">
  6.         <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7.         <style>
  8.             {% if openform_front_util.Config.mainContentWidth and openform_front_util.Config.mainContentWidth|length > 0 %}
  9.                 .container{
  10.                     padding-left: calc((100vw - {{openform_front_util.Config.mainContentWidth}}vw) / 2) !important;
  11.                     padding-right: calc((100vw - {{openform_front_util.Config.mainContentWidth}}vw) / 2) !important;
  12.                     max-width: 100vw !important;
  13.                     width: 100vw !important;
  14.                     position: relative;
  15.                     margin: 0 auto;
  16.                 }
  17.             {% endif %}
  18.                         
  19.             .tiny-mce-button-link .wysiwyg-link{
  20.                 text-transform: none;
  21.                 color:inherit;
  22.             }
  23.             .tiny-mce-button-link .wysiwyg-link::after{
  24.                 display:none;
  25.             }
  26.             .tiny-mce-button-link{
  27.                 border:0.05em solid #888 !important;
  28.                 background-color: silver;
  29.                 border-radius: 0.7em;
  30.                 padding:0.1em 0.2em 0.1em 0.2em;
  31.                 margin-left:0.1em;
  32.                 margin-right:0.1em
  33.             }
  34.         </style>
  35.         {% include "@openform_front_templates/_includes/_meta_tags.html.twig" %}
  36.         {% block fbOgTags %}
  37.             {% include "@openform_front_templates/_includes/_fb_og_tags.html.twig" %}
  38.         {% endblock %}
  39.         {{ vite_entry_link_tags('styles') }}
  40.         {% if openform_front_util.Config.additionalHeadCode %}
  41.             {{openform_front_util.Config.additionalHeadCode|raw }}
  42.         {% endif %}
  43.         <link rel="icon" href="/build/img/icons/favicon.svg" sizes="any" type="image/svg+xml">
  44.         <!--{{ app.environment }}-->
  45.     </head>
  46.     <body {% block bodyAttr %}{% endblock %} class="js-body {% block bodyClass %}{% endblock %}">
  47.         {% block header %}
  48.             {% include "@openform_front_templates/_includes/_header.html.twig" with {'langLinks' : (langLinks is defined ? langLinks)}  %}
  49.         {% endblock %}
  50.         <div class="js-body-content body-content{{ openform_front_util.Config.isMourning ? ' mourning' }}">
  51.             <main class="body-wrap js-body-wrap {% block contentClass %}{% endblock %}"  id="main-content" style="{% if rootParent is defined and rootParent.headerHeight is defined and rootParent.headerHeight %}padding-top: {{rootParent.headerHeight > 20 ? rootParent.headerHeight - 20 : 0}}px;{% endif %} {% if entity.background is defined or rootParent.background is defined %}background-color: {{entity.background is defined and entity.background|length > 0 and entity.background ? entity.background : rootParent.background is defined and rootParent.background|length > 0 ? rootParent.background}}{% endif %}" >
  52.                 {% block content %}{% endblock %}
  53.             </main>
  54.             
  55.             {% block newsletter %}
  56.                 {% include "@openform_front_templates/_includes/_newsletter.html.twig" %}
  57.             {% endblock %}
  58.             {% block footer %}
  59.                 {% include "@openform_front_templates/_includes/_footer.html.twig" %}
  60.             {% endblock %}
  61.         </div>
  62.         {% if app.request.cookies.get('cookie_ie') != 'set' %}
  63.         {# {% include '@openform_front_templates/_includes/_cookies.html.twig' %}#}
  64.         {% endif %}
  65.         {% block prependJS %}{% endblock %}
  66.             {{ vite_entry_script_tags('scripts') }}
  67.         {% block appendJS %}{% endblock %}
  68.         {% if openform_front_util.Config.additionalBodyCode %}
  69.                 {{openform_front_util.Config.additionalBodyCode|raw}}
  70.         {% endif %}
  71.     </body>
  72. </html>