Astra_Ext_Adv_Search_Markup::below_header_cover_search()

Below Header Cover Search


Description


Return

(void)


Source

File: addons/advanced-search/classes/class-astra-ext-adv-search-markup.php

		public function below_header_cover_search() {

			$header_cover = false;
			$layout       = astra_get_option( 'below-header-layout' );

			$section_1_search_box       = astra_get_option( 'below-header-section-1' );
			$section_1_search_box_style = astra_get_option( 'below-header-section-1-search-box-type' );

			if ( 'below-header-layout-1' == $layout ) {
				$section_2_search_box       = astra_get_option( 'below-header-section-2' );
				$section_2_search_box_style = astra_get_option( 'below-header-section-2-search-box-type' );

				if ( ! $header_cover && 'search' == $section_2_search_box ) {
					if ( 'header-cover' == $section_2_search_box_style ) {
						$header_cover = true;
					}
				}
			}

			if ( 'search' == $section_1_search_box ) {
				if ( 'header-cover' == $section_1_search_box_style ) {
					$header_cover = true;
				}
			}

			if ( $header_cover ) {
				$this->get_search_form( 'header-cover', true );
			}
		}

Changelog

Changelog
Version Description
1.4.8 Introduced.


User Contributed Notes

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