| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template used to display the forgot password form. Provided here primarily as a way to make it easier to override using theme templates. |
| 4 |
* |
| 5 |
* @author Rafe Colton |
| 6 |
* @package Charitable/Templates/Account |
| 7 |
* @since 1.4.0 |
| 8 |
* @version 1.6.29 |
| 9 |
* @version 1.8.8.6 |
| 10 |
*/ |
| 11 |
|
| 12 |
// Exit if accessed directly. |
| 13 |
if ( ! defined( 'ABSPATH' ) ) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
$charitable_form = $view_args['form']; |
| 18 |
|
| 19 |
?> |
| 20 |
<div class="charitable-forgot-password-form"> |
| 21 |
<?php |
| 22 |
/** |
| 23 |
* Do something before the forgot password form. |
| 24 |
* |
| 25 |
* @since 1.4.0 |
| 26 |
* |
| 27 |
* @param array $view_args Shortcode attributes. |
| 28 |
*/ |
| 29 |
do_action( 'charitable_forgot_password_before', $view_args ); |
| 30 |
|
| 31 |
?> |
| 32 |
<form id="lostpasswordform" class="charitable-form" action="<?php echo esc_url( wp_lostpassword_url() ); ?>" method="post"> |
| 33 |
<?php |
| 34 |
/** |
| 35 |
* Do something before rendering the form fields. |
| 36 |
* |
| 37 |
* @since 1.4.0 |
| 38 |
* |
| 39 |
* @param Charitable_Form $form The form object. |
| 40 |
* @param array $view_args All args passed to template. |
| 41 |
*/ |
| 42 |
do_action( 'charitable_form_before_fields', $charitable_form, $view_args ); |
| 43 |
|
| 44 |
?> |
| 45 |
<div class="charitable-form-fields cf"> |
| 46 |
<?php $charitable_form->view()->render(); ?> |
| 47 |
</div><!-- .charitable-form-fields --> |
| 48 |
<?php |
| 49 |
/** |
| 50 |
* Do something after rendering the form fields. |
| 51 |
* |
| 52 |
* @since 1.4.0 |
| 53 |
* |
| 54 |
* @param Charitable_Form $form The form object. |
| 55 |
* @param array $view_args All args passed to template. |
| 56 |
*/ |
| 57 |
do_action( 'charitable_form_after_fields', $charitable_form, $view_args ); |
| 58 |
|
| 59 |
?> |
| 60 |
<div class="charitable-form-field charitable-submit-field"> |
| 61 |
<input type="submit" name="submit" class="<?php echo esc_attr( charitable_get_button_class( 'lostpassword' ) ); ?>" value="<?php esc_attr_e( 'Reset Password', 'charitable' ); ?>" /> |
| 62 |
</div> |
| 63 |
|
| 64 |
</form><!-- #lostpasswordform --> |
| 65 |
<?php |
| 66 |
/** |
| 67 |
* Do something after the forgot password form. |
| 68 |
* |
| 69 |
* @since 1.4.0 |
| 70 |
* |
| 71 |
* @param array $view_args Shortcode attributes. |
| 72 |
*/ |
| 73 |
do_action( 'charitable_forgot_password_after', $view_args ); |
| 74 |
|
| 75 |
?> |
| 76 |
</div> |
| 77 |
|