PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
charitable / templates / account / reset-password.php

reset-password.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at templates/account/reset-password.php

75 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The template used to display the reset password form. Provided here
4 * primarily as a way to make it easier to override using theme templates.
5 *
6 * Override this template by copying it to yourtheme/charitable/account/reset-password.php
7 *
8 * @author Rafe Colton
9 * @package Charitable/Templates/Account
10 * @since 1.4.0
11 * @version 1.5.0
12 * @version 1.8.8.6
13 */
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit; } // Exit if accessed directly
17
18 /**
19 * Reset password form.
20 *
21 * @var Charitable_Reset_Password_Form
22 */
23 $charitable_form = $view_args['form'];
24
25 ?>
26 <div class="charitable-reset-password-form">
27 <?php
28 if ( $charitable_form->has_key() ) :
29
30 /**
31 * @hook charitable_reset_password_before
32 */
33 do_action( 'charitable_reset_password_before' );
34
35 ?>
36 <form id="resetpassform" class="charitable-form" method="post" autocomplete="off">
37
38 <?php do_action( 'charitable_form_before_fields', $charitable_form ); ?>
39
40 <div class="charitable-form-fields cf">
41 <?php $charitable_form->view()->render(); ?>
42 <p class="description"><?php echo wp_get_password_hint(); // phpcs:ignore ?></p>
43 </div><!-- .charitable-form-fields -->
44
45 <?php do_action( 'charitable_form_after_fields', $charitable_form ); ?>
46
47 <div class="charitable-form-field charitable-submit-field resetpass-submit">
48 <button id="resetpass-button" class="button button-primary lostpassword-button" type="submit"><?php esc_html_e( 'Reset Password', 'charitable' ); ?></button>
49 </div>
50 </form>
51 <?php
52
53 /**
54 * @hook charitable_reset_password_after
55 */
56 do_action( 'charitable_reset_password_after' );
57
58 else :
59
60 $errors = charitable_get_notices()->get_errors(); // phpcs:ignore
61
62 if ( ! empty( $errors ) ) {
63 charitable_template(
64 'form-fields/errors.php',
65 array(
66 'errors' => $errors,
67 )
68 );
69 }
70
71 endif;
72
73 ?>
74 </div><!-- .charitable-reset-password-form -->
75