fixed page id in the conditional to check pages
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 12 May 2016 15:43:28 +0000 (11:43 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 12 May 2016 15:43:28 +0000 (11:43 -0400)
lib/navigation.php

index 44e1057..2c40499 100644 (file)
@@ -234,7 +234,7 @@ function glm_side_menu($mobile = false) {
    
     $sideMenu = $allMenu = $pageMenuId = array();
     
-    if( 239== $post->post_parent || is_tree(239)){
+    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']);
         }
@@ -301,7 +301,11 @@ function glm_side_menu($mobile = false) {
         echo '>'.$pageHead->title.'</a><ul>';
     } else {
         echo '<h1><a href="'. get_permalink(142).'"';
+        if(is_page(142) || 142 == $post->post_parent || is_tree(142)){
             echo '> CHAMBER </a></h1>';
+        } else {
+            echo '> COMMUNITY </a></h1>';
+        }
         echo '<ul>';
     }
     foreach ($subs as $menu_item) {