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

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

68 lines 1.9 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 WP Charitable LLC
6 * @package Charitable/Templates/Account
7 * @since 1.0.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 $charitable_donor = charitable_get_user( wp_get_current_user() );
19
20 /**
21 * Do something before rendering the user profile form.
22 *
23 * @param array $view_args All args passed to template.
24 */
25 do_action( 'charitable_user_profile_before', $view_args );
26
27 ?>
28 <form method="post" id="charitable-profile-form" class="charitable-form" enctype="multipart/form-data">
29 <?php
30 /**
31 * Do something before rendering the form fields.
32 *
33 * @since 1.0.0
34 *
35 * @param Charitable_Form $form The form object.
36 * @param array $view_args All args passed to template.
37 */
38 do_action( 'charitable_form_before_fields', $charitable_form, $view_args );
39
40 ?>
41 <div class="charitable-form-fields cf">
42 <?php $charitable_form->view()->render() ?>
43 </div><!-- .charitable-form-fields -->
44 <?php
45
46 /**
47 * Do something after rendering the form fields.
48 *
49 * @since 1.0.0
50 *
51 * @param Charitable_Form $form The form object.
52 * @param array $view_args All args passed to template.
53 */
54 do_action( 'charitable_form_after_fields', $charitable_form, $view_args );
55
56 ?>
57 <div class="charitable-form-field charitable-submit-field">
58 <button class="<?php echo esc_attr( charitable_get_button_class( 'profile' ) ); ?>" type="submit" name="update-profile"><?php echo esc_html( apply_filters( 'charitable_profile_form_submit_button_name', __( 'Update', 'charitable' ) ) ); ?></button>
59 </div>
60 </form><!-- #charitable-profile-form -->
61 <?php
62 /**
63 * Do something after rendering the user profile form.
64 *
65 * @param array $view_args All args passed to template.
66 */
67 do_action( 'charitable_user_profile_after', $view_args );
68