Sidemenu for members only section
authorLaury GvR <laury@gaslightmedia.com>
Thu, 26 May 2016 17:16:29 +0000 (13:16 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 26 May 2016 17:16:29 +0000 (13:16 -0400)
lib/navigation.php

index e2ae30d..2d1d631 100644 (file)
@@ -234,6 +234,11 @@ function glm_side_menu($mobile = false) {
    
     $sideMenu = $allMenu = $pageMenuId = array();
     
+    if (is_in_tree(get_option('glm_members_database_option_members_only_id'))) { 
+        if (($locations = get_nav_menu_locations()) && isset($locations['members-only'])) {
+            $menu       = wp_get_nav_menu_object($locations['members-only']);
+        }
+    } 
     if( 142 == $post->post_parent || is_tree(142)){
         if (($locations = get_nav_menu_locations()) && isset($locations['chamber'])){
             $menu       = wp_get_nav_menu_object($locations['chamber']);