| 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 |
*/ |
| 13 |
|
| 14 |
// Exit if accessed directly. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
$campaign = $view_args['campaign']; |
| 20 |
$notice = $campaign->get_finished_notice(); |
| 21 |
|
| 22 |
if ( empty( $notice ) ) : |
| 23 |
return; |
| 24 |
endif; |
| 25 |
|
| 26 |
?> |
| 27 |
<div class="campaign-finished"> |
| 28 |
<?php echo $notice; ?> |
| 29 |
</div> |
| 30 |
|