esc_html__( 'Right Top Bar', 'foundationpress' ), 'home-hero-bar' => esc_html__( 'Home Hero Bar', 'foundationpress' ), 'home-hero-middle-bar' => esc_html__( 'Home Hero Middle Bar', 'foundationpress' ), 'home-hero-last-bar' => esc_html__( 'Home Hero Last Bar', 'foundationpress' ), // 'mobile-nav' => esc_html__( 'Mobile', 'foundationpress' ), ) ); /** * Desktop navigation - Top bar right navigation * * @link http://codex.wordpress.org/Function_Reference/wp_nav_menu */ if ( ! function_exists( 'foundationpress_top_bar_r' ) ) { function foundationpress_top_bar_r() { wp_nav_menu( array( 'container' => false, 'menu_class' => 'dropdown menu', 'items_wrap' => '', 'theme_location' => 'top-bar-r', 'depth' => 3, 'fallback_cb' => false, 'walker' => new Foundationpress_Top_Bar_Walker(), ) ); } } /** * Desktop navigation - Home Hero bottom bar * * @link http://codex.wordpress.org/Function_Reference/wp_nav_menu */ if ( ! function_exists( 'foundationpress_home_hero_bar' ) ) { function foundationpress_home_hero_bar() { wp_nav_menu( array( 'container' => 'nav', // include the nav container 'menu_class' => 'menu button hollow', 'items_wrap' => '', 'theme_location' => 'home-hero-bar', 'depth' => 3, 'fallback_cb' => false, 'walker' => new Foundationpress_Home_Hero_Bar_Walker(), ) ); } } /** * Desktop navigation - Home Hero middle bottom bar * * @link http://codex.wordpress.org/Function_Reference/wp_nav_menu */ if ( ! function_exists( 'foundationpress_home_hero_middle_bar' ) ) { function foundationpress_home_hero_middle_bar() { wp_nav_menu( array( 'container' => 'nav',//true, // include the nav container 'menu_class' => 'menu button hollow', 'items_wrap' => '', 'theme_location' => 'home-hero-middle-bar', 'depth' => 3, 'fallback_cb' => false, 'walker' => new Foundationpress_Home_Hero_Middle_Bar_Walker(), ) ); } } /** * Desktop navigation - Home Hero Last bottom bar * * @link http://codex.wordpress.org/Function_Reference/wp_nav_menu */ if ( ! function_exists( 'foundationpress_home_hero_last_bar' ) ) { function foundationpress_home_hero_last_bar() { wp_nav_menu( array( 'container' => 'nav',//true, // include the nav container 'menu_class' => 'menu button hollow', 'items_wrap' => '', 'theme_location' => 'home-hero-last-bar', 'depth' => 3, 'fallback_cb' => false, 'walker' => new Foundationpress_Home_Hero_Last_Bar_Walker(), ) ); } } /** * Mobile navigation - topbar (default) or offcanvas */ //if ( ! function_exists( 'foundationpress_mobile_nav' ) ) { // function foundationpress_mobile_nav() { // wp_nav_menu( // array( // 'container' => false, // Remove nav container // 'menu' => __( 'mobile-nav', 'foundationpress' ), // 'menu_class' => 'vertical menu', // 'theme_location' => 'mobile-nav', // 'items_wrap' => '', // 'fallback_cb' => false, // 'walker' => new Foundationpress_Mobile_Walker(), // ) // ); // } //} /** * Add support for buttons in the top-bar menu: * 1) In WordPress admin, go to Apperance -> Menus. * 2) Click 'Screen Options' from the top panel and enable 'CSS CLasses' and 'Link Relationship (XFN)' * 3) On your menu item, type 'has-form' in the CSS-classes field. Type 'button' in the XFN field * 4) Save Menu. Your menu item will now appear as a button in your top-menu */ if ( ! function_exists( 'foundationpress_add_menuclass' ) ) { function foundationpress_add_menuclass( $ulclass ) { $find = array( '/