{% macro tnaFooter(params) %} {%- from 'components/button/macro.html' import tnaButton -%} {%- from 'partials/logo/macro.html' import tnaLogo -%} {%- set containerClasses = [params.classes] if params.classes else [] -%} {% if 'social' in params %} {% set social = params.social %} {% elif params.defaultContent %} {% set social = [ { 'href': 'https://twitter.com/UKNatArchives', 'icon': 'twitter', 'title': 'The National Archives X feed (formerly known as Twitter)', 'shortTitle': 'X (formerly Twitter)' }, { 'href': 'https://www.youtube.com/c/TheNationalArchivesUK', 'icon': 'youtube', 'title': 'The National Archives YouTube channel', 'shortTitle': 'YouTube' }, { 'href': 'https://www.facebook.com/TheNationalArchives', 'icon': 'facebook', 'title': 'The National Archives Facebook page', 'shortTitle': 'Facebook' }, { 'href': 'https://www.flickr.com/photos/nationalarchives', 'icon': 'flickr', 'title': 'The National Archives Flickr feed', 'shortTitle': 'Flickr' }, { 'href': 'https://www.instagram.com/nationalarchivesuk/', 'icon': 'instagram', 'title': 'The National Archives Instagram feed', 'shortTitle': 'Instagram' } ] %} {% else %} {% set social = [] %} {% endif %} {% if 'navigation' in params %} {% set navigation = params.navigation %} {% elif params.defaultContent %} {% set navigation = [ { 'title': 'Quick links', 'items': [ { 'text': 'About us', 'href': (params.defaultContentBaseURL or '') ~ '/about-us/' }, { 'text': 'Contact us', 'href': (params.defaultContentBaseURL or '') ~ '/contact-us/' }, { 'text': 'News', 'href': (params.defaultContentBaseURL or '') ~ '/news/' }, { 'text': 'Blogs', 'href': (params.defaultContentBaseURL or '') ~ '/blogs/' }, { 'text': 'Podcasts', 'href': (params.defaultContentBaseURL or '') ~ '/explore-the-collection/on-the-record-podcast/' }, { 'text': 'Image library', 'href': "https://images.nationalarchives.gov.uk/" }, { 'text': 'Press room', 'href': (params.defaultContentBaseURL or '') ~ '/about-us/press-and-media/' }, { 'text': 'Jobs', 'href': (params.defaultContentBaseURL or '') ~ '/about-us/jobs-and-opportunities/' }, { 'text': 'British citizenship services', 'href': (params.defaultContentBaseURL or '') ~ '/contact-us/british-citizenship-services/' }, { 'text': 'Historical Manuscripts Commission', 'href': (params.defaultContentBaseURL or '') ~ '/archives-sector/our-archives-sector-role/historical-manuscripts-commission/' } ] }, { 'title': "Other websites", 'items': [ { 'text': 'UK Government Web Archive', 'href': (params.defaultContentBaseURL or '') ~ '/webarchive/' }, { 'text': 'Legislation.gov.uk', 'href': 'https://www.legislation.gov.uk/' }, { 'text': 'Find Case Law', 'href': 'https://caselaw.nationalarchives.gov.uk/' }, { 'text': 'The Gazette', 'href': 'https://www.thegazette.co.uk/', 'external': True }, { 'text': 'The National Archives Trust', 'href': 'https://www.nationalarchivestrust.org.uk/', 'external': True }, { 'text': 'Friends of The National Archives', 'href': 'https://ftna.org.uk/', 'external': True }, { 'text': 'National Archives Design System', 'href': 'https://design-system.nationalarchives.gov.uk/' } ] } ] %} {% else %} {% set navigation = [] %} {% endif %} {% if 'legal' in params %} {% set legal = params.legal %} {% elif params.defaultContent %} {% set legal = [ { 'text': 'Accessibility statement', 'href': (params.defaultContentBaseURL or '') ~ '/help/web-accessibility/' }, { 'text': 'Freedom of information', 'href': (params.defaultContentBaseURL or '') ~ '/freedom-of-information/' }, { 'text': 'Terms and conditions', 'href': (params.defaultContentBaseURL or '') ~ '/terms-and-conditions/' }, { 'text': 'Privacy notice', 'href': (params.defaultContentBaseURL or '') ~ '/terms-and-conditions/privacy-notice/' }, { 'text': 'Cookies', 'href': (params.defaultContentBaseURL or '') ~ '/cookies/' } ] %} {% else %} {% set legal = [] %} {% endif %} {% if 'showNewsletter' in params and params.showNewsletter != None %} {% set showNewsletter = params.showNewsletter %} {% elif params.defaultContent %} {% set showNewsletter = True %} {%- else %} {% set showNewsletter = False %} {%- endif %} {% set cookiesUrl = '' %} {% if params.themeSelector %} {% if 'cookiesUrl' in params %} {% set cookiesUrl = params.cookiesUrl %} {% elif params.defaultContent %} {% set cookiesUrl = (params.defaultContentBaseURL or '') ~ '/cookies/' %} {%- endif %} {%- endif %} {% endmacro %}