PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.11
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.11
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 / login.php

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

107 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Login template (default)
4 *
5 * @ver 1.0.1
6 */
7
8 global $aui_bs5;
9
10 $css_class = !empty($args['css_class']) ? esc_attr( $args['css_class'] ) : 'border-0';
11 $form_title = ! empty( $args['form_title'] ) || $args['form_title']=='0' ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Login', 'userswp' );
12 $form_title = apply_filters( 'uwp_template_form_title', $form_title, 'login' );
13 do_action( 'uwp_template_before', 'login', $args ); ?>
14 <div class="row">
15 <div class="card mx-auto container-fluid p-0 <?php echo esc_attr( $css_class ); ?>" >
16 <?php
17 // ajax modal
18 if(wp_doing_ajax() && $form_title != '0'){
19 ?>
20 <div class="modal-header">
21 <h5 class="modal-title"><?php echo esc_attr($form_title);?></h5>
22 <?php
23 echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
24 'type' => 'button',
25 'class' => 'close',
26 'content' => ' <span aria-hidden="true">&times;</span>',
27 'extra_attributes' => array('aria-label'=>esc_html__("Close","userswp"), 'data-' . ( $aui_bs5 ? 'bs-' : '' ) . 'dismiss'=>"modal")
28 ));
29 ?>
30 </div>
31 <?php
32 }
33 ?>
34 <div class="card-body">
35 <?php do_action( 'uwp_template_form_title_before', 'login', $args );
36
37 if ( !wp_doing_ajax() && $form_title != '0' ) {
38 echo '<h3 class="card-title text-center mb-4">';
39 echo esc_attr($form_title);
40 echo '</h3>';
41 }
42
43 do_action( 'uwp_template_display_notices', 'login', $args );
44 ?>
45 <form class="uwp-login-form uwp_form" method="post">
46
47 <?php do_action( 'uwp_template_fields', 'login', $args ); ?>
48
49 <div class="uwp-remember-me custom-checkbox mb-3">
50 <?php
51 $id = 'remember_me';
52 if(wp_doing_ajax()){$id.='_ajax';}
53
54 echo aui()->input(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
55 'type' => 'checkbox',
56 'id' => esc_html( $id ),
57 'name' => 'remember_me',
58 'value' => 'forever',
59 'label' => esc_html__( 'Remember Me', 'userswp' ),
60 ));
61 ?>
62 </div>
63
64 <?php
65 echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
66 'type' => 'submit',
67 'class' => 'btn btn-primary btn-block text-uppercase uwp_login_submit',
68 'content' => esc_html__( 'Login', 'userswp' ),
69 'name' => 'uwp_login_submit',
70 ));
71 ?>
72
73 </form>
74
75 <div class="uwp-footer-links">
76 <div class="uwp-footer-link d-inline-block">
77 <?php
78 echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
79 'type' => 'a',
80 'href' => esc_url( uwp_get_register_page_url() ),
81 'class' => 'd-block text-center mt-2 small uwp-register-link',
82 'content' => esc_attr( uwp_get_option("register_link_title") ? uwp_get_option("register_link_title") : __( 'Create account', 'userswp' ) ),
83 'extra_attributes' => array('rel'=>'nofollow')
84 ));
85 ?>
86 </div>
87 <div class="uwp-footer-link float-right">
88 <?php
89 echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
90 'type' => 'a',
91 'href' => esc_url( uwp_get_forgot_page_url() ),
92 'class' => 'd-block text-center mt-2 small uwp-forgot-password-link',
93 'content' => esc_attr( uwp_get_option("forgot_link_title") ? uwp_get_option("forgot_link_title") : __( 'Forgot password?', 'userswp' ) ),
94 'extra_attributes' => array('rel'=>'nofollow')
95 ));
96 ?>
97 </div>
98 </div>
99
100 <div class="form-group text-center mb-0 p-0">
101 <?php do_action( 'uwp_social_fields', 'login', $args ); ?>
102 </div>
103
104 </div>
105 </div>
106 </div>
107 <?php do_action( 'uwp_template_after', 'login', $args ); ?>