<?php
/*
 * Template part for displaying primary menu. 
 */
?>


<nav <?php igaa_menu_class('uk-navbar uk-navbar-attached'); ?>>
       
	<div class="uk-container uk-container-center">
		<div class="uk-navbar-brand uk-hidden-small"><?php igaa_the_custom_logo(); ?></div>
        <?php
			wp_nav_menu( array(
				'menu'              => 'primary',
				'theme_location'    => 'primary',
				'depth'             => 2,
				'container'         => '',
				'menu_class'        => 'uk-navbar-nav uk-navbar-flip uk-hidden-small',
				'fallback_cb'       => 'Igaa_Primary_Menu::fallback',
				'walker'            => new Igaa_Primary_Menu())
			);
		?>
		
		<div class="uk-navbar-flip uk-visible-small">
            <a href="#offcanvas-menu" class="uk-navbar-toggle" data-uk-offcanvas></a>
        </div>
        <div class="uk-navbar-brand uk-navbar-center uk-visible-small "><?php igaa_the_custom_logo(); ?></div>
	</div>
		
		
	<div id="offcanvas-menu" class="uk-offcanvas">
		<div class="uk-offcanvas-bar uk-offcanvas-bar-flip">
			<?php
                wp_nav_menu( array(
                    'menu'           => 'primary',
                    'theme_location' => 'primary',
                    'depth'          => 2,
                    'container'      => '',
                    'menu_class'     => 'uk-nav uk-nav-offcanvas uk-nav-parent-icon',
                    'items_wrap'     => '<ul id="%1$s" class="%2$s" data-uk-nav>%3$s</ul>',
                    'fallback_cb'    => 'Igaa_Offcanvas_Menu::fallback',
                    'walker'         => new Igaa_Offcanvas_Menu())
                );
			?>
		</div>
    </div>
</nav>