From 23b13ab16960df249744916ad142b094ec435eac Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Fri, 13 Jan 2017 14:48:49 -0500 Subject: [PATCH] updated nav area I added a new navigation area to the theme. --- lib/navigation.php | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/lib/navigation.php b/lib/navigation.php index f92e6f0..d005450 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -1,7 +1,9 @@ 'Site Navigation' + 'top-bar' => 'Site Navigation', + 'footer' => 'Footer Navigation', + 'second-header' => 'Secondary Header Navigation' )); /** @@ -25,6 +27,48 @@ if ( ! function_exists( 'glm_theme_top_bar' ) ) { )); } } +/** + * Footer + */ +if ( ! function_exists( 'glm_theme_footer' ) ) { + function glm_theme_footer() { + 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' => 'footer', // where it's located in the theme + 'before' => '', // before each link + 'after' => '', // after each link + 'link_before' => '', // before each link text + 'link_after' => '', // after each link text + 'depth' => 3, // limit the depth of the nav + 'fallback_cb' => false, // fallback function (see below) + 'walker' => new Glm_Theme_Top_Bar_Walker() + )); + } +} +/** + * Secondary Header Navigation +**/ +if ( ! function_exists( 'glm_theme_second_header' ) ) { + function glm_theme_second_header() { + 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' => 'second-header', // where it's located in the theme + 'before' => '', // before each link + 'after' => '', // after each link + 'link_before' => '', // before each link text + 'link_after' => '', // after each link text + 'depth' => 3, // limit the depth of the nav + 'fallback_cb' => false, // fallback function (see below) + 'walker' => new Glm_Theme_Top_Bar_Walker() + )); + } +} /** * Mobile off-canvas -- 2.17.1