| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for displaying a notice at the top of the campaign |
| 4 |
* summary to announce how long ago it finished. |
| 5 |
* |
| 6 |
* Override this template by copying it to yourtheme/charitable/campaign/finished-notice.php |
| 7 |
* |
| 8 |
* @author WP Charitable LLC |
| 9 |
* @package Charitable/Templates/Campaign Page |
| 10 |
* @since 1.0.0 |
| 11 |
* @version 1.0.0 |
| 12 |
* @version 1.8.8.6 |
| 13 |
*/ |
| 14 |
|
| 15 |
// Exit if accessed directly. |
| 16 |
if ( ! defined( 'ABSPATH' ) ) { |
| 17 |
exit; |
| 18 |
} |
| 19 |
|
| 20 |
$charitable_campaign = $view_args['campaign']; |
| 21 |
$charitable_notice = $charitable_campaign->get_finished_notice(); |
| 22 |
|
| 23 |
if ( empty( $charitable_notice ) ) : |
| 24 |
return; |
| 25 |
endif; |
| 26 |
|
| 27 |
?> |
| 28 |
<div class="campaign-finished"> |
| 29 |
<?php echo wp_kses_post( $charitable_notice ); ?> |
| 30 |
</div> |
| 31 |
|