{% load static wagtailcrx_tags i18n wagtailcore_tags wagtailimages_tags wagtailsettings_tags wagtailuserbar %} {% get_settings %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} {% wagtail_site as site %} {% block tracking %} {% if settings.wagtailcrx.AnalyticsSettings.ga_tracking_id or settings.wagtailcrx.AnalyticsSettings.ga_g_tracking_id %} {% if settings.wagtailcrx.AnalyticsSettings.ga_tracking_id %} {% else %} {% endif %} {% endif %} {% if settings.wagtailcrx.AnalyticsSettings.gtm_id %} {% endif %} {% if settings.wagtailcrx.AnalyticsSettings.head_scripts %} {{settings.wagtailcrx.AnalyticsSettings.head_scripts|safe}} {% endif %} {% endblock %} {# Pass in CMS variables to JavaScript #} {# SEO Metadata #} {% include "wagtailseo/meta.html" %} {% block frontend_assets %} {% if settings.wagtailcrx.LayoutSettings.frontend_theme %} {% else %} {% endif %} {% endblock %} {% block wagtailcrx_assets %} {% if "DEBUG"|django_settings %} {% else %} {% endif %} {% endblock %} {% block custom_assets %} {% endblock %} {% block favicon %} {% if settings.wagtailcrx.LayoutSettings.favicon %} {# See https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/ #} {% image settings.wagtailcrx.LayoutSettings.favicon fill-120x120 format-png as favicon_iphone %} {% image settings.wagtailcrx.LayoutSettings.favicon fill-180x180 format-png as favicon_iphone_plus %} {% image settings.wagtailcrx.LayoutSettings.favicon fill-152x152 format-png as favicon_ipad %} {% image settings.wagtailcrx.LayoutSettings.favicon fill-167x167 format-png as favicon_ipad_pro %} {% endif %} {% endblock %} {% block extra_head %}{% endblock %} {% include "wagtailcrx/includes/codered_banner.html" %} {% wagtailuserbar %} {% block ada_skip %} {% if settings.wagtailcrx.ADASettings.skip_navigation %} Skip Navigation {% endif %} {% endblock %} {% block navbar %}{% endblock %}
{% block content %} {% block messages %} {% if messages %}
{% for message in messages %} {% endfor %}
{% endif %} {% endblock %} {% block content_pre_body %}{% endblock %} {% block content_body %} {% include_block page.body with settings=settings %} {% endblock %} {% block content_post_body %}{% endblock %} {% block index_filters %} {% if page.index_show_subpages and page.index_classifiers.exists %} {% include "wagtailcrx/includes/classifier_dropdowns.html" with formclass="form-inline" %} {% endif %} {% endblock %} {% block index_content %} {% if page.index_show_subpages %} {% include "wagtailcrx/includes/pagination.html" with items=index_paginated %} {% endif %} {% endblock %} {% endblock %}
{% block content_walls %} {% for content_wall in content_walls %} {% include_block content_wall with settings=settings %} {% endfor %} {% endblock %}
{% block footer %}{% endblock %} {% block required_scripts %} {% endblock %} {% block frontend_scripts %} {% endblock %} {% block wagtailcrx_scripts %} {% endblock %} {% block custom_scripts %} {# Legacy behavior, remove this in the future and leave blank for client sites to implement. #} {% endblock %} {% include "wagtailseo/struct_data.html" %} {% block body_tracking_scripts %} {% if settings.wagtailcrx.AnalyticsSettings.gtm_id %} {% endif %} {% if settings.wagtailcrx.AnalyticsSettings.body_scripts %} {{settings.wagtailcrx.AnalyticsSettings.body_scripts|safe}} {% endif %} {% endblock %}