| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the campaign progress bar. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/campaign/progress-bar.php |
| 6 |
* |
| 7 |
* @author Studio 164a |
| 8 |
* @since 1.0.0 |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 |
|
| 14 |
/** |
| 15 |
* @var Charitable_Campaign |
| 16 |
*/ |
| 17 |
$campaign = $view_args[ 'campaign' ]; |
| 18 |
|
| 19 |
if ( ! $campaign->has_goal() ) : |
| 20 |
return; |
| 21 |
endif; |
| 22 |
|
| 23 |
?> |
| 24 |
<div class="campaign-progress-bar"><span class="bar" style="width: <?php echo $campaign->get_percent_donated_raw() ?>%;"></span></div> |