| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/www/wp-content/themes/woodmart/header-elements/ |
Upload File : |
<?php
/**
* The search form template.
*
* @package woodmart
*/
woodmart_enqueue_inline_style( 'header-search' );
if ( in_array( $params['display'], array( 'form', 'dropdown' ), true ) && ! empty( $params['bg_overlay'] ) ) {
woodmart_enqueue_js_script( 'menu-overlay' );
}
if (
'form' === $params['display'] ||
(
'full-screen' === $params['display'] &&
! empty( $params['full_screen_opener'] ) &&
'form' === $params['full_screen_opener']
) ||
(
'full-screen-2' === $params['display'] &&
(
empty( $params['full_screen_opener'] ) ||
'form' === $params['full_screen_opener']
)
)
) {
woodmart_enqueue_inline_style( 'header-search-form' );
woodmart_search_form( $params );
return;
}
if ( '8' === $params['icon_design'] ) {
woodmart_enqueue_inline_style( 'mod-tools-design-8' );
}
?>
<div class="wd-header-search wd-tools-element<?php echo esc_attr( $params['extra_class'] ); ?>" title="<?php echo esc_attr__( 'Search', 'woodmart' ); ?>">
<a href="#" rel="nofollow" aria-label="<?php esc_attr_e( 'Search', 'woodmart' ); ?>">
<?php if ( $params['icon_wrapper'] ) : ?>
<span class="wd-tools-inner">
<?php endif; ?>
<?php if ( 'text-only' !== $params['style'] ) : ?>
<span class="wd-tools-icon">
<?php if ( 'custom' === $params['icon_type'] ) : ?>
<?php echo whb_get_custom_icon( $params['custom_icon'] ); // phpcs:ignore. ?>
<?php endif; ?>
</span>
<?php endif; ?>
<?php if ( 'icon' !== $params['style'] ) : ?>
<span class="wd-tools-text">
<?php echo esc_html__( 'Search', 'woodmart' ); ?>
</span>
<?php endif; ?>
<?php if ( $params['icon_wrapper'] ) : ?>
</span>
<?php endif; ?>
</a>
<?php woodmart_search_form( $params ); ?>
</div>