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.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 1.7.0.9 All 211 releases
← All changes | templates/campaign/progress-bar.php +4 -3 1.7.0.7 → 1.8.13 View file →
@@ -7,8 +7,9 @@
7 7 * @author WP Charitable LLC
8 8 * @package Charitable/Templates/Campaign Page
9 9 * @since 1.0.0
10 10 * @version 1.0.0
11 + * @version 1.8.8.6
11 12 */
12 13
13 14 // Exit if accessed directly.
14 15 if ( ! defined( 'ABSPATH' ) ) {
@@ -14,12 +15,12 @@
14 15 if ( ! defined( 'ABSPATH' ) ) {
15 16 exit;
16 17 }
17 18
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>