From: Anthony Talarico Date: Mon, 28 Jan 2019 23:01:20 +0000 (-0500) Subject: adding defines for the business page ids X-Git-Tag: v1.0.48^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=6f5cddf609ba5e8588fb502baa0157a4109a8df9;p=WP-Themes%2Fotsego.git adding defines for the business page ids --- diff --git a/functions.php b/functions.php index e67bda8..d471b31 100644 --- a/functions.php +++ b/functions.php @@ -1,7 +1,9 @@ - post_parent || is_tree(11148)){ ?> + post_parent || is_tree(BUSINESS_PAGE)){ ?>
One Stop Shop
225 West Main Street, Gaylord, MI
Phone: (989) 731-0287
diff --git a/lib/navigation.php b/lib/navigation.php index 2ae7973..2f2fe8a 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -223,7 +223,7 @@ function glm_side_menu($mobile = false) { $menu = wp_get_nav_menu_object($locations['top-bar-6']); } } - if(is_page(11148) || 11148 == $post->post_parent || is_tree(11148)){ + if(is_page(BUSINESS_PAGE) || BUSINESS_PAGE == $post->post_parent || is_tree(BUSINESS_PAGE)){ if (($locations = get_nav_menu_locations()) && isset($locations['one-stop-shop'])) { $menu = wp_get_nav_menu_object($locations['one-stop-shop']); }