templates/base.html.twig line 1

Open in your IDE?
  1. {% filter spaceless %}
  2.     {% set mainClass='col-12' %}
  3.     {% set showNavbars=false %}
  4.     {% if showNavbars() %}
  5.         {% set mainClass='col-md-9 ml-sm-auto col-lg-10 pt-3 px-4' %}
  6.         {% set showNavbars=true %}
  7.     {% endif %}
  8.     <!DOCTYPE html>
  9.     <html lang="{{ getCurrentLocale() }}" class="{{ htmlClass|default('') }}">
  10.         <head>
  11.             <meta charset="UTF-8">
  12.             <title>{% block title %}Welcome!{% endblock %}</title>
  13.             <meta name="robots" content="noindex,nofollow">
  14.             <link rel="icon" type="image/png" href="{{ asset('build/images/favicon.png') }}"/>
  15.             {% block stylesheets %}
  16.                 {{ encore_entry_link_tags('app') }}
  17.             {% endblock %}
  18.         </head>
  19.         <body class="{% block body_class %}{% endblock %}">
  20.             {% if showNavbars %}
  21.                 {% include "navbar.html.twig" %}
  22.             {% endif %}
  23.             <div class="container-fluid">
  24.                 <div class="row">
  25.                     {% if showNavbars %}
  26.                         {% include "sidebar.html.twig" %}
  27.                     {% endif %}
  28.                     <main class="{{ mainClass }}">
  29.                         {% if showNavbars %}
  30.                             {% include "breadcrum.html.twig" %}
  31.                         {% endif %}
  32.                         {% block body %}{% endblock %}
  33.                     </main>
  34.                 </div>
  35.             </div>
  36.             {% block javascripts %}
  37.                 {{ encore_entry_script_tags('app') }}
  38.             {% endblock %}
  39.         </body>
  40.     </html>
  41. {% endfilter %}