PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.0
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.0
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 / registration.php

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

69 lines 1.8 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 */
10
11 // Exit if accessed directly.
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 $form = $view_args['form'];
17
18 /**
19 * Do something before rendering the user registration form.
20 *
21 * @param Charitable_Form $form The form object.
22 * @param array $view_args All args passed to template.
23 */
24 do_action( 'charitable_user_registration_before', $form, $view_args );
25
26 ?>
27 <form method="post" id="charitable-registration-form" class="charitable-form">
28 <?php
29 /**
30 * Do something before rendering the form fields.
31 *
32 * @since 1.0.0
33 *
34 * @param Charitable_Form $form The form object.
35 * @param array $view_args All args passed to template.
36 */
37 do_action( 'charitable_form_before_fields', $form, $view_args );
38
39 ?>
40 <div class="charitable-form-fields cf">
41 <?php $form->view()->render(); ?>
42 </div><!-- .charitable-form-fields -->
43 <?php
44
45 /**
46 * Do something after rendering the form fields.
47 *
48 * @since 1.0.0
49 *
50 * @param Charitable_Form $form The form object.
51 * @param array $view_args All args passed to template.
52 */
53 do_action( 'charitable_form_after_fields', $form, $view_args );
54
55 ?>
56 <div class="charitable-form-field charitable-submit-field">
57 <button class="<?php echo esc_attr( charitable_get_button_class( 'registration' ) ); ?>" type="submit" name="register"><?php esc_attr_e( 'Register', 'charitable' ); ?></button>
58 </div>
59 </form><!-- #charitable-registration-form -->
60 <?php
61
62 /**
63 * Do something after rendering the user registration form.
64 *
65 * @param Charitable_Form $form The form object.
66 * @param array $view_args All args passed to template.
67 */
68 do_action( 'charitable_user_registration_after', $form, $view_args );
69