| Server IP : / Your IP : 216.73.216.198 Web Server : nginx/1.31.3 System : Linux dcde39c899c5 6.12.95+deb13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.95-1 (2026-07-04) x86_64 User : www-data ( 1000) PHP Version : 8.4.15 Disable Function : phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/yuki/ |
Upload File : |
<?php
/**
* Template for displaying search forms
*
* @package Yuki
*/
$uniqid = uniqid( 'search-form-' );
$aria_label = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : '';
$placeholder = $args['placeholder'] ?? __( 'Search', 'yuki' );
// Backward compatibility, in case a child theme template uses a `label` argument.
if ( empty( $aria_label ) && ! empty( $args['label'] ) ) {
$aria_label = 'aria-label="' . esc_attr( $args['label'] ) . '"';
}
?>
<form role="search" <?php echo esc_attr( $aria_label ); ?> method="get"
action="<?php echo esc_url( home_url( '/' ) ); ?>"
class="search-form"
>
<div class="relative">
<label class="flex items-center flex-grow mb-0" for="<?php echo esc_attr( $uniqid ); ?>">
<span class="screen-reader-text"><?php _e( 'Search for:', 'yuki' ); ?></span>
<input type="search" id="<?php echo esc_attr( $uniqid ); ?>"
placeholder="<?php echo esc_attr( $placeholder ) ?>"
value="<?php echo get_search_query(); ?>" name="s"
class="search-input"
/>
<?php if ( ! isset( $args['disable_submit'] ) ): ?>
<button type="submit" class="search-submit">
<i class="fas fa-search"></i>
</button>
<?php endif; ?>
</label>
</div>
</form>