adding top links off menu to the off canvas for owners pages only
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 8 Oct 2018 16:45:08 +0000 (12:45 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 8 Oct 2018 16:45:08 +0000 (12:45 -0400)
functions.php
lib/navigation.php

index a5f4bdf..094230f 100644 (file)
@@ -2,7 +2,7 @@
 require_once 'lib/menu-walker.php';
 require_once 'lib/navigation.php';
 
-define('OWNERS_PAGE', 18); // A: 22, L: 18, dev: 150
+define('OWNERS_PAGE', 469); // A: 469, L: 18, dev: 22
 $ancestorId   = null;
 $includePages = array();
 $frontPageId  = get_option('page_on_front');
index c7f64c8..6073847 100644 (file)
@@ -52,8 +52,10 @@ if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) {
     function glm_theme_mobile_off_canvas($location) {
         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' );
+        if(is_in_tree(OWNERS_PAGE) ){ 
+            echo glm_get_mobile_nav_menu( 'top-links' );
+        }
         echo '</ul></div>';
     }
 }