PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.7.0.11
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.7.0.11
1.8.13.1 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 All 212 releases
charitable / templates / account / reset-password.php

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

68 lines 1.7 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 */
13
14 if ( ! defined( 'ABSPATH' ) ) {exit; } // Exit if accessed directly
15
16 /**
17 * @var Charitable_Reset_Password_Form
18 */
19 $form = $view_args['form'];
20
21 ?>
22 <div class="charitable-reset-password-form">
23 <?php
24 if ( $form->has_key() ) :
25
26 /**
27 * @hook charitable_reset_password_before
28 */
29 do_action( 'charitable_reset_password_before' );
30
31 ?>
32 <form id="resetpassform" class="charitable-form" method="post" autocomplete="off">
33
34 <?php do_action( 'charitable_form_before_fields', $form ); ?>
35
36 <div class="charitable-form-fields cf">
37 <?php $form->view()->render() ?>
38 <p class="description"><?php echo wp_get_password_hint() ?></p>
39 </div><!-- .charitable-form-fields -->
40
41 <?php do_action( 'charitable_form_after_fields', $form ); ?>
42
43 <div class="charitable-form-field charitable-submit-field resetpass-submit">
44 <button id="resetpass-button" class="button button-primary lostpassword-button" type="submit"><?php _e( 'Reset Password', 'charitable' ) ?></button>
45 </div>
46 </form>
47 <?php
48
49 /**
50 * @hook charitable_reset_password_after
51 */
52 do_action( 'charitable_reset_password_after' );
53
54 else :
55
56 $errors = charitable_get_notices()->get_errors();
57
58 if ( ! empty( $errors ) ) {
59 charitable_template( 'form-fields/errors.php', array(
60 'errors' => $errors,
61 ) );
62 }
63
64 endif;
65
66 ?>
67 </div><!-- .charitable-reset-password-form -->
68