PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
← All changes | templates/campaign/progress-bar.php +9 -8 1.6.7 → 1.8.13 View file →
@@ -3,23 +3,24 @@
3 3 * Displays the campaign progress bar.
4 4 *
5 5 * Override this template by copying it to yourtheme/charitable/campaign/progress-bar.php
6 6 *
7 - * @author Studio 164a
7 + * @author WP Charitable LLC
8 + * @package Charitable/Templates/Campaign Page
8 9 * @since 1.0.0
9 10 * @version 1.0.0
11 + * @version 1.8.8.6
10 12 */
11 13
12 14 // Exit if accessed directly.
13 -if ( ! defined( 'ABSPATH' ) ) { exit; }
15 +if ( ! defined( 'ABSPATH' ) ) {
16 + exit;
17 +}
14 18
15 -/**
16 - * @var Charitable_Campaign
17 - */
18 -$campaign = $view_args['campaign'];
19 +$charitable_campaign = $view_args['campaign'];
19 20
20 -if ( ! $campaign->has_goal() ) :
21 +if ( ! $charitable_campaign->has_goal() ) :
21 22 return;
22 23 endif;
23 24
24 25 ?>
25 -<div class="campaign-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo $campaign->get_percent_donated_raw(); ?>"><span class="bar" style="width: <?php echo $campaign->get_percent_donated_raw() ?>%;"></span></div>
26 +<div class="campaign-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo $charitable_campaign->get_percent_donated_raw(); // phpcs:ignore ?>"><span class="bar" style="width: <?php echo $charitable_campaign->get_percent_donated_raw(); // phpcs:ignore ?>%;"></span></div>