<?php
		$deffect = mom_option('dropdown-effect');
        if($deffect == '') {
            $deffect = 'dd-effect-slide';
        }
		$sticky_logo = mom_option('sticky_navigation_logo', 'url');
		$sl_w = mom_option('sticky_navigation_logo', 'width');
        $nav_align = '';

        if(mom_option('nav_align') == 'center') {
            $nav_align = 'center-navigation';
        }
?>
<nav id="navigation" class="navigation <?php echo $deffect; ?> <?php echo $nav_align; ?>" data-sticky_logo="<?php echo $sticky_logo; ?>" data-sticky_logo_width="<?php echo $sl_w; ?>" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"><!--Navigation-->
<div class="inner"><!--inner-->
	<a href="<?php echo esc_url(home_url()); ?>" class="sticky_logo"><img src="<?php echo $sticky_logo; ?>" alt="<?php bloginfo('name'); ?>" width="<?php echo mom_option('sticky_navigation_logo', 'width'); ?>" height="<?php echo mom_option('sticky_navigation_logo', 'height'); ?>"></a>
		<?php if ( has_nav_menu( 'main' ) ) { 
$main_menu_query = get_transient( 'main_menu_query'.get_queried_object_id() );
if( $main_menu_query === false ) {
    $main_menu_query = wp_nav_menu ( array( 'menu_class' => 'main-menu main-default-menu','container'=> 'ul', 'theme_location' => 'main', 'walker' => new mom_custom_Walker(), 'echo' => 0  )); 
    set_transient( 'main_menu_query'.get_queried_object_id(), $main_menu_query, 60*60*24 );
}
echo $main_menu_query; 
        ?>
        
         <div class="mom_visibility_device device-menu-wrap">
            <div class="device-menu-holder">
                <i class="momizat-icon-paragraph-justify2 mh-icon"></i> <span class="the_menu_holder_area"><i class="dmh-icon"></i><?php _e('Menu', 'framework'); ?></span><i class="mh-caret"></i>
            </div>
        <?php //wp_nav_menu ( array( 'menu_class' => 'device-menu' ,'container'=> 'ul', 'theme_location' => 'main', 'walker' => new mom_mobile_custom_walker()  )); ?>
        </div>
        <?php } else { ?> <i class="menu-message"><?php _e('Select your Main Menu from wp menus', 'framework'); ?></i> <?php } ?>
<div class="clear"></div>
</div><!--inner-->
</nav><!--Navigation-->