Astra_Ext_Header_Sections_Markup::add_options_markup( array $meta )

Below Header Meta Field markup


Description

Loads appropriate template file based on the style option selected in options panel.


Parameters

$meta

(array) (Required) Page Meta.


Source

File: addons/header-sections/classes/class-astra-ext-header-sections-markup.php

		public function add_options_markup( $meta ) {

			// Above Header.
			$above_header        = ( isset( $meta['ast-above-header-display']['default'] ) ) ? $meta['ast-above-header-display']['default'] : 'default';
			$above_header_layout = astra_get_option( 'above-header-layout' );
			$show_meta_field     = ! astra_check_is_bb_themer_layout();

			if ( $show_meta_field && 'disabled' != $above_header_layout ) {
				?>
			<div class="ast-above-header-display-option-wrap">
				<input type="checkbox" id="ast-above-header-display" name="ast-above-header-display" value="disabled" <?php checked( $above_header, 'disabled' ); ?> />
				<label for="ast-above-header-display"><?php esc_html_e( 'Disable Above Header', 'astra-addon' ); ?></label> <br />
			</div>
				<?php
			}

			// Below Header.
			$below_header_layout = astra_get_option( 'below-header-layout' );
			if ( $show_meta_field && 'disabled' != $below_header_layout ) {
				$below_header = ( isset( $meta['ast-below-header-display']['default'] ) ) ? $meta['ast-below-header-display']['default'] : 'default';
				?>
			<div class="ast-below-header-display-option-wrap">
				<input type="checkbox" id="ast-below-header-display" name="ast-below-header-display" value="disabled" <?php checked( $below_header, 'disabled' ); ?> />
				<label for="ast-below-header-display"><?php esc_html_e( 'Disable Below Header', 'astra-addon' ); ?></label> <br />
			</div>
				<?php
			}
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.