PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.73
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.73
1.2.73 1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 All 173 releases
userswp / templates / bootstrap / search-form.php

search-form.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.2.73, at templates/bootstrap/search-form.php

40 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $keyword = "";
3 if ( isset( $_GET['uwps'] ) && $_GET['uwps'] != '' ) {
4 $keyword = esc_attr( apply_filters( 'get_search_query', $_GET['uwps'] ) );
5 }
6
7 ?>
8 <form class="uwp-user-search-form d-flex flex-row flex-wrap align-items-start" method="get" action="<?php echo esc_attr( uwp_get_page_link( 'users_page' ) ); ?>">
9 <div class="form-group mb-2 mr-md-2">
10 <label for="uwp-search-input" class="sr-only"><?php esc_html_e( 'Search for users...', 'userswp' ); ?></label>
11 <?php
12 echo aui()->input( array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
13 'type' => 'search',
14 'id' => 'uwp-search-input',
15 'name' => 'uwps',
16 'class' => 'form-control-sm',
17 'value' => esc_attr( $keyword ),
18 'label' => esc_html__( 'Search for users...', 'userswp' ),
19 'placeholder' => esc_html__( 'Search for users...', 'userswp' ),
20 ) );
21 ?>
22 </div>
23 <?php if ( ! empty( $_GET['uwp_sort_by'] ) ) {
24
25 echo aui()->input( array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
26 'type' => 'hidden',
27 'name' => 'uwp_sort_by',
28 'value' => esc_attr__( $_GET['uwp_sort_by'] ),
29 ) );
30 }
31
32 echo aui()->button( array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
33 'type' => 'submit ',
34 'href' => esc_url( uwp_get_login_page_url() ),
35 'class' => 'btn btn-sm btn-outline-primary mb-2 uwp-search-submit',
36 'content' => esc_html__( 'Search', 'userswp' ),
37 ) );
38
39 do_action( 'uwp_after_search_button' ); ?>
40 </form>