From: Anthony Talarico Date: Thu, 9 Nov 2017 15:06:06 +0000 (-0500) Subject: tying in the topbar rfp menu into the off canvas menu X-Git-Tag: v1.0.0^2~27 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=ec78775b5d6d2523a786f33efa7a1e303e7f22ca;p=WP-Themes%2Fmeetingsmichigan.git 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 --- 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 @@