{% liquid assign copyright_year = 'now' | date: '%Y' assign form_id = 'FooterSignup-' | append: section.id assign email_id = 'FooterEmail-' | append: section.id assign message_id = 'FooterSignupMessage-' | append: section.id %} {% javascript %} (function () { var footer = document.querySelector('.footer'); if (!footer || footer.dataset.bound === 'true') return; footer.dataset.bound = 'true'; var media = window.matchMedia('(max-width: 1024px)'); var columns = footer.querySelectorAll('.footer__column'); function sync() { var mobile = media.matches; footer.classList.toggle('is-collapsible', mobile); columns.forEach(function (column) { var button = column.querySelector('.footer__toggle'); if (!button) return; if (!mobile) { column.classList.remove('is-open'); button.setAttribute('aria-expanded', 'true'); return; } button.setAttribute('aria-expanded', column.classList.contains('is-open') ? 'true' : 'false'); }); } columns.forEach(function (column) { var button = column.querySelector('.footer__toggle'); if (!button) return; button.addEventListener('click', function () { if (!media.matches) return; column.classList.toggle('is-open'); button.setAttribute('aria-expanded', column.classList.contains('is-open') ? 'true' : 'false'); }); }); sync(); if (media.addEventListener) { media.addEventListener('change', sync); } else if (media.addListener) { media.addListener(sync); } })(); {% endjavascript %} {% schema %} { "name": "t:general.footer", "settings": [ { "type": "image_picker", "id": "logo", "label": "t:footer.logo" }, { "type": "link_list", "id": "menu", "label": "t:footer.menu", "info": "t:footer.menu_info" }, { "type": "url", "id": "instagram_url", "label": "t:footer.instagram" }, { "type": "url", "id": "facebook_url", "label": "t:footer.facebook" }, { "type": "url", "id": "linkedin_url", "label": "t:footer.linkedin" } ] } {% endschema %}