| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the campaign status tag. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/campaign/status-tag.php |
| 6 |
* |
| 7 |
* @author Studio 164a |
| 8 |
* @since 1.0.0 |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
// Exit if accessed directly. |
| 13 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 14 |
|
| 15 |
$campaign = $view_args['campaign']; |
| 16 |
$tag = $campaign->get_status_tag(); |
| 17 |
|
| 18 |
if ( empty( $tag ) ) { |
| 19 |
return; |
| 20 |
} |
| 21 |
|
| 22 |
?> |
| 23 |
<div class="campaign-status-tag campaign-status-tag-<?php echo strtolower( str_replace( ' ', '-', $campaign->get_status_key() ) ) ?>"> |
| 24 |
<?php echo $tag ?> |
| 25 |
</div> |
| 26 |
|