From 4e9607a113f75b4c7991509c4673afb45ce2c248 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 26 Jul 2017 11:26:31 -0400 Subject: [PATCH] changing the slugs of the main level pages to reflect the imported content using the slugs of the imported pages to use for template checking --- lib/misc.php | 2 +- lib/navigation.php | 4 ++-- sections/top-bar.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/misc.php b/lib/misc.php index 5d2fcb6..8318e6e 100644 --- a/lib/misc.php +++ b/lib/misc.php @@ -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'); } } diff --git a/lib/navigation.php b/lib/navigation.php index b63ec76..3a46468 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -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; diff --git a/sections/top-bar.php b/sections/top-bar.php index 52769c7..67fed5b 100644 --- a/sections/top-bar.php +++ b/sections/top-bar.php @@ -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: -- 2.17.1