/** * Shows the Primary Menu * * default load in sidebar-header-right.php */ function catchbase_primary_menu() { $options = catchbase_get_theme_options(); if (!$options['primary_menu_disable']) { ?> <nav class="nav-primary <?php echo !$options['primary_search_disablhee'] ? 'search-enabled' : ''; ?> " role="navigation"> <h1 class="assistive-text"><?php _e('Primary Menu', 'catch-base'); ?> </h1> <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e('Skip to content', 'catch-base'); ?> "><?php _e('Skip to content', 'catch-base'); ?> </a></div> <?php if (has_nav_menu('primary')) { $catchbase_primary_menu_args = array('theme_location' => 'primary', 'menu_class' => 'menu catchbase-nav-menu', 'container' => false); wp_nav_menu($catchbase_primary_menu_args); } else { wp_page_menu(array('menu_class' => 'page-menu-wrap')); } if (!$options['primary_search_disable']) { ?> <div id="search-toggle" class="genericon"> <a class="screen-reader-text" href="#search-container"><?php _e('Search', 'catch-base'); ?> </a> </div> <div id="search-container" class="displaynone"> <?php get_Search_form(); ?> </div> <?php } ?> </nav><!-- .nav-primary --> <?php } }
/** * Shows the Primary Menu * * default load in sidebar-header-right.php */ function catchresponsive_primary_menu() { ?> <nav class="nav-primary search-enabled" role="navigation"> <div class="wrapper"> <h1 class="assistive-text"><?php _e('Primary Menu', 'catch-responsive'); ?> </h1> <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e('Skip to content', 'catch-responsive'); ?> "><?php _e('Skip to content', 'catch-responsive'); ?> </a></div> <?php if (has_nav_menu('primary')) { $catchresponsive_primary_menu_args = array('theme_location' => 'primary', 'menu_class' => 'menu catchresponsive-nav-menu', 'container' => false); wp_nav_menu($catchresponsive_primary_menu_args); } else { wp_page_menu(array('menu_class' => 'menu catchresponsive-nav-menu')); } ?> <div id="search-toggle" class="genericon"> <a class="screen-reader-text" href="#search-container"><?php _e('Search', 'catch-responsive'); ?> </a> </div> <div id="search-container" class="displaynone"> <?php get_Search_form(); ?> </div> </div><!-- .wrapper --> </nav><!-- .nav-primary --> <?php }