HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/tokld.top/wp-content/themes/botiga/searchform.php
<?php
/**
 * The search form template
 * 
 * @package Botiga
 */

$botiga_unique_id    = wp_unique_id( 'search-form-' );
$botiga_aria_label   = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : '';

?>

<?php if ( !class_exists( 'WooCommerce' ) ) : ?>
<form role="search" <?php echo $botiga_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<?php 
	/**
	 * Hook 'botiga_searchform_before_form_content'
	 *
	 * @since 1.0.0
	 */
	do_action( 'botiga_searchform_before_form_content' ); ?>

	<label class="screen-reader-text" for="<?php echo esc_attr( $botiga_unique_id ); ?>"><?php _e( 'Search&hellip;', 'botiga' ); // phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction ?></label>
	<input type="search" id="<?php echo esc_attr( $botiga_unique_id ); ?>" class="search-field" value="<?php echo get_search_query(); ?>" name="s" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'botiga' ); ?>"/>
	<button type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'botiga' ); ?>" title="<?php esc_attr_e( 'Search for the product', 'botiga' ); ?>"><i class="ws-svg-icon"><?php echo botiga_get_header_search_form_icon(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- previously escaped ?></i></button>

	<?php 
	/**
	 * Hook 'botiga_searchform_after_form_content'
	 *
	 * @since 1.0.0
	 */
	do_action( 'botiga_searchform_after_form_content' ); ?>

	<?php 
	/**
	 * Hook 'botiga_searchform_before_close_form'
	 *
	 * @since 1.0.0
	 */
	do_action( 'botiga_searchform_before_close_form' ); ?>
</form>
<?php else : ?>
<form role="search" method="get" class="woocommerce-product-search" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<?php 
	/**
	 * Hook 'botiga_searchform_before_form_content'
	 *
	 * @since 1.0.0
	 */
	do_action( 'botiga_searchform_before_form_content' ); ?>

	<label class="screen-reader-text" for="woocommerce-product-search-field-<?php echo isset( $botiga_unique_id ) ? esc_attr( $botiga_unique_id ) : 0; ?>"><?php esc_html_e( 'Search for:', 'botiga' ); ?></label>
	<input type="search" id="woocommerce-product-search-field-<?php echo isset( $botiga_unique_id ) ? esc_attr( $botiga_unique_id ) : 0; ?>" class="search-field wc-search-field" placeholder="<?php echo esc_attr__( 'Search products&hellip;', 'botiga' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
	<button type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'botiga' ); ?>" title="<?php esc_attr_e( 'Search for the product', 'botiga' ); ?>"><i class="ws-svg-icon"><?php echo botiga_get_header_search_form_icon(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- previously escaped ?></i></button>
	<input type="hidden" name="post_type" value="product" />

	<?php 
	/**
	 * Hook 'botiga_searchform_after_form_content'
	 *
	 * @since 1.0.0
	 */
	do_action( 'botiga_searchform_after_form_content' ); ?>
	
	<?php 
	/**
	 * Hook 'botiga_shop_searchform_before_close_form'
	 *
	 * @since 1.0.0
	 */
	do_action( 'botiga_shop_searchform_before_close_form' ); ?>
</form>
<?php endif; ?>