Astra_Ext_Header_Sections_Markup_Compatibility::astra_below_header_enabled()
Below Header status
Description
Return
(string|boolean)
Source
File: addons/advanced-headers/classes/class-astra-ext-header-sections-markup-compatibility.php
public function astra_below_header_enabled() { $below_header_meta = astra_get_option_meta( 'ast-hfb-below-header-display' ); if ( 'disabled' !== $below_header_meta ) { 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' ); if ( Astra_Ext_Advanced_Headers_Markup::advanced_header_enabled() && ( is_front_page() && 'posts' === get_option( 'show_on_front' ) ) ) { return false; } elseif ( 'enabled' !== $below_header && Astra_Ext_Advanced_Headers_Markup::advanced_header_enabled() ) { return 'disabled'; } } return false; } return 'disabled'; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |