templates/themes/theme/base.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"><![endif]-->
  3. <!--[if IE 7]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
  4. <!--[if IE 8]><html class="no-js lt-ie9" lang="en"><![endif]-->
  5. <!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
  6.     <head>
  7.         <meta charset="utf-8">
  8.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9.         <title>{% block metatitle %}{% endblock %} | {{ sitename }}</title>
  10.         <meta name="robots" content="index,follow">
  11.         <meta name="description" content="{% block metadescription %}{% endblock %}">
  12.         {% if app.environment != 'dev' %}
  13.             <!-- Google Tag Manager -->
  14.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  15.             new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  16.             j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  17.             'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  18.             })(window,document,'script','dataLayer','{{ gtm_code }}');</script>
  19.             <!-- End Google Tag Manager -->
  20.         {% endif %}
  21.         <meta name="viewport" content="width=device-width, initial-scale=1">
  22.         <meta name="format-detection" content="telephone=no">
  23.         <meta name="theme-color" content="{{ theme_colour }}">
  24.         <link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png">
  25.         <link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png">
  26.         <link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png">
  27.         <link rel="manifest" href="/site.webmanifest">
  28.         {% include '@theme/common/icons.html.twig' %}
  29.         {# ADMIN ONLY CSS FILES MERGED INTO SINGLE INCLUDE FILE #}
  30.         {% if is_granted('ROLE_CMS_ACCESS') %}
  31.             {% include 'Widgets/admin-css-imports.html.twig' %}
  32.         {% endif %}
  33.         {# WEBPACK COMPILED CSS #}
  34.         {{ encore_entry_link_tags('app') }}
  35.         {% block stylesheets %}{% endblock %}
  36.         <script src="https://kit.fontawesome.com/eace9dba9c.js" crossorigin="anonymous"></script>
  37.         {# WEBPACK COMPILED JS - USES DEFER #}
  38.         {{ encore_entry_script_tags('app') }}
  39.         {% block javascripts %}{% endblock %}
  40.     </head>
  41.     {% if is_granted('ROLE_CMS_ACCESS') %}
  42.         <body class="skin-blue sidebar-collapse sidebar-mini">
  43.         {{ render(controller('App\\Controller\\AdminDefaultController::showAdminHeaderAction')) }}
  44.     {% else %}
  45.         <body {% block bodyattributes %}{% endblock %}>
  46.     {% endif %}
  47.     {% if app.environment != 'dev' %}
  48.         <!-- Google Tag Manager (noscript) -->
  49.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_code }}"
  50.         height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  51.         <!-- End Google Tag Manager (noscript) -->
  52.     {% endif %}
  53.         <!--[if lt IE 8]>
  54.             <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
  55.         <![endif]-->
  56.         <!-- HEADER -->
  57.         {% include '@theme/common/site-header.html.twig' %}
  58.         {{ renderPcgcComponents('Below Header', pageComponents)|raw }}
  59.         {% include '@theme/common/alert-notifications.html.twig' %}
  60.         <!-- CONTENT -->
  61.         {% block body %}{% endblock %}
  62.         {% include '@theme/common/site-footer.html.twig' %}
  63.         <script src="{{ asset('/js/modernizr-3.5.0.min.js')}}" defer></script>
  64.         <script src="{{ asset('//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.js')}}"></script>
  65.         {# <script src="{{ asset('/js/bootstrap.bundle.min.js')}}"></script> #}
  66.         {% include 'Widgets/admin-js-imports.html.twig' %}
  67.         {% include "@theme/common/consent.html.twig" %}
  68.     </body>
  69. </html>