← All changes
|
src/MultiFormGoals/resources/views/progressbar.php
+5
-2
2.30.0
→
4.16.9
View file →
| @@ -1,8 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Multi-Form Goals block/shortcode template |
| 4 | 4 | * Styles for this template are defined in 'blocks/multi-form-goals/common.scss' |
| 5 | + * | |
| 6 | + * @since 3.19.1 Format the donation count | |
| 7 | + * | |
| 5 | 8 | * @var Give\MultiFormGoals\ProgressBar\Model $this |
| 6 | 9 | */ |
| 7 | 10 | |
| 8 | 11 | $uniqueId = uniqid('', true); |
| @@ -9,9 +12,9 @@ | ||
| 9 | 12 | ?> |
| 10 | 13 | |
| 11 | 14 | <div id="<?= esc_attr($uniqueId) ?>" class="give-progress-bar-block"> |
| 12 | 15 | <style> |
| 13 | - <?php echo file_get_contents( GIVE_PLUGIN_DIR . 'assets/dist/css/multi-form-goal-block.css' ); ?> | |
| 16 | + <?php echo file_get_contents( GIVE_PLUGIN_DIR . 'build/assets/dist/css/multi-form-goal-block.css' ); ?> | |
| 14 | 17 | </style> |
| 15 | 18 | <!-- Target the Progress Bar Block elements using CSS "parts", see https://developer.mozilla.org/en-US/docs/Web/CSS/::part --> |
| 16 | 19 | <div part="goal" class="give-progress-bar-block__goal"> |
| 17 | 20 | <div part="progress" class="give-progress-bar-block__progress"> |
| @@ -31,9 +34,9 @@ | ||
| 31 | 34 | echo __('raised', 'give'); ?></div> |
| 32 | 35 | </div> |
| 33 | 36 | <div part="stat-count" class="give-progress-bar-block__stat"> |
| 34 | 37 | <div part="stat-count-value"><?php |
| 35 | - echo esc_html($this->getDonationCount()); ?></div> | |
| 38 | + echo esc_html($this->getFormattedDonationCount()); ?></div> | |
| 36 | 39 | <div part="stat-count-label"><?php |
| 37 | 40 | echo _n('donation', 'donations', $this->getDonationCount(), 'give'); ?></div> |
| 38 | 41 | </div> |
| 39 | 42 | <div part="stat-goal" class="give-progress-bar-block__stat"> |