From ec78775b5d6d2523a786f33efa7a1e303e7f22ca Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 9 Nov 2017 10:06:06 -0500 Subject: [PATCH] tying in the topbar rfp menu into the off canvas menu adding a function to display the topbar rfp appearance menu into the off canvas so that it only has to be updated in one place --- lib/navigation.php | 7 ++++++- sections/off-canvas.php | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/navigation.php b/lib/navigation.php index 372a9c1..68365b4 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -42,10 +42,15 @@ if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) { echo '
'; echo '
'; } } - +if ( ! function_exists( 'glm_theme_additional_off_canvas' ) ) { + function glm_theme_additional_off_canvas($location) { + echo glm_get_mobile_nav_menu( $location ); + } +} function glm_get_mobile_nav_menu( $theme_location ) { $menu = wp_nav_menu(array( diff --git a/sections/off-canvas.php b/sections/off-canvas.php index b99e422..9f09faa 100644 --- a/sections/off-canvas.php +++ b/sections/off-canvas.php @@ -1,5 +1,6 @@