Astra_Ext_Header_Sections_Markup::astra_above_header_has_menu()
Above Header has menu
Description
Source
File: addons/header-sections/classes/class-astra-ext-header-sections-markup.php
public function astra_above_header_has_menu() { $above_header_layout = astra_get_option( 'above-header-layout' ); $above_section_1 = astra_get_option( 'above-header-section-1' ); $above_section_2 = astra_get_option( 'above-header-section-2' ); if ( ( ( 'above-header-layout-1' == $above_header_layout && ( 'menu' == $above_section_1 || 'menu' == $above_section_2 ) ) || ( 'above-header-layout-2' == $above_header_layout && 'menu' == $above_section_1 ) ) ) { return true; } return false; }
Expand full source code Collapse full source code View on Trac