HEX
Server: Apache
System: Linux webm020.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: bohousj (181416)
PHP: 8.4.22
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/bohousj/www/wp-content/plugins/ajax-search-for-woocommerce/partials/themes/cartzilla.php
<?php
// Exit if accessed directly
if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
	exit;
}

add_filter( 'widget_display_callback', function ( $instance, $widget_obj, $args ) {
	if ( is_a( $widget_obj, 'WC_Widget_Product_Search' ) ) {
		echo do_shortcode( '[fibosearch]' );
	}

	return false;
}, 10, 3 );


add_action( 'wp_footer', function () {
	?>
	<script>
		(function ($) {
			$(window).on('load', function () {
				$('a[href="#searchBox"]').on('click', function (e) {
					setTimeout(function () {
						var $input = $('#searchBox .dgwt-wcas-search-input');
						if ($input.length > 0) {
							$input.trigger('focus');
						}
					}, 500);
				});
			});
		}(jQuery));
	</script>
	<?php
} );