File "storebiz.php"
Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/ajax-search-for-woocommerce/partials/themes/storebiz.php
File size: 700 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
// Exit if accessed directly
if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
exit;
}
add_action( 'wp_head', function () { ?>
<style>
.header-search-form {
display: none;
}
.dgwt-wcas-search-wrapp {
max-width: 100%;
}
</style>
<?php
} );
add_action( 'wp_footer', function () {
echo '<div id="wcas-theme-search" style="display: block;">' . do_shortcode( '[fibosearch layout="classic"]' ) . '</div>';
?>
<script>
wcasThemeSearch = document.querySelector('.header-search-form');
if (wcasThemeSearch !== null) {
wcasThemeSearch.replaceWith(document.querySelector('#wcas-theme-search > div'));
}
document.querySelector('#wcas-theme-search').remove();
</script>
<?php
} );