| @@ -3,12 +3,13 @@ | ||
| 3 | 3 | * Displays the campaign content. |
| 4 | 4 | * |
| 5 | 5 | * Override this template by copying it to yourtheme/charitable/content-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,10 +15,10 @@ | ||
| 14 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | 16 | exit; |
| 16 | 17 | } |
| 17 | 18 | |
| 18 | -$campaign = $view_args['campaign']; | |
| 19 | -$content = $view_args['content']; | |
| 19 | +$charitable_campaign = $view_args['campaign']; | |
| 20 | +$charitable_content = $view_args['content']; | |
| 20 | 21 | |
| 21 | 22 | /** |
| 22 | 23 | * Add something before the campaign content. |
| 23 | 24 | * |
| @@ -24,11 +25,11 @@ | ||
| 24 | 25 | * @since 1.0.0 |
| 25 | 26 | * |
| 26 | 27 | * @param $campaign Charitable_Campaign Instance of `Charitable_Campaign`. |
| 27 | 28 | */ |
| 28 | -do_action( 'charitable_campaign_content_before', $campaign ); | |
| 29 | +do_action( 'charitable_campaign_content_before', $charitable_campaign ); | |
| 29 | 30 | |
| 30 | -echo $content; | |
| 31 | +echo $charitable_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 31 | 32 | |
| 32 | 33 | /** |
| 33 | 34 | * Add something after the campaign content. |
| 34 | 35 | * |
| @@ -35,5 +36,5 @@ | ||
| 35 | 36 | * @since 1.0.0 |
| 36 | 37 | * |
| 37 | 38 | * @param $campaign Charitable_Campaign Instance of `Charitable_Campaign`. |
| 38 | 39 | */ |
| 39 | -do_action( 'charitable_campaign_content_after', $campaign ); | |
| 40 | +do_action( 'charitable_campaign_content_after', $charitable_campaign ); | |