| @@ -7,8 +7,9 @@ | ||
| 7 | 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> |