PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.3.2
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.3.2
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 1.8.0 All 210 releases
charitable / templates / shortcodes / profile.php

profile.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.3.2, at templates/shortcodes/profile.php

63 lines 1.3 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 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 = new Charitable_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_user_profile_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 esc_attr_e( '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');