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

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>{% block metatitle %}{% endblock %} | {{ sitename }}</title>
  7. <meta name="robots" content="index,follow">
  8. <meta name="description" content="{% block metadescription %}{% endblock %}">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <meta name="format-detection" content="telephone=no">
  11. <meta name="theme-color" content="{{ theme_colour }}">
  12. <link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png">
  13. <link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32-light.png" media="(prefers-color-scheme: light)">
  14. <link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32-dark.png" media="(prefers-color-scheme: dark)">
  15. <link rel="manifest" href="/site.webmanifest">
  16. {# ADMIN ONLY CSS FILES MERGED INTO SINGLE INCLUDE FILE #}
  17. {% if is_granted('ROLE_CMS_ACCESS') %}
  18. {% include 'Widgets/admin-css-imports.html.twig' %}
  19. {% endif %}
  20. {# WEBPACK COMPILED CSS #}
  21. {{ encore_entry_link_tags('app') }}
  22. {% block stylesheets %}{% endblock %}
  23. <script src="https://kit.fontawesome.com/eace9dba9c.js" crossorigin="anonymous"></script>
  24. {# WEBPACK COMPILED JS - USES DEFER #}
  25. {{ encore_entry_script_tags('app') }}
  26. {% block javascripts %}{% endblock %}
  27. </head>
  28. {% if is_granted('ROLE_CMS_ACCESS') %}
  29. <body class="skin-blue sidebar-collapse sidebar-mini">
  30. {{ render(controller('App\\Controller\\AdminDefaultController::showAdminHeader')) }}
  31. {% else %}
  32. <body {% block bodyattributes %}{% endblock %} data-env="{{ app.environment }}" data-gtmcode="{{ gtm_code }}">
  33. {% endif %}
  34. <!-- HEADER -->
  35. {% include '@theme/common/site-header.html.twig' %}
  36. {{ renderPcgcComponents('Below Header', pageComponents)|raw }}
  37. {% include '@theme/common/alert-notifications.html.twig' %}
  38. <!-- CONTENT -->
  39. {% block body %}{% endblock %}
  40. <!-- END CONTENT -->
  41. {# SETTINGS EXAMPLE #}
  42. {# {{ renderSetting(id, field) }} #}
  43. {# <p>{{ renderSetting(1, 'title') }}</p>
  44. <p>{{ renderSetting(1, 'displayText') }}</p>
  45. <p>{{ renderSetting(1, 'content') }}</p>
  46. <img src="{{ imageCache(renderSetting(1, 'image'), 'cropResize', 500, 500) }}" alt="{{ renderSetting(1, 'title') }}">
  47. <a href="{{ renderSetting(1, 'file') }}" target="_blank">Download</a>
  48. <video src="{{ renderSetting(1, 'video') }}" controls></video> #}
  49. {# SETTINGS EXAMPLE #}
  50. {% include '@theme/common/site-footer.html.twig' %}
  51. <script src="{{ asset('/js/modernizr-3.5.0.min.js')}}" defer></script>
  52. <script src="{{ asset('//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.js')}}"></script>
  53. {# <script src="{{ asset('/js/bootstrap.bundle.min.js')}}"></script> #}
  54. {% if is_granted('ROLE_CMS_ACCESS') %}
  55. {% include 'Widgets/admin-js-imports.html.twig' %}
  56. {% endif %}
  57. {% include "@theme/common/consent.html.twig" %}
  58. {% include "@theme/common/search-form.html.twig" %}
  59. </body>
  60. </html>