| 1 |
|
| 2 |
<?php |
| 3 |
/** |
| 4 |
* The template used to display the forgot password form. Provided here 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/forgot-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 |
// Exit if accessed directly. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* @var Charitable_Forgot_Password_Form |
| 21 |
*/ |
| 22 |
$form = $view_args['form']; |
| 23 |
|
| 24 |
?> |
| 25 |
<div class="charitable-forgot-password-form"> |
| 26 |
<?php |
| 27 |
/** |
| 28 |
* @hook charitable_forgot_password_before |
| 29 |
*/ |
| 30 |
do_action( 'charitable_forgot_password_before' ); |
| 31 |
|
| 32 |
?> |
| 33 |
<form id="lostpasswordform" class="charitable-form" method="post"> |
| 34 |
|
| 35 |
<?php do_action( 'charitable_form_before_fields', $form ); ?> |
| 36 |
|
| 37 |
<div class="charitable-form-fields cf"> |
| 38 |
<?php $form->view()->render() ?> |
| 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"> |
| 44 |
<button class="button button-primary lostpassword-button" type="submit"><?php esc_attr_e( 'Reset Password', 'charitable' ) ?></button> |
| 45 |
</div> |
| 46 |
|
| 47 |
</form> |
| 48 |
<?php |
| 49 |
|
| 50 |
/** |
| 51 |
* @hook charitable_forgot_password_after |
| 52 |
*/ |
| 53 |
do_action( 'charitable_forgot_password_after' ); |
| 54 |
?> |
| 55 |
</div> |
| 56 |
|