From a880a96c6c29e951d263865e96ef9129036ed7de Mon Sep 17 00:00:00 2001 From: Colin Marshall Date: Wed, 27 Jan 2016 00:41:55 -0700 Subject: [PATCH] Fixed navigation.php code sniff build error --- library/navigation.php | 269 +++++++++++++++++++++-------------------- 1 file changed, 136 insertions(+), 133 deletions(-) diff --git a/library/navigation.php b/library/navigation.php index 51ebb80b5..5c8980158 100755 --- a/library/navigation.php +++ b/library/navigation.php @@ -9,26 +9,27 @@ */ register_nav_menus(array( - 'top-bar-r' => 'Right Top Bar', + 'top-bar-r' => 'Right Top Bar', 'mobile-nav' => 'Mobile', )); /** * Desktop navigation - right top bar - * http://codex.wordpress.org/Function_Reference/wp_nav_menu + * + * @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, // Remove nav container - 'menu_class' => 'dropdown menu', // Adding custom nav class - 'items_wrap' => '', - 'theme_location' => 'top-bar-r', // Where it's located in the theme - 'depth' => 3, // Limit the depth of the nav - 'fallback_cb' => false, // Fallback function (see below) - 'walker' => new Foundationpress_Top_Bar_Walker(), - )); + wp_nav_menu(array( + 'container' => false, // Remove nav container + 'menu_class' => 'dropdown menu', // Adding custom nav class + 'items_wrap' => '', + 'theme_location' => 'top-bar-r', // Where it's located in the theme + 'depth' => 3, // Limit the depth of the nav + 'fallback_cb' => false, // Fallback function (see below) + 'walker' => new Foundationpress_Top_Bar_Walker(), + )); } } @@ -38,18 +39,19 @@ function foundationpress_top_bar_r() { */ 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(), - )); + 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. @@ -59,10 +61,10 @@ function foundationpress_mobile_nav() { */ if ( ! function_exists( 'foundationpress_add_menuclass' ) ) { function foundationpress_add_menuclass( $ulclass ) { - $find = array('/'; + // Build the breadcrums + echo ''; - } + // 404 page + echo '
  • Error 404
  • '; + } + } else { + if ( $showhome ) { + echo '
  • ' . $home_title . '
  • '; + } + } + echo ''; + } } ?>