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 / content-donation-form.php

content-donation-form.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at templates/content-donation-form.php

57 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 * Displays the campaign donation form.
4 *
5 * Override this template by copying it to yourtheme/charitable/content-donation-form.php
6 *
7 * @author WP Charitable LLC
8 * @package Charitable/Templates/Campaign
9 * @since 1.0.0
10 * @version 1.0.0
11 * @version 1.8.8.6
12 */
13
14 // Exit if accessed directly.
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 /**
20 * The donation form object used for donations to this campaign. By
21 * default, this will be a Charitable_Donation_Form object, but
22 * extensions are able to define their own donation form models to use
23 * instead.
24 *
25 * @var Charitable_Donation_Form_Interface
26 */
27 $charitable_form = charitable_get_current_donation_form();
28
29 if ( ! $charitable_form ) {
30 return;
31 }
32
33 /**
34 * Add something before the donation form.
35 *
36 * @hook charitable_donation_form_before
37 *
38 * @param Charitable_Donation_Form_Interface $form The donation form object.
39 */
40 do_action( 'charitable_donation_form_before', $charitable_form );
41
42 /**
43 * Render the donation form.
44 *
45 * @param Charitable_Donation_Form_Interface $form The donation form object.
46 */
47 $charitable_form->render();
48
49 /**
50 * Add something after the donation form.
51 *
52 * @hook charitable_donation_form_after
53 *
54 * @param Charitable_Donation_Form_Interface $form The donation form object.
55 */
56 do_action( 'charitable_donation_form_after', $charitable_form );
57