Reorder search form attributes

This commit is contained in:
IanDelMar 2021-07-24 17:07:41 +02:00
parent 9c4dc32559
commit a2bc32ad80
1 changed files with 4 additions and 4 deletions

View File

@ -16,13 +16,13 @@ if ( isset( $args['aria_label'] ) && ! empty( $args['aria_label'] ) ) {
}
?>
<form method="get" class="search-form" id="<?php echo 'search-form' . $uid; ?>" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search" <?php echo $aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?>>
<form role="search" class="search-form" id="<?php echo 'search-form' . $uid; ?>" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo $aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?>>
<label class="sr-only" for="<?php echo 's' . $uid; ?>"><?php esc_html_e( 'Search', 'understrap' ); ?></label>
<div class="input-group">
<input class="field form-control" id="<?php echo 's' . $uid; ?>" name="s" type="text"
placeholder="<?php esc_attr_e( 'Search &hellip;', 'understrap' ); ?>" value="<?php the_search_query(); ?>">
<input type="text" class="field form-control" id="<?php echo 's' . $uid; ?>" name="s" value="<?php the_search_query(); ?>"
placeholder="<?php esc_attr_e( 'Search &hellip;', 'understrap' ); ?>">
<span class="input-group-append">
<input class="submit btn btn-primary" id="<?php echo 'search-submit' . $uid; ?>" name="submit" type="submit"
<input type="submit" class="submit btn btn-primary" id="<?php echo 'search-submit' . $uid; ?>" name="submit"
value="<?php esc_attr_e( 'Search', 'understrap' ); ?>">
</span>
</div>