Astra_Ext_Header_Sections_Markup::below_header_html_markup_loader()
Below Header Header markup loader
Description
Loads appropriate template file based on the style option selected in options panel.
Source
File: addons/header-sections/classes/class-astra-ext-header-sections-markup.php
public function below_header_html_markup_loader() {
$below_header_enabled = $this->astra_below_header_enabled();
$below_header_layout = astra_get_option( 'below-header-layout' );
if ( ! $below_header_enabled ) {
return;
}
add_filter( 'astra_enable_mobile_menu_buttons', '__return_true' );
// Add markup.
astra_get_template( 'header-sections/template/' . esc_attr( $below_header_layout ) . '.php' );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |