From bed5cad01f5380c5bc8ef14fd13b18494939c768 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Mon, 26 Oct 2015 08:58:07 -0400 Subject: [PATCH] adding menu opions --- functions.php | 174 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 173 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 4868803..fb735f3 100644 --- a/functions.php +++ b/functions.php @@ -80,7 +80,17 @@ function glm_page_menu($parent = 0, $class = '') register_nav_menus(array( 'top-bar' => 'Site Navigation', - //'mobile-off-canvas' => 'Mobile', + 'mobile-off-canvas' => 'Mobile', + 'art-bar' => 'Art Navigation', + 'bay-bar' => 'Bay View Inn Navitgation', + 'river-bar' => 'Crooked River Lodge Navigation', + 'bridge-bar' => 'Drawbridge Bistro Navigation', + 'perry-bar' => 'Perry Hotel Navigation', + 'pier-bar' => 'Pier Restaurant Navigation', + 'boat-bar' => 'Pointer Boat Navigation', + 'vacation-bar' => 'Vacation Rental Navigation', + 'weathervane-bar' => 'Weathervane Restaurant Navigation', + 'about-bar' => 'Weathervane Restaurant Navigation', // 'footer' => 'Footer' )); @@ -102,6 +112,168 @@ if ( ! function_exists( 'feature_top_bar' ) ) { )); } } +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'bay-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'art-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'river-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'bridge-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'perry-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'pier-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'boat-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'feature_top_bar' ) ) { + function feature_top_bar() { + 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' => 'vacation-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} +if ( ! function_exists( 'weathervane_top_bar' ) ) { + function feature_top_bar() { + 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' => 'weathervane-bar', // 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 Feature_Top_Bar_Walker() + )); + } +} if ( ! class_exists( 'Feature_Top_Bar_Walker' ) ) : class Feature_Top_Bar_Walker extends Walker_Nav_Menu { -- 2.17.1