HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: //home/salamatk/.trash/woodmart1/inc/integrations/gutenberg/src/blocks/ajax-search/render.php
<?php
if ( ! function_exists( 'wd_gutenberg_ajax_search' ) ) {
	function wd_gutenberg_ajax_search( $block_attributes ) {
		$el_class  = wd_get_gutenberg_element_classes( $block_attributes );
		$el_class .= $block_attributes['woodmart_color_scheme'] ? ' wd-color-' . $block_attributes['woodmart_color_scheme'] : '';

		ob_start();

		woodmart_search_form(
			array(
				'ajax'                   => true,
				'post_type'              => $block_attributes['search_post_type'],
				'count'                  => $block_attributes['number'],
				'thumbnail'              => $block_attributes['thumbnail'],
				'price'                  => $block_attributes['price'],
				'show_categories'        => $block_attributes['category'],
				'search_style'           => $block_attributes['form_style'],
				'cat_selector_style'     => $block_attributes['cat_selector_style'],
				'wrapper_custom_classes' => $el_class,
				'el_id'                  => wd_get_gutenberg_element_id( $block_attributes ),
			)
		);

		return ob_get_clean();
	}
}