/** * Get the secondary header content based on the content area * @param string $content_area Secondary header content area from theme optins * @return string Html for the content */ function avada_secondary_header_content($content_area) { if (Avada()->settings->get($content_area) == 'Contact Info') { return avada_contact_info(); } elseif (Avada()->settings->get($content_area) == 'Social Links') { return avada_header_social_links(); } elseif (Avada()->settings->get($content_area) == 'Navigation') { $mobile_menu_wrapper = ''; if (has_nav_menu('top_navigation')) { $mobile_menu_wrapper = '<div class="fusion-mobile-nav-holder"></div>'; } return avada_secondary_nav() . $mobile_menu_wrapper; } }
/** * Get the secondary header content based on the content area * @param string $content_area Secondary header content area from theme optins * @return string Html for the content */ function avada_secondary_header_content($content_area) { if (fusion_get_theme_option($content_area) == 'Contact Info') { return avada_contact_info(); } elseif (fusion_get_theme_option($content_area) == 'Social Links') { return avada_header_social_links(); } elseif (fusion_get_theme_option($content_area) == 'Navigation') { return avada_secondary_nav() . '<div class="fusion-mobile-nav-holder"></div>'; } }