Astra_Ext_Header_Sections_Markup::above_header_disable()
Load Above Header markup IF enabled from Advanced HEaders
Description
Return
(bool)
Source
File: addons/header-sections/classes/class-astra-ext-header-sections-markup.php
public function above_header_disable() { if ( Astra_Ext_Extension::is_active( 'advanced-headers' ) ) { // Above Header meta from the Advanced Headers. $above_header = Astra_Ext_Advanced_Headers_Loader::astra_advanced_headers_layout_option( 'above-header-enabled' ); // Above Header layout from the customizer. $above_header_layout = astra_get_option( 'above-header-layout' ); if ( 'disabled' != $above_header_layout && ( Astra_Ext_Advanced_Headers_Markup::advanced_header_enabled() && ( is_front_page() && 'posts' == get_option( 'show_on_front' ) ) ) ) { return false; } elseif ( 'enabled' != $above_header && 'disabled' != $above_header_layout && Astra_Ext_Advanced_Headers_Markup::advanced_header_enabled() ) { return true; } } return false; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |