| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Displays the campaign summary. |
| 10 |
* |
| 11 |
* Override this template by copying it to yourtheme/charitable/campaign/summary.php |
| 12 |
* |
| 13 |
* @author WP Charitable LLC |
| 14 |
* @package Charitable/Templates/Campaign Page |
| 15 |
* @since 1.0.0 |
| 16 |
* @version 1.0.0 |
| 17 |
* @version 1.8.8.6 |
| 18 |
*/ |
| 19 |
|
| 20 |
$charitable_campaign = $view_args['campaign']; |
| 21 |
|
| 22 |
/** |
| 23 |
* Do something before the campaign summary is rendered. |
| 24 |
* |
| 25 |
* @since 1.0.0 |
| 26 |
* |
| 27 |
* @param Charitable_Campaign $campaign The Campaign instance. |
| 28 |
*/ |
| 29 |
do_action( 'charitable_campaign_summary_before', $charitable_campaign ); |
| 30 |
|
| 31 |
?> |
| 32 |
<div class="campaign-summary"> |
| 33 |
<?php |
| 34 |
/** |
| 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. |
| 49 |
*/ |
| 50 |
do_action( 'charitable_campaign_summary', $charitable_campaign ); |
| 51 |
?> |
| 52 |
</div> |
| 53 |
<?php |
| 54 |
/** |
| 55 |
* Do something after the campaign summary is rendered. |
| 56 |
* |
| 57 |
* @since 1.0.0 |
| 58 |
* |
| 59 |
* @param Charitable_Campaign $campaign The Campaign instance. |
| 60 |
*/ |
| 61 |
do_action( 'charitable_campaign_summary_after', $charitable_campaign ); |
| 62 |
|