From 12e8fc488240621e8504a578c69ac029dcf1b583 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 1 Mar 2018 19:56:51 -0500 Subject: [PATCH] Add members only sidebar menu functionality --- landingpage-template.php | 4 ---- lib/navigation.php | 12 ++++++++++-- sections/header.php | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) delete mode 100644 landingpage-template.php diff --git a/landingpage-template.php b/landingpage-template.php deleted file mode 100644 index bc72fc8..0000000 --- a/landingpage-template.php +++ /dev/null @@ -1,4 +0,0 @@ - 'Header Links' )); +if ( ! function_exists( 'glm_theme_members_only' ) ) { + function glm_theme_members_only($location) { + echo ''; + } +} + /** * Top Bar */ if ( ! function_exists( 'glm_theme_top_bar' ) ) { - function glm_theme_top_bar() { + function glm_theme_top_bar($location) { wp_nav_menu(array( 'container' => false, // remove nav container 'container_class' => '', // class of container 'menu' => '', // menu name 'menu_class' => '', // adding custom nav class - 'theme_location' => 'top-bar', // where it's located in the theme + 'theme_location' => $location, // where it's located in the theme 'before' => '', // before each link 'after' => '', // after each link 'link_before' => '', // before each link text diff --git a/sections/header.php b/sections/header.php index 38ce457..bf5eb2f 100644 --- a/sections/header.php +++ b/sections/header.php @@ -13,7 +13,7 @@