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-loop/campaign.php +23 -12 1.6.7 → 1.8.13 View file →
@@ -3,49 +3,60 @@
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 -if ( ! defined( 'ABSPATH' ) ) { exit; }
15 +if ( ! defined( 'ABSPATH' ) ) {
16 + exit;
17 +}
15 18
16 -$campaign = charitable_get_current_campaign();
19 +$charitable_campaign = charitable_get_current_campaign();
17 20
18 21 ?>
19 -<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(); ?>>
20 23 <?php
21 24 /**
25 + * Hook: Before campaign content loop.
26 + *
22 27 * @hook charitable_campaign_content_loop_before
23 28 */
24 - do_action( 'charitable_campaign_content_loop_before', $campaign, $view_args );
29 + do_action( 'charitable_campaign_content_loop_before', $charitable_campaign, $view_args );
25 30
26 - ?>
27 - <a href="<?php the_permalink() ?>">
31 +?>
32 + <a href="<?php the_permalink(); ?>">
28 33 <?php
29 34 /**
35 + * Hook: Before campaign content loop title.
36 + *
30 37 * @hook charitable_campaign_content_loop_before_title
31 38 */
32 - do_action( 'charitable_campaign_content_loop_before_title', $campaign, $view_args );
39 + do_action( 'charitable_campaign_content_loop_before_title', $charitable_campaign, $view_args );
33 40 ?>
34 41
35 - <h3><?php the_title() ?></h3>
42 + <h3><?php the_title(); ?></h3>
36 43
37 44 <?php
38 45 /**
46 + * Hook: After campaign content loop title.
47 + *
39 48 * @hook charitable_campaign_content_loop_after_title
40 49 */
41 - do_action( 'charitable_campaign_content_loop_after_title', $campaign, $view_args );
50 + do_action( 'charitable_campaign_content_loop_after_title', $charitable_campaign, $view_args );
42 51 ?>
43 52 </a>
44 53 <?php
45 54
46 55 /**
56 + * Hook: After campaign content loop.
57 + *
47 58 * @hook charitable_campaign_content_loop_after
48 59 */
49 - do_action( 'charitable_campaign_content_loop_after', $campaign, $view_args );
50 -?>
60 + do_action( 'charitable_campaign_content_loop_after', $charitable_campaign, $view_args );
61 + ?>
51 62 </li>