Astra_Ext_Adv_Search_Markup::top_header_cover_search()

Top Header Cover Search


Description


Return

(void)


Source

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

		public function top_header_cover_search() {

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

			$left_search_box       = astra_get_option( 'above-header-section-1' );
			$left_search_box_style = astra_get_option( 'above-header-section-1-search-box-type' );

			if ( 'search' == $left_search_box && 'header-cover' == $left_search_box_style ) {
				$header_cover = true;
			}

			if ( 'above-header-layout-1' == $top_layout ) {

				$right_search_box       = astra_get_option( 'above-header-section-2' );
				$right_search_box_style = astra_get_option( 'above-header-section-2-search-box-type' );

				if ( 'search' == $right_search_box && 'header-cover' == $right_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.