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
← All changes | templates/shortcodes/registration.php +7 -6 1.7.0.11 → 1.8.13 View file →
@@ -5,8 +5,9 @@
5 5 * @author WP Charitable LLC
6 6 * @package Charitable/Templates/Account
7 7 * @since 1.0.0
8 8 * @version 1.6.29
9 + * @version 1.8.8.6
9 10 */
10 11
11 12 // Exit if accessed directly.
12 13 if ( ! defined( 'ABSPATH' ) ) {
@@ -12,9 +13,9 @@
12 13 if ( ! defined( 'ABSPATH' ) ) {
13 14 exit;
14 15 }
15 16
16 -$form = $view_args['form'];
17 +$charitable_form = $view_args['form'];
17 18
18 19 /**
19 20 * Do something before rendering the user registration form.
20 21 *
@@ -20,9 +21,9 @@
20 21 *
21 22 * @param Charitable_Form $form The form object.
22 23 * @param array $view_args All args passed to template.
23 24 */
24 -do_action( 'charitable_user_registration_before', $form, $view_args );
25 +do_action( 'charitable_user_registration_before', $charitable_form, $view_args );
25 26
26 27 ?>
27 28 <form method="post" id="charitable-registration-form" class="charitable-form">
28 29 <?php
@@ -33,13 +34,13 @@
33 34 *
34 35 * @param Charitable_Form $form The form object.
35 36 * @param array $view_args All args passed to template.
36 37 */
37 - do_action( 'charitable_form_before_fields', $form, $view_args );
38 + do_action( 'charitable_form_before_fields', $charitable_form, $view_args );
38 39
39 40 ?>
40 41 <div class="charitable-form-fields cf">
41 - <?php $form->view()->render(); ?>
42 + <?php $charitable_form->view()->render(); ?>
42 43 </div><!-- .charitable-form-fields -->
43 44 <?php
44 45
45 46 /**
@@ -49,9 +50,9 @@
49 50 *
50 51 * @param Charitable_Form $form The form object.
51 52 * @param array $view_args All args passed to template.
52 53 */
53 - do_action( 'charitable_form_after_fields', $form, $view_args );
54 + do_action( 'charitable_form_after_fields', $charitable_form, $view_args );
54 55
55 56 ?>
56 57 <div class="charitable-form-field charitable-submit-field">
57 58 <button class="<?php echo esc_attr( charitable_get_button_class( 'registration' ) ); ?>" type="submit" name="register"><?php esc_attr_e( 'Register', 'charitable' ); ?></button>
@@ -64,5 +65,5 @@
64 65 *
65 66 * @param Charitable_Form $form The form object.
66 67 * @param array $view_args All args passed to template.
67 68 */
68 -do_action( 'charitable_user_registration_after', $form, $view_args );
69 +do_action( 'charitable_user_registration_after', $charitable_form, $view_args );