templates/frontend/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html {{ sonata_seo_html_attributes() }}>
  3.     <head {{ sonata_seo_head_attributes() }}>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <link rel="shortcut icon" href="{{asset(parameter('app_icon')) }}" type="image/x-icon" sizes="32x32">
  7.         {{ sonata_seo_metadatas() }}
  8.         {{ sonata_seo_link_canonical() }}
  9.         {{ sonata_seo_lang_alternates() }}
  10.         {% block title %}
  11.             {{ sonata_seo_title() }}
  12.         {% endblock %}        
  13.         <link rel="preconnect" href="https://fonts.googleapis.com">
  14.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  15.         <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
  16.         {{ include('frontend/stylesheet.html.twig') }}
  17.         {% block stylesheets %}{% endblock %}
  18.     </head>
  19.     <body>
  20.         {{ include('frontend/_header.html.twig') }}
  21.         {% block body endblock %}
  22.         <div id="mybutton">
  23.             <a href="{{ path('tfeedback_form') }}" class="feedback fw-500" data-toggle="modal" data-target="#feedback">
  24.                 <i class="fa fa-comments-o"></i>
  25.                 Feedback
  26.             </a>
  27.         </div>
  28.         {% include("frontend/t_feedback/modal.html.twig") %}
  29.         {% set current_route = app.request.attributes.get('_route') %}
  30.         {% if current_route != 'homepage' %}
  31.             {{ include('frontend/_footer.html.twig') }}
  32.         {% endif %}
  33.     </body>
  34.     {{ include('frontend/javascript.html.twig') }}
  35.     {% block javascripts %}{% endblock %}
  36. </html>