changing the slugs of the main level pages to reflect the imported content
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Jul 2017 15:26:31 +0000 (11:26 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Jul 2017 15:26:31 +0000 (11:26 -0400)
using the slugs of the imported pages to use for template checking

lib/misc.php
lib/navigation.php
sections/top-bar.php

index 5d2fcb6..8318e6e 100644 (file)
@@ -67,7 +67,7 @@ if (!function_exists('page_templates')) {
 }
 if (!function_exists('get_landing_pages')) {
     function get_landing_pages(){
-        return array('government-townships', 'chamber-of-commerce', 'visitor-information', 'economic-development');
+        return array('government', 'chamber-of-commerce', 'convention-visitors-bureau', 'edc');
     }
 }
 
index b63ec76..3a46468 100644 (file)
@@ -266,7 +266,7 @@ function glm_get_menu_options()
 function glm_side_menu($mobile = false) {
     global $post;
     $sideMenu = $allMenu = $pageMenuId = array();
-//    $landing_pages = array('government-townships', 'chamber-of-commerce', 'visitor-information', 'economic-development');
+//    $landing_pages = array('government', 'chamber-of-commerce', 'visitor-information', 'economic-development');
 //    $page_ids = array();
 //    
 //    foreach($landing_pages as $page){
@@ -278,7 +278,7 @@ function glm_side_menu($mobile = false) {
 //        );
 //        $page_ids[$page] = get_posts($args);
 //    }
-//    $gov = $page_ids['government-townships'][0]->ID;
+//    $gov = $page_ids['government'][0]->ID;
 //    $cvb = $page_ids['visitor-information'][0]->ID;
 //    $ecd = $page_ids['economic-development'][0]->ID;
 //    $chmb = $page_ids['chamber-of-commerce'][0]->ID;
index 52769c7..67fed5b 100644 (file)
@@ -28,16 +28,16 @@ if(!get_abs_parent()){
     }
 } else {
     switch($page_slug){
-        case "government-townships": 
+        case "government": 
             glm_theme_gov_navigation(); 
             break;
         case "chamber-of-commerce":
             glm_theme_chamber_navigation(); 
             break;
-        case "visitor-information": 
+        case "convention-visitors-bureau": 
             glm_theme_cvb_navigation() ;
             break;
-        case "economic-development": 
+        case "edc": 
             glm_theme_economic_navigation();
             break;
         default: