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 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 All 212 releases
← All changes | templates/campaign/summary.php +39 -12 1.6.8 → 1.8.13 View file →
@@ -1,34 +1,61 @@
1 1 <?php
2 +
3 +// Exit if accessed directly.
4 +if ( ! defined( 'ABSPATH' ) ) {
5 + exit;
6 +}
7 +
2 8 /**
3 9 * Displays the campaign summary.
4 10 *
5 11 * Override this template by copying it to yourtheme/charitable/campaign/summary.php
6 12 *
7 - * @author Studio 164a
13 + * @author WP Charitable LLC
14 + * @package Charitable/Templates/Campaign Page
8 15 * @since 1.0.0
16 + * @version 1.0.0
17 + * @version 1.8.8.6
9 18 */
10 19
11 -$campaign = $view_args['campaign'];
20 +$charitable_campaign = $view_args['campaign'];
12 21
13 22 /**
14 - * @hook charitable_campaign_summary_before
23 + * Do something before the campaign summary is rendered.
24 + *
25 + * @since 1.0.0
26 + *
27 + * @param Charitable_Campaign $campaign The Campaign instance.
15 28 */
16 -do_action( 'charitable_campaign_summary_before', $campaign );
29 +do_action( 'charitable_campaign_summary_before', $charitable_campaign );
17 30
18 31 ?>
19 -<div class="campaign-summary">
32 +<div class="campaign-summary">
20 33 <?php
21 -
22 34 /**
23 - * @hook charitable_campaign_summary
35 + * Do something while the campaign summary is rendered.
36 + *
37 + * By default, the following callbacks are run on the
38 + * `charitable_campaign_summary` hook:
39 + *
40 + * - charitable_template_campaign_percentage_raised (priority: 4)
41 + * - charitable_template_campaign_donation_summary (priority: 6)
42 + * - charitable_template_campaign_donor_count (priority: 8)
43 + * - charitable_template_campaign_time_left (priority: 10)
44 + * - charitable_template_donate_button (priority: 12)
45 + *
46 + * @since 1.0.0
47 + *
48 + * @param Charitable_Campaign $campaign The Campaign instance.
24 49 */
25 - do_action( 'charitable_campaign_summary', $campaign );
26 -
50 + do_action( 'charitable_campaign_summary', $charitable_campaign );
27 51 ?>
28 52 </div>
29 53 <?php
30 -
31 54 /**
32 - * @hook charitable_campaign_summary_after
55 + * Do something after the campaign summary is rendered.
56 + *
57 + * @since 1.0.0
58 + *
59 + * @param Charitable_Campaign $campaign The Campaign instance.
33 60 */
34 -do_action( 'charitable_campaign_summary_after', $campaign );
61 +do_action( 'charitable_campaign_summary_after', $charitable_campaign );