Astra_Ext_Header_Sections_Markup::below_header_disable()
Load Below 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 below_header_disable() { if ( Astra_Ext_Extension::is_active( 'advanced-headers' ) ) { // Below Header meta from the Advanced Headers. $below_header = Astra_Ext_Advanced_Headers_Loader::astra_advanced_headers_layout_option( 'below-header-enabled' ); // Below Header layout from the customizer. $below_header_layout = astra_get_option( 'below-header-layout' ); if ( 'disabled' != $below_header_layout && ( Astra_Ext_Advanced_Headers_Markup::advanced_header_enabled() && ( is_front_page() && 'posts' == get_option( 'show_on_front' ) ) ) ) { return false; } elseif ( 'enabled' != $below_header && 'disabled' != $below_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. |