<?php
/**
 * The template for displaying header navigation.
 *
 * @package     Business Interface
 * @author      WPInterface Team
 * @since       1.0.0
 */

?>

<nav class="site-navigation main-navigation business-interface-primary-nav business-interface-nav si-header-element" role="navigation"<?php business_interface_schema_markup( 'site_navigation' ); ?> aria-label="<?php esc_attr_e( 'Site Navigation', 'business-interface' ); ?>">
<?php

if ( has_nav_menu( 'business-interface-primary' ) ) {
	wp_nav_menu(
		array(
			'theme_location' => 'business-interface-primary',
			'menu_id'        => 'business-interface-primary-nav',
			'container'      => '',
			'link_before'    => '<span>',
			'link_after'     => '</span>',
		)
	);
} else {
	wp_page_menu(
		array(
			'menu_class'  => 'business-interface-primary-nav',
			'show_home'   => true,
			'container'   => 'ul',
			'before'      => '',
			'after'       => '',
			'link_before' => '<span>',
			'link_after'  => '</span>',
		)
	);
}

?>
</nav><!-- END .business-interface-nav -->
