templates/base.html.twig line 1

Open in your IDE?
  1. {#
  2.    This is the base template used as the application layout which contains the
  3.    common elements and decorates all the other templates.
  4.    See https://symfony.com/doc/current/book/templating.html#template-inheritance-and-layouts
  5. #}
  6. <!DOCTYPE html>
  7. <html lang="{{ app.request.locale }}">
  8.     <head>
  9.         <meta charset="utf-8">
  10.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11.         <!-- Tell the browser to be responsive to screen width -->
  12.         <meta name="viewport" content="width=device-width, initial-scale=1">
  13.         <meta name="description" content="">
  14.         <meta name="author" content="">
  15.         {#instructs web crawlers to not index the page and to not crawl any of the links on the page#}
  16.         <meta name="robots" content="noindex, nofollow" />
  17.         <!-- Favicon icon -->
  18.         <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('build/images/logo-icon.png') }}">
  19.         <title>{% block title %}{{ "MyWLPGA"|trans }}{% endblock %}</title>
  20.         {% block stylesheets %}
  21.             {#Put scripts here that are common to ALL pages.#}
  22.             {# 'base' must match the first argument to addEntry() in webpack.config.js #}
  23.             {{ encore_entry_link_tags('base') }}
  24.             {# Renders a link tag (if your module requires any CSS):
  25.                 <link rel="stylesheet" href="/build/base.css">
  26.             #}
  27.         {% endblock %}
  28.         <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  29.         <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  30.         <!--[if lt IE 9]>
  31.         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  32.         <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  33.         <![endif]-->
  34.     </head>
  35.     <body id="{% block body_id %}{% endblock %}" class="{% block body_class %}skin-blue{% endblock %}">
  36.         {% block preloader %}
  37.             <!-- ============================================================== -->
  38.             <!-- Preloader - style you can find in spinners.css -->
  39.             <!-- ============================================================== -->
  40.             <div class="preloader">
  41.                 <div class="loader">
  42.                     <div class="loader__figure"></div>
  43.                     <p class="loader__label">{{ "Loading..."|trans }}</p>
  44.                 </div>
  45.             </div>
  46.         {% endblock %}
  47.         {% block header %}
  48. {#            <div>MAIN HEADER</div>#}
  49.         {% endblock %}
  50.         {% block wrapper %}
  51.             <div>MAIN WRAPPER - PLEASE OVERRIDE</div>
  52.         {% endblock %}
  53.         {% block footer %}
  54. {#            <div>MAIN FOOTER</div>#}
  55.         {% endblock %}
  56.         {% block javascripts %}
  57.             {#Put scripts here that are common to ALL pages.#}
  58.             {# 'base' must match the first argument to addEntry() in webpack.config.js #}
  59.             {{ encore_entry_script_tags('base') }}
  60.             {# Renders base.js & a webpack runtime.js file:
  61.                 <script src="/build/runtime.js"></script>
  62.                 <script src="/build/base.js"></script>
  63.             #}
  64.             {#<!-- slimscrollbar scrollbar JavaScript -->#}
  65.             {#<script src="{{ asset('build/js/perfect-scrollbar.jquery.min.js') }}"></script>#}
  66.             {#<!--Wave Effects -->#}
  67.             {#<script src="{{ asset('build/js/waves.js') }}"></script>#}
  68.             {#<!--Menu sidebar -->#}
  69.             {#<script src="{{ asset('build/js/sidebarmenu.js') }}"></script>#}
  70.             {#Custom common behaviors here#}
  71.             {#<script src="{{ asset('build/js/custom.js') }}"></script>#}
  72.         {% endblock %}
  73.     </body>
  74. </html>