| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template used to display the profile form. |
| 4 |
* |
| 5 |
* @author Studio 164a |
| 6 |
* @package Charitable/Templates/Account |
| 7 |
* @since 1.0.0 |
| 8 |
* @version 1.3.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly |
| 12 |
|
| 13 |
$form = $view_args['form']; |
| 14 |
$donor = charitable_get_user( wp_get_current_user() ); |
| 15 |
|
| 16 |
/** |
| 17 |
* @hook charitable_user_profile_before |
| 18 |
*/ |
| 19 |
do_action( 'charitable_user_profile_before' ); |
| 20 |
|
| 21 |
?> |
| 22 |
<form method="post" id="charitable-profile-form" class="charitable-form" enctype="multipart/form-data"> |
| 23 |
<?php |
| 24 |
/** |
| 25 |
* @hook charitable_form_before_fields |
| 26 |
*/ |
| 27 |
do_action( 'charitable_form_before_fields', $form ) ?> |
| 28 |
|
| 29 |
<div class="charitable-form-fields cf"> |
| 30 |
|
| 31 |
<?php |
| 32 |
|
| 33 |
$i = 1; |
| 34 |
|
| 35 |
foreach ( $form->get_fields() as $key => $field ) : |
| 36 |
|
| 37 |
do_action( 'charitable_form_field', $field, $key, $form ); |
| 38 |
|
| 39 |
$i += apply_filters( 'charitable_form_field_increment', 1, $field, $key, $form, $i ); |
| 40 |
|
| 41 |
endforeach; |
| 42 |
|
| 43 |
?> |
| 44 |
|
| 45 |
</div> |
| 46 |
|
| 47 |
<?php |
| 48 |
/** |
| 49 |
* @hook charitable_form_after_fields |
| 50 |
*/ |
| 51 |
do_action( 'charitable_form_after_fields', $form ); |
| 52 |
|
| 53 |
?> |
| 54 |
<div class="charitable-form-field charitable-submit-field"> |
| 55 |
<button class="button button-primary" type="submit" name="update-profile"><?php echo apply_filters( 'charitable_profile_form_submit_button_name', __( 'Update', 'charitable' ) ); ?></button> |
| 56 |
</div> |
| 57 |
</form> |
| 58 |
<?php |
| 59 |
|
| 60 |
/** |
| 61 |
* @hook charitable_user_profile_after |
| 62 |
*/ |
| 63 |
do_action( 'charitable_user_profile_after' ); |
| 64 |
|