diff --git a/publichealth/home/templates/tags/footer_menu.html b/publichealth/home/templates/tags/footer_menu.html
new file mode 100644
index 0000000..f7fe2b9
--- /dev/null
+++ b/publichealth/home/templates/tags/footer_menu.html
@@ -0,0 +1,7 @@
+{% load navigation wagtailcore_tags %}
+
+
diff --git a/publichealth/home/templates/tags/top_menu.html b/publichealth/home/templates/tags/top_menu.html
index 268a352..775d2b8 100644
--- a/publichealth/home/templates/tags/top_menu.html
+++ b/publichealth/home/templates/tags/top_menu.html
@@ -1,5 +1,4 @@
{% load navigation wagtailcore_tags %}
-{% get_site_root as site_root %}
diff --git a/publichealth/home/templatetags/navigation.py b/publichealth/home/templatetags/navigation.py
index 75d1196..d6c530f 100644
--- a/publichealth/home/templatetags/navigation.py
+++ b/publichealth/home/templatetags/navigation.py
@@ -39,10 +39,19 @@ def top_menu(context, parent, calling_page=None):
# Retrieves the children of the top menu items for the drop downs
@register.inclusion_tag('tags/top_menu_children.html', takes_context=True)
def top_menu_children(context, parent):
- menuitems_children = parent.get_children()
- menuitems_children = menuitems_children.live().in_menu()
+ menuitems_children = parent.get_children().live().in_menu()
return {
'parent': parent,
'menuitems_children': menuitems_children,
'request': context['request'],
}
+
+# Retrieves the footer menu items
+@register.inclusion_tag('tags/footer_menu.html', takes_context=True)
+def footer_menu(context, parent, calling_page=None):
+ menuitems = parent.get_children().live().in_menu()
+ return {
+ 'calling_page': calling_page,
+ 'menuitems': menuitems,
+ 'request': context['request'],
+ }
\ No newline at end of file
diff --git a/publichealth/templates/footer.html b/publichealth/templates/footer.html
index 42e3e8a..0833d24 100644
--- a/publichealth/templates/footer.html
+++ b/publichealth/templates/footer.html
@@ -1,17 +1,14 @@
+{% load wagtailcore_tags navigation %}
+{% get_site_root as site_root %}
+