Astra_Ext_Adv_Search_Markup::get_search_form( string $style = 'slide-search', boolean $echo = false )

Search Form


Description


Parameters

$style

(string) (Optional) Search Form Style.

Default value: 'slide-search'

$echo

(boolean) (Optional) Print or return.

Default value: false


Return

(mixed)


Source

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

		public function get_search_form( $style = 'slide-search', $echo = false ) {
			$search_html = '';

			ob_start();
				astra_get_template( 'advanced-search/template/' . esc_attr( $style ) . '.php' );
			$search_html = ob_get_clean();

			if ( $echo ) {
				echo $search_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
			} else {
				return $search_html;
			}
		}

Changelog

Changelog
Version Description
1.4.8 Introduced.


User Contributed Notes

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