function avada_mobile_main_menu() { if ('Top' != Avada()->settings->get('header_position') || !in_array(Avada()->settings->get('header_layout'), array('v4', 'v5'))) { echo avada_modern_menu(); } $mobile_menu_text_align = ''; if ('right' == Avada()->settings->get('mobile_menu_text_align')) { $mobile_menu_text_align = ' fusion-mobile-menu-text-align-right'; } printf('<div class="fusion-mobile-nav-holder%s"></div>', $mobile_menu_text_align); if (has_nav_menu('sticky_navigation')) { printf('<div class="fusion-mobile-nav-holder%s fusion-mobile-sticky-nav-holder"></div>', $mobile_menu_text_align); } }
function avada_mobile_main_menu() { if (fusion_get_theme_option('header_position') != 'Top' || fusion_get_theme_option('header_layout') != 'v4' && fusion_get_theme_option('header_layout') != 'v5') { echo avada_modern_menu(); } echo '<div class="fusion-mobile-nav-holder"></div>'; if (has_nav_menu('sticky_navigation')) { echo '<div class="fusion-mobile-nav-holder fusion-mobile-sticky-nav-holder"></div>'; } }