From 8833966abd6c24fcf365b24c47ba0587c4bcce82 Mon Sep 17 00:00:00 2001 From: Kevin Paxman <kpaxman@uwaterloo.ca> Date: Wed, 20 Mar 2024 13:53:35 -0400 Subject: [PATCH] ISTWCMS-6827: remove social media icon HTML from local footer when there are no social media items --- src/patterns/03-layouts/site-footer/site-footer.twig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/patterns/03-layouts/site-footer/site-footer.twig b/src/patterns/03-layouts/site-footer/site-footer.twig index 351e6ae9..8c8e90ff 100644 --- a/src/patterns/03-layouts/site-footer/site-footer.twig +++ b/src/patterns/03-layouts/site-footer/site-footer.twig @@ -15,11 +15,15 @@ </a> </div> {% endif %} + + {% if social_media.menu_tree %} <div class="uw-site-footer__social-media"> {% include "@components/menu/menu--social/menu--social.twig" with { "social_media_placement": 'local-site-footer', } %} </div> + {% endif %} + <div class="uw-site-footer__content"> {{ body }} </div> -- GitLab