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 / registration.php

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

70 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 registration 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
19 /**
20 * Do something before rendering the user registration form.
21 *
22 * @param Charitable_Form $form The form object.
23 * @param array $view_args All args passed to template.
24 */
25 do_action( 'charitable_user_registration_before', $charitable_form, $view_args );
26
27 ?>
28 <form method="post" id="charitable-registration-form" class="charitable-form">
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( 'registration' ) ); ?>" type="submit" name="register"><?php esc_attr_e( 'Register', 'charitable' ); ?></button>
59 </div>
60 </form><!-- #charitable-registration-form -->
61 <?php
62
63 /**
64 * Do something after rendering the user registration form.
65 *
66 * @param Charitable_Form $form The form object.
67 * @param array $view_args All args passed to template.
68 */
69 do_action( 'charitable_user_registration_after', $charitable_form, $view_args );
70