PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.17.0
GiveWP – Donation Plugin and Fundraising Platform v2.17.0
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / templates / shortcode-register.php
shortcode-register.php
98 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This template is used to display the registration form with [give_register]
4 */
5 Give()->notices->render_frontend_notices( 0 ); ?>
6
7 <form id="give-register-form" class="give-form" action="" method="post">
8 <?php
9 /**
10 * Fires in the registration shortcode, to the form top.
11 *
12 * Allows you to add elements to the form top.
13 *
14 * @since 1.0
15 */
16 do_action( 'give_register_form_fields_top' );
17 ?>
18
19 <fieldset>
20 <legend><?php esc_html_e( 'Register a New Account', 'give' ); ?></legend>
21
22 <?php
23 /**
24 * Fires in the registration shortcode, before the registration fields.
25 *
26 * Allows you to add elements to the fieldset, before the fields.
27 *
28 * @since 1.0
29 */
30 do_action( 'give_register_form_fields_before' );
31 ?>
32
33 <div class="form-row form-row-first form-row-responsive">
34 <label for="give-user-login"><?php esc_html_e( 'Username', 'give' ); ?></label>
35 <input id="give-user-login" class="required give-input" type="text" name="give_user_login" required aria-required="true" />
36 </div>
37
38 <div class="form-row form-row-last form-row-responsive">
39 <label for="give-user-email"><?php esc_html_e( 'Email', 'give' ); ?></label>
40 <input id="give-user-email" class="required give-input" type="email" name="give_user_email" required aria-required="true" />
41 </div>
42
43 <div class="form-row form-row-first form-row-responsive">
44 <label for="give-user-pass"><?php esc_html_e( 'Password', 'give' ); ?></label>
45 <input id="give-user-pass" class="password required give-input" type="password" name="give_user_pass" required aria-required="true" />
46 </div>
47
48 <div class="form-row form-row-last form-row-responsive">
49 <label for="give-user-pass2"><?php esc_html_e( 'Confirm PW', 'give' ); ?></label>
50 <input id="give-user-pass2" class="password required give-input" type="password" name="give_user_pass2" required aria-required="true" />
51 </div>
52
53 <?php
54 /**
55 * Fires in the registration shortcode, before submit button.
56 *
57 * Allows you to add elements before submit button.
58 *
59 * @since 1.0
60 */
61 do_action( 'give_register_form_fields_before_submit' );
62 ?>
63
64 <div class="give-hidden">
65 <input type="hidden" name="give_honeypot" value="" />
66 <input type="hidden" name="give_action" value="user_register" />
67 <input type="hidden" name="give_redirect" value="<?php echo esc_url( $give_register_redirect ); ?>" />
68 </div>
69
70 <div class="form-row">
71 <input class="button" name="give_register_submit" type="submit" value="<?php esc_attr_e( 'Register', 'give' ); ?>" />
72 </div>
73
74 <?php
75 /**
76 * Fires in the registration shortcode, after the registration fields.
77 *
78 * Allows you to add elements to the fieldset, after the fields and the submit button.
79 *
80 * @since 1.0
81 */
82 do_action( 'give_register_form_fields_after' );
83 ?>
84
85 </fieldset>
86
87 <?php
88 /**
89 * Fires in the registration shortcode, to the form bottom.
90 *
91 * Allows you to add elements to the form bottom.
92 *
93 * @since 1.0
94 */
95 do_action( 'give_register_form_fields_bottom' );
96 ?>
97 </form>
98