tying in the topbar rfp menu into the off canvas menu
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 9 Nov 2017 15:06:06 +0000 (10:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 9 Nov 2017 15:06:06 +0000 (10:06 -0500)
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
sections/off-canvas.php

index 372a9c1..68365b4 100644 (file)
@@ -42,10 +42,15 @@ if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) {
         echo '<div class="left-off-canvas-list">';
         echo '<ul><li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>';
         echo glm_get_mobile_nav_menu( $location );
+        echo glm_get_mobile_nav_menu( 'top-bar' );
         echo '</ul></div>';
     }
 }
-
+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(
index b99e422..9f09faa 100644 (file)
@@ -1,5 +1,6 @@
                     <aside class="left-off-canvas-menu hide-for-large-up opensearchserver.ignore">
                         <?php glm_theme_mobile_off_canvas('mobile-menu'); ?>
+                  
                         <?php //get_template_part('parts/search-form');?>
                         <?php if (function_exists('glm_get_clientinfo_option')) :?>
                             <ul>