Astra_Ext_Adv_Search_Markup::__construct()

Constructor


Description


Source

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

		public function __construct() {
			add_action( 'astra_get_css_files', array( $this, 'add_styles' ) );
			add_action( 'astra_get_js_files', array( $this, 'add_scripts' ) );

			add_filter( 'astra_addon_js_localize', array( $this, 'localize_variables' ) );

			add_action( 'astra_footer_after', array( $this, 'full_screen_search_markup' ) );
			add_filter( 'astra_get_search', array( $this, 'get_search_markup' ), 10, 3 );

			/**
			 * Compatibility with Default Astra & Astra Header Builder > Search.
			 */
			if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) {
				add_action( 'astra_main_header_bar_top', array( $this, 'header_builder_cover_search' ) );
				add_action( 'astra_mobile_header_bar_top', array( $this, 'header_builder_cover_search' ) );

				add_filter( 'astra_default_strings', array( $this, 'header_builder_default_strings' ), 10 );
				add_filter( 'astra_search_field_placeholder', array( $this, 'header_builder_default_search_string' ), 10 );

			} else {
				add_action( 'astra_main_header_bar_top', array( $this, 'main_header_cover_search' ) );
				add_action( 'astra_above_header_top', array( $this, 'top_header_cover_search' ) );
				add_action( 'astra_below_header_top', array( $this, 'below_header_cover_search' ) );
			}
		}

Changelog

Changelog
Version Description
1.4.8 Introduced.


User Contributed Notes

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