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
← All changes | templates/campaign-loop/campaign.php +20 -11 1.6.60 → 1.8.13 View file →
@@ -3,12 +3,13 @@
3 3 * The template for displaying campaign content within loops.
4 4 *
5 5 * Override this template by copying it to yourtheme/charitable/campaign-loop/campaign.php
6 6 *
7 - * @author Studio 164a
7 + * @author WP Charitable LLC
8 8 * @package Charitable/Templates/Campaign
9 9 * @since 1.0.0
10 10 * @version 1.0.0
11 + * @version 1.8.8.6
11 12 */
12 13
13 14 // Exit if accessed directly.
14 15 if ( ! defined( 'ABSPATH' ) ) {
@@ -14,40 +15,48 @@
14 15 if ( ! defined( 'ABSPATH' ) ) {
15 16 exit;
16 17 }
17 18
18 -$campaign = charitable_get_current_campaign();
19 +$charitable_campaign = charitable_get_current_campaign();
19 20
20 21 ?>
21 -<li id="campaign-<?php echo get_the_ID() ?>" <?php post_class() ?>>
22 +<li id="campaign-<?php echo esc_attr( get_the_ID() ); ?>" <?php post_class(); ?>>
22 23 <?php
23 24 /**
25 + * Hook: Before campaign content loop.
26 + *
24 27 * @hook charitable_campaign_content_loop_before
25 28 */
26 - do_action( 'charitable_campaign_content_loop_before', $campaign, $view_args );
29 + do_action( 'charitable_campaign_content_loop_before', $charitable_campaign, $view_args );
27 30
28 - ?>
29 - <a href="<?php the_permalink() ?>">
31 +?>
32 + <a href="<?php the_permalink(); ?>">
30 33 <?php
31 34 /**
35 + * Hook: Before campaign content loop title.
36 + *
32 37 * @hook charitable_campaign_content_loop_before_title
33 38 */
34 - do_action( 'charitable_campaign_content_loop_before_title', $campaign, $view_args );
39 + do_action( 'charitable_campaign_content_loop_before_title', $charitable_campaign, $view_args );
35 40 ?>
36 41
37 - <h3><?php the_title() ?></h3>
42 + <h3><?php the_title(); ?></h3>
38 43
39 44 <?php
40 45 /**
46 + * Hook: After campaign content loop title.
47 + *
41 48 * @hook charitable_campaign_content_loop_after_title
42 49 */
43 - do_action( 'charitable_campaign_content_loop_after_title', $campaign, $view_args );
50 + do_action( 'charitable_campaign_content_loop_after_title', $charitable_campaign, $view_args );
44 51 ?>
45 52 </a>
46 53 <?php
47 54
48 55 /**
56 + * Hook: After campaign content loop.
57 + *
49 58 * @hook charitable_campaign_content_loop_after
50 59 */
51 - do_action( 'charitable_campaign_content_loop_after', $campaign, $view_args );
52 -?>
60 + do_action( 'charitable_campaign_content_loop_after', $charitable_campaign, $view_args );
61 + ?>
53 62 </li>