From: Laury GvR Date: Fri, 2 Mar 2018 00:56:51 +0000 (-0500) Subject: Add members only sidebar menu functionality X-Git-Tag: v1.0.0^2~50 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=12e8fc488240621e8504a578c69ac029dcf1b583;p=WP-Themes%2Fvisitbenzie.git Add members only sidebar menu functionality --- 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 @@